Cloud
The console session object
A single-use ticket for one terminal shell in a running replica. Open a WebSocket to ws_url within 5 minutes.
Attributes
tokenstring: The ticket. Secret, single use.ws_urlstring: The WebSocket to open, ticket included.expires_attimestamp: When the ticket stops working.idle_timeout_snumber: The shell closes after this many idle seconds.max_session_snumber: The longest a shell stays open.
Example
{
"data": {
"token": "eyJhbGciOiJFZERTQSJ9.eyJzdWIiOi4uLn0.c2ln",
"ws_url": "wss://core.cloud.dispralabs.com/v1/console/connect?token=eyJ...",
"expires_at": "2026-12-05T10:15:02Z",
"idle_timeout_s": 600,
"max_session_s": 3600
}
}
Endpoints
POSTOpen a shell