Skip to content

Webhook Subscriptions API

Manage the webhook subscriptions that determine which events Unexus delivers to your endpoint. See the Webhooks overview for how delivery works.

Base path: /api/v1/webhooks/subscriptions All endpoints require authentication.

{
"id": "1f0c5a2e-8b4d-4a5e-9c3f-7d2e6b1a9f04",
"url": "https://example.com/unexus/events",
"eventTypes": ["call.status", "agent.status"],
"description": "CRM integration",
"enabled": true,
"createdAt": "2026-07-21T09:15:23.412+00:00"
}
FieldTypeDescription
idstring (GUID)Unique subscription identifier. Use this in URLs.
urlstringYour HTTPS endpoint that receives event deliveries.
eventTypesstring[]Event types this subscription receives. See the event catalog.
descriptionstring | nullFree-form label for your own administration.
enabledbooleanOnly enabled subscriptions receive deliveries.
createdAtstring (ISO 8601)When the subscription was created (UTC).
POST /api/v1/webhooks/subscriptions

Request body:

{
"url": "https://example.com/unexus/events",
"eventTypes": ["call.status", "agent.status"],
"description": "CRM integration"
}
FieldRequiredNotes
urlyesAbsolute http(s) URL. Use HTTPS in production.
eventTypesyesAt least one known event type. Unknown types are rejected.
descriptionnoFree text.

Responses:

  • 201 Created — returns the created subscription object; the Location header points to the new resource.
  • 400 Bad Request — invalid URL or unknown/missing event types. The body describes the problem and lists the known event types.

Example:

Terminal window
curl -X POST "https://{host}/api/v1/webhooks/subscriptions" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/unexus/events","eventTypes":["call.status"]}'
GET /api/v1/webhooks/subscriptions

Returns 200 OK with an array of subscription objects.

GET /api/v1/webhooks/subscriptions/{id}

Returns 200 OK with the subscription object, or 404 Not Found.

DELETE /api/v1/webhooks/subscriptions/{id}

Returns 204 No Content on success, or 404 Not Found if the id does not exist. Deliveries to the endpoint stop immediately.