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

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

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

Path Parameters

workspaceId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/workspaces/string/realtime-ticket'
Example Response
{  "data": {    "ticket": "string",    "expiresAt": "string"  }}