Skip to main content
POST
Creates a short-lived JWT that authenticates a WebSocket connection. The token is scoped to a single session and capability. Tokens expire after 5 minutes - request a new one if the connection drops. Required scope: depends on the requested capability:

Path Parameters

string
required
The session ID to connect to (e.g. ses_abc123).

Headers

string
required
Bearer token. Example: Bearer runtm_sk_live_abc123...
string
Scope to an organization.

Body

string
required
The WebSocket channel to authenticate for: terminal, prompt, or collaborate.

Response

string
Short-lived JWT for WebSocket authentication. Pass as the token query parameter when connecting.
string
ISO 8601 timestamp when the token expires.