Events API
Event bus API for Scalix Cloud to create topics, publish events, manage pub/sub subscriptions, and track delivery status across your project.
REST API endpoints for Events. 11 operations.
Delete a subscription
DELETE /v1/events/subscriptions/{id}Removes an event subscription by id.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Subscription id |
Responses
| Status | Description |
|---|---|
200 | Subscription deleted |
401 | Missing or invalid API key |
500 | Internal error |
operationId: deleteEventSubscription
Get a subscription
GET /v1/events/subscriptions/{id}Returns a single event subscription by id.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Subscription id |
Responses
| Status | Description |
|---|---|
200 | Subscription details |
401 | Missing or invalid API key |
500 | Internal error |
operationId: getEventSubscription
List subscription deliveries
GET /v1/events/subscriptions/{id}/deliveriesReturns the delivery attempts for an event subscription.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Subscription id |
Responses
| Status | Description |
|---|---|
200 | Delivery attempts |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listSubscriptionDeliveries
List topics
GET /v1/events/topicsReturns all event-bus topics for the caller's project.
Auth: Bearer API key
Responses
| Status | Description |
|---|---|
200 | Topic list |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listEventTopics
Create a topic
POST /v1/events/topicsCreates a new event-bus topic.
Auth: Bearer API key
Request body
application/json (required) — schema CreateEventTopicRequest.
Create a topic. There is NO display_name field (the audit's 500 was a duplicate name — now a 409 ALREADY_EXISTS). Mirrors platform-services eventbus::api::CreateTopicRequest.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Topic name — unique per project; also usable as the {id} selector on topic sub-paths. |
description | string | null | No |
Responses
| Status | Description |
|---|---|
201 | Topic created |
401 | Missing or invalid API key |
409 | A topic with this name already exists in the project (ALREADY_EXISTS) |
500 | Internal error |
operationId: createEventTopic
Delete a topic
DELETE /v1/events/topics/{id}Removes an event-bus topic by id or name.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Topic id or name |
Responses
| Status | Description |
|---|---|
200 | Topic deleted |
401 | Missing or invalid API key |
500 | Internal error |
operationId: deleteEventTopic
Get a topic
GET /v1/events/topics/{id}Returns a single event-bus topic by id or name.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Topic id or name |
Responses
| Status | Description |
|---|---|
200 | Topic details |
401 | Missing or invalid API key |
500 | Internal error |
operationId: getEventTopic
List events on a topic
GET /v1/events/topics/{id}/eventsReturns the recent events published to a topic.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Topic id or name |
Responses
| Status | Description |
|---|---|
200 | Events on the topic |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listTopicEvents
Publish an event
POST /v1/events/topics/{id}/publishPublishes an event payload to a topic.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Topic id or name |
Request body
Event payload
application/json (required) — schema object.
Responses
| Status | Description |
|---|---|
200 | Event published |
401 | Missing or invalid API key |
500 | Internal error |
operationId: publishEvent
List a topic's subscriptions
GET /v1/events/topics/{id}/subscriptionsReturns the subscriptions attached to a topic.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Topic id or name |
Responses
| Status | Description |
|---|---|
200 | Subscription list |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listTopicSubscriptions
Create a subscription
POST /v1/events/topics/{id}/subscriptionsCreates a subscription that delivers a topic's events to an endpoint.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Topic id or name |
Request body
application/json (required) — schema CreateEventSubscriptionRequest.
Create a subscription. config is REQUIRED and its shape depends on sub_type (the contract previously said bare object). Mirrors eventbus::api::CreateSubscriptionRequest.
| Field | Type | Required | Description |
|---|---|---|---|
sub_type | EventSubscriptionType enum: webhook, function | Yes | webhook or function. |
config | object | Yes | webhook: {"url": "<public https url>"} required (SSRF-validated at create and re-pinned at delivery), optional "secret" → HMAC header x-scalix-signature, optional "headers" (string map). function: {"function_id": "<id>"} required. |
filter | object | null | No | Optional event-payload filter. |
max_retries | integer (int32) | No | Per-delivery retry budget. |
Responses
| Status | Description |
|---|---|
201 | Subscription created |
401 | Missing or invalid API key |
500 | Internal error |
operationId: createEventSubscription