Skip to main content
GET
/
api
/
v1
/
webhooks
/
{id}
Get Webhook
curl --request GET \
  --url https://api.example.com/api/v1/webhooks/{id}
Get detailed information about a specific webhook.

Request

GET /api/v1/webhooks/{id}
Authorization: Bearer YOUR_API_KEY

Path Parameters

ParameterTypeRequiredDescription
idstringYesUUID of the webhook

Response

FieldTypeDescription
idstringWebhook UUID
urlstringDestination URL
descriptionstringDescription (or null)
agent_idstringAgent UUID (or null for org-level)
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/6ba7b810-9dad-11d1-80b4-00c04fd430c8" \
  -H "Authorization: Bearer $API_KEY"

Success Response

{
  "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"
}

Errors

CodeDescription
NOT_FOUNDWebhook not found or doesn’t belong to your organization