Skip to content

Webhooks

Register HTTP endpoints to receive real-time notifications when events or agents change.

POST /v1/webhooks
FieldTypeRequiredDescription
urlstringYesHTTPS URL to receive webhook deliveries
eventsstring[]YesAt least one event type (see below)
  • event.created
  • event.updated
  • event.deleted
  • agent.created
  • agent.updated
Terminal window
curl -X POST https://api.chronary.ai/v1/webhooks \
-H "Authorization: Bearer chr_sk_test_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-server.com/webhooks/chronary",
"events": ["event.created", "event.updated", "event.deleted"]
}'
{
"id": "whk_a1b2c3",
"url": "https://your-server.com/webhooks/chronary",
"events": ["event.created", "event.updated", "event.deleted"],
"secret": "whsec_abc123...",
"active": true,
"created_at": "2026-04-04T12:00:00Z"
}

The secret is only returned on creation — save it for HMAC signature verification.


GET /v1/webhooks
ParameterTypeDefaultDescription
limitinteger201–100
offsetinteger0Pagination offset
Terminal window
curl "https://api.chronary.ai/v1/webhooks" \
-H "Authorization: Bearer chr_sk_test_your_key_here"

GET /v1/webhooks/:id
StatusTypeCause
404not_foundWebhook not found

PATCH /v1/webhooks/:id
FieldTypeDescription
urlstringNew delivery URL
eventsstring[]New event type list
activebooleanEnable/disable deliveries
Terminal window
curl -X PATCH https://api.chronary.ai/v1/webhooks/whk_a1b2c3 \
-H "Authorization: Bearer chr_sk_test_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "active": false }'
StatusTypeCause
404not_foundWebhook not found

DELETE /v1/webhooks/:id

Returns 204 No Content.

StatusTypeCause
404not_foundWebhook not found