Manage endpoints
Add webhook endpoints in the app, or manage them from your own code with an API key that has the webhooks:manage scope. A business can have up to 20.
In the app#
Open Integrations → Webhooks. Add the URL and tick the events. Copy the secret when it appears. Each endpoint shows whether it is on, why it was switched off, its latest deliveries with their retry status, and a Send test button.
The endpoint object#
{
"id": "e4b7c2a9-1d6f-4a3e-8b05-9c2d7f1e6a38",
"url": "https://example.com/cat-webhooks",
"events": [
"message.received",
"message.status_updated"
],
"is_active": true,
"disabled_reason": null,
"last_delivery_at": "2026-11-27T10:42:19.001Z",
"failure_count": 0,
"created_at": "2026-11-20T09:00:00.000Z"
}failure_count counts failed deliveries in a row; at 15 the endpoint is switched off and disabled_reason says so. The secret is never included.
Add an endpoint#
/api/v1/webhooksNeeds the scope webhooks:manage
Body
urlstringRequiredA publichttps://address, up to 2,048 characters.eventsstring[]RequiredOne or more ofmessage.received,message.status_updated,conversation.created.
curl -X POST "https://app.catengage360.com/api/v1/webhooks" \
-H "Authorization: Bearer cat_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/cat-webhooks",
"events": [
"message.received",
"message.status_updated"
]
}'201Created, with the secret (shown only now)
{
"data": {
"id": "e4b7c2a9-1d6f-4a3e-8b05-9c2d7f1e6a38",
"url": "https://example.com/cat-webhooks",
"events": [
"message.received",
"message.status_updated"
],
"is_active": true,
"disabled_reason": null,
"last_delivery_at": null,
"failure_count": 0,
"created_at": "2026-11-20T09:00:00.000Z",
"secret": "whsec_…"
}
}List endpoints#
/api/v1/webhooksNeeds the scope webhooks:manage
curl "https://app.catengage360.com/api/v1/webhooks" \
-H "Authorization: Bearer cat_live_your_key_here"200All your endpoints
{
"data": [
{
"id": "e4b7c2a9-1d6f-4a3e-8b05-9c2d7f1e6a38",
"url": "https://example.com/cat-webhooks",
"events": [
"message.received",
"message.status_updated"
],
"is_active": true,
"disabled_reason": null,
"last_delivery_at": "2026-11-27T10:42:19.001Z",
"failure_count": 0,
"created_at": "2026-11-20T09:00:00.000Z"
}
],
"meta": {
"next_cursor": null
}
}Get one endpoint#
/api/v1/webhooks/:idNeeds the scope webhooks:manage
Change an endpoint#
/api/v1/webhooks/:idNeeds the scope webhooks:manage
urlstringoptionalA new https address.eventsstring[]optionalThe new list of events (replaces the old one).is_activebooleanoptionalfalseswitches it off and drops waiting deliveries.trueswitches it back on and resetsfailure_count.
curl -X PATCH "https://app.catengage360.com/api/v1/webhooks/e4b7c2a9-1d6f-4a3e-8b05-9c2d7f1e6a38" \
-H "Authorization: Bearer cat_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"is_active": true
}'Delete an endpoint#
/api/v1/webhooks/:idNeeds the scope webhooks:manage
200Deleted
{
"data": {
"id": "e4b7c2a9-1d6f-4a3e-8b05-9c2d7f1e6a38",
"deleted": true
}
}Errors#
| Code | Status | What it means |
|---|---|---|
bad_request | 400 | The URL isn’t https or isn’t valid, events are missing or unknown, or the business already has 20 endpoints. |
unauthorized | 401 | The API key is missing, wrong, revoked or expired. |
forbidden | 403 | The key doesn't have the webhooks:manage scope. |
not_found | 404 | No endpoint with that id in your business. |
Secrets aren't shown again