ScalixScalix Docs
Sign up

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

plaintext
DELETE /v1/events/subscriptions/{id}

Removes an event subscription by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesSubscription id

Responses

StatusDescription
200Subscription deleted
401Missing or invalid API key
500Internal error

operationId: deleteEventSubscription

Get a subscription

plaintext
GET /v1/events/subscriptions/{id}

Returns a single event subscription by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesSubscription id

Responses

StatusDescription
200Subscription details
401Missing or invalid API key
500Internal error

operationId: getEventSubscription

List subscription deliveries

plaintext
GET /v1/events/subscriptions/{id}/deliveries

Returns the delivery attempts for an event subscription.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesSubscription id

Responses

StatusDescription
200Delivery attempts
401Missing or invalid API key
500Internal error

operationId: listSubscriptionDeliveries

List topics

plaintext
GET /v1/events/topics

Returns all event-bus topics for the caller's project.

Auth: Bearer API key

Responses

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

operationId: listEventTopics

Create a topic

plaintext
POST /v1/events/topics

Creates 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.

FieldTypeRequiredDescription
namestringYesTopic name — unique per project; also usable as the {id} selector on topic sub-paths.
descriptionstring | nullNo

Responses

StatusDescription
201Topic created
401Missing or invalid API key
409A topic with this name already exists in the project (ALREADY_EXISTS)
500Internal error

operationId: createEventTopic

Delete a topic

plaintext
DELETE /v1/events/topics/{id}

Removes an event-bus topic by id or name.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesTopic id or name

Responses

StatusDescription
200Topic deleted
401Missing or invalid API key
500Internal error

operationId: deleteEventTopic

Get a topic

plaintext
GET /v1/events/topics/{id}

Returns a single event-bus topic by id or name.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesTopic id or name

Responses

StatusDescription
200Topic details
401Missing or invalid API key
500Internal error

operationId: getEventTopic

List events on a topic

plaintext
GET /v1/events/topics/{id}/events

Returns the recent events published to a topic.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesTopic id or name

Responses

StatusDescription
200Events on the topic
401Missing or invalid API key
500Internal error

operationId: listTopicEvents

Publish an event

plaintext
POST /v1/events/topics/{id}/publish

Publishes an event payload to a topic.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesTopic id or name

Request body

Event payload

application/json (required) — schema object.

Responses

StatusDescription
200Event published
401Missing or invalid API key
500Internal error

operationId: publishEvent

List a topic's subscriptions

plaintext
GET /v1/events/topics/{id}/subscriptions

Returns the subscriptions attached to a topic.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesTopic id or name

Responses

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

operationId: listTopicSubscriptions

Create a subscription

plaintext
POST /v1/events/topics/{id}/subscriptions

Creates a subscription that delivers a topic's events to an endpoint.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesTopic 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.

FieldTypeRequiredDescription
sub_typeEventSubscriptionType enum: webhook, functionYeswebhook or function.
configobjectYeswebhook: {"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.
filterobject | nullNoOptional event-payload filter.
max_retriesinteger (int32)NoPer-delivery retry budget.

Responses

StatusDescription
201Subscription created
401Missing or invalid API key
500Internal error

operationId: createEventSubscription