Mint a run WebSocket ticket

View as Markdown

Mints a short-lived signed ticket to authenticate the run’s WebSocket upgrade.

Authentication

AuthorizationBearer

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

Path parameters

projectIdstringRequired
runIdstringRequired

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
404
Not Found Error