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
GET /api/v1/tenants/{tenant_id}/webhooksReturns the registered webhook endpoints for a tenant.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_id | path | string | Yes | Tenant id (UUID) |
Responses
| Status | Description |
|---|---|
200 | Webhook list |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listWebhooks
Register a webhook
POST /api/v1/tenants/{tenant_id}/webhooksRegisters a webhook endpoint for a set of event types.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_id | path | string | Yes | Tenant id (UUID) |
Request body
application/json (required) — schema WebhookRequest.
Responses
| Status | Description |
|---|---|
201 | Webhook registered |
401 | Missing or invalid API key |
500 | Internal error |
operationId: registerWebhook
Unregister a webhook
DELETE /api/v1/tenants/{tenant_id}/webhooks/{id}Deletes a registered webhook; event delivery to its endpoint stops.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_id | path | string | Yes | Tenant id (UUID) |
id | path | string | Yes | Webhook id (UUID) |
Responses
| Status | Description |
|---|---|
204 | Webhook unregistered |
401 | Missing or invalid API key |
404 | Webhook not found |
500 | Internal error |
operationId: unregisterWebhook
Get a webhook
GET /api/v1/tenants/{tenant_id}/webhooks/{id}Returns one registered webhook by id.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_id | path | string | Yes | Tenant id (UUID) |
id | path | string | Yes | Webhook id (UUID) |
Responses
| Status | Description |
|---|---|
200 | The webhook |
401 | Missing or invalid API key |
404 | Webhook not found |
500 | Internal error |
operationId: getWebhook
Update a webhook
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_id | path | string | Yes | Tenant id (UUID) |
id | path | string | Yes | Webhook id (UUID) |
Request body
application/json (required) — schema WebhookRequest.
Responses
| Status | Description |
|---|---|
200 | Webhook updated |
400 | Invalid request |
401 | Missing or invalid API key |
404 | Webhook not found |
500 | Internal error |
operationId: updateWebhook
List a webhook's deliveries
GET /api/v1/tenants/{tenant_id}/webhooks/{id}/deliveriesReturns 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_id | path | string | Yes | Tenant id (UUID) |
id | path | string | Yes | Webhook id (UUID) |
Responses
| Status | Description |
|---|---|
200 | Recent delivery attempts |
401 | Missing or invalid API key |
404 | Webhook not found |
500 | Internal error |
operationId: listWebhookDeliveries
Test a webhook
POST /api/v1/tenants/{tenant_id}/webhooks/{id}/testSends a test event to the webhook's endpoint and reports the delivery result without waiting for a real event.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_id | path | string | Yes | Tenant id (UUID) |
id | path | string | Yes | Webhook id (UUID) |
Responses
| Status | Description |
|---|---|
200 | Test event sent; delivery result |
401 | Missing or invalid API key |
404 | Webhook not found |
500 | Internal error |
operationId: testWebhook