Skip to main content
The secret field is excluded from list responses — it’s only returned once, on create.
This endpoint returns a flat array, not a paginated response.
curl -X GET 'https://api.anyformat.ai/v2/webhooks/' \
  -H 'Authorization: Bearer YOUR_API_KEY'
import requests

url = "https://api.anyformat.ai/v2/webhooks/"
headers = {
    "Authorization": "Bearer YOUR_API_KEY"
}

response = requests.get(url, headers=headers)
webhooks = response.json()
for webhook in webhooks:
    print(f"{webhook['id']}: {webhook['url']} ({webhook['events']})")
const response = await fetch('https://api.anyformat.ai/v2/webhooks/', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
});

const data = await response.json();
console.log(data);
interface WebhookListItem {
  id: string;
  url: string;
  events: string[];
  is_active: boolean;
  created_at: string;
}

const response = await fetch('https://api.anyformat.ai/v2/webhooks/', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
});

if (!response.ok) {
  throw new Error(`API error: ${response.status}`);
}

const webhooks: WebhookListItem[] = await response.json();
console.log(webhooks);
[
  {
    "id": "wh_1234567890",
    "url": "https://your-server.com/webhooks/anyformat",
    "events": ["extraction.completed", "extraction.failed"],
    "is_active": true,
    "created_at": "2024-03-24T12:00:00.000Z"
  }
]