ScalixScalix Docs
Sign up

Webhooks API

Webhooks API to register endpoint URLs for tenant event types and list registered webhooks in Scalix Cloud for outbound event delivery.

REST API endpoints for Webhooks. 7 operations.

List webhooks

plaintext
GET /api/v1/tenants/{tenant_id}/webhooks

Returns the registered webhook endpoints for a tenant.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
tenant_idpathstringYesTenant id (UUID)

Responses

StatusDescription
200Webhook list
401Missing or invalid API key
500Internal error

operationId: listWebhooks

Register a webhook

plaintext
POST /api/v1/tenants/{tenant_id}/webhooks

Registers a webhook endpoint for a set of event types.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
tenant_idpathstringYesTenant id (UUID)

Request body

application/json (required) — schema WebhookRequest.

Responses

StatusDescription
201Webhook registered
401Missing or invalid API key
500Internal error

operationId: registerWebhook

Unregister a webhook

plaintext
DELETE /api/v1/tenants/{tenant_id}/webhooks/{id}

Deletes a registered webhook; event delivery to its endpoint stops.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
tenant_idpathstringYesTenant id (UUID)
idpathstringYesWebhook id (UUID)

Responses

StatusDescription
204Webhook unregistered
401Missing or invalid API key
404Webhook not found
500Internal error

operationId: unregisterWebhook

Get a webhook

plaintext
GET /api/v1/tenants/{tenant_id}/webhooks/{id}

Returns one registered webhook by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
tenant_idpathstringYesTenant id (UUID)
idpathstringYesWebhook id (UUID)

Responses

StatusDescription
200The webhook
401Missing or invalid API key
404Webhook not found
500Internal error

operationId: getWebhook

Update a webhook

plaintext
PUT /api/v1/tenants/{tenant_id}/webhooks/{id}

Replaces the endpoint URL, event types, secret, and active flag of a registered webhook.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
tenant_idpathstringYesTenant id (UUID)
idpathstringYesWebhook id (UUID)

Request body

application/json (required) — schema WebhookRequest.

Responses

StatusDescription
200Webhook updated
400Invalid request
401Missing or invalid API key
404Webhook not found
500Internal error

operationId: updateWebhook

List a webhook's deliveries

plaintext
GET /api/v1/tenants/{tenant_id}/webhooks/{id}/deliveries

Returns recent delivery attempts for a webhook with their outcomes, so a missed event can be traced to a failed delivery.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
tenant_idpathstringYesTenant id (UUID)
idpathstringYesWebhook id (UUID)

Responses

StatusDescription
200Recent delivery attempts
401Missing or invalid API key
404Webhook not found
500Internal error

operationId: listWebhookDeliveries

Test a webhook

plaintext
POST /api/v1/tenants/{tenant_id}/webhooks/{id}/test

Sends a test event to the webhook's endpoint and reports the delivery result without waiting for a real event.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
tenant_idpathstringYesTenant id (UUID)
idpathstringYesWebhook id (UUID)

Responses

StatusDescription
200Test event sent; delivery result
401Missing or invalid API key
404Webhook not found
500Internal error

operationId: testWebhook