ScalixScalix Docs

Realtime API

Real-time subscriptions and WebSocket

REST API endpoints for Realtime. 2 operations.

Create a realtime subscription

plaintext
POST /api/v1/tenants/{tenant_id}/realtime/subscribe

Creates a realtime subscription for a tenant.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
tenant_idpathstringYesTenant id (UUID)

Responses

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

operationId: subscribeRealtime

Open a realtime WebSocket

plaintext
GET /api/v1/tenants/{tenant_id}/realtime/ws

Upgrades the connection to a realtime WebSocket stream for a tenant.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
tenant_idpathstringYesTenant id (UUID)

Responses

StatusDescription
101WebSocket upgrade
401Missing or invalid API key
500Internal error

operationId: realtimeWebsocket