SnozeDevelopers
API referenceWorkspaces

Mint a short-lived realtime connection ticket

Issues a single-use ticket, valid for 30 seconds, that the browser exchanges for a realtime connection to this workspace. Requires a Clerk session with a synced profile plus `workspace:read`; API keys cannot acquire a realtime identity. Deliberately not idempotent, because replaying the response would hand back a ticket the gateway has already consumed, and it returns an upstream error when the ticket store is unavailable.

POST
/v1/workspaces/{workspaceId}/realtime-ticket
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/workspaces/string/realtime-ticket"
{  "data": {    "ticket": "string",    "expiresAt": "string"  }}