Skip to main content
GET
/
api
/
v1
/
webhooks
List Webhooks
curl --request GET \
  --url https://api.example.com/api/v1/webhooks
List all webhooks configured for your organization.

Request

GET /api/v1/webhooks
Authorization: Bearer YOUR_API_KEY

Query Parameters

ParameterTypeDescription
agent_idstringFilter by agent (only show webhooks for this agent)

Response

FieldTypeDescription
webhooksarrayList of webhook objects
totalnumberTotal number of webhooks

Webhook Object

FieldTypeDescription
idstringWebhook UUID
urlstringDestination URL
descriptionstringOptional description
agent_idstringAgent UUID (null for org-level webhook)
is_enabledbooleanWhether the webhook is active
last_triggered_atstringISO-8601 timestamp of last trigger
consecutive_failuresnumberNumber of consecutive failures
created_atstringISO-8601 creation timestamp
updated_atstringISO-8601 last update timestamp

Examples

curl "https://app.preclinical.dev/api/v1/webhooks" \
  -H "Authorization: Bearer $API_KEY"

Success Response

{
  "webhooks": [
    {
      "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
      "url": "https://example.com/webhook",
      "description": "Main notification webhook",
      "agent_id": null,
      "is_enabled": true,
      "last_triggered_at": "2026-01-30T10:32:45Z",
      "consecutive_failures": 0,
      "created_at": "2026-01-15T08:00:00Z",
      "updated_at": "2026-01-28T12:30:00Z"
    }
  ],
  "total": 1
}