Mint a thread WebSocket ticket

View as Markdown

Mints a short-lived signed ticket to authenticate the thread’s realtime WebSocket upgrade. Requires read access to the anchored entity; an inaccessible project or entity reads as 404.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

projectIdstringRequired
threadIdstringRequired

Response

The signed WebSocket-upgrade ticket.

ticketstring

Opaque signed ticket; pass as ?ticket= on the WebSocket upgrade.

expiresAtstring

ISO-8601 expiry of the ticket.

expiresInSecondsdouble
Seconds until the ticket expires.
wsUrlstring

WebSocket URL with the ticket pre-applied.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error