*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

- `token` (string): The ticket. Secret, single use.
- `ws_url` (string): The WebSocket to open, ticket included.
- `expires_at` (timestamp): When the ticket stops working.
- `idle_timeout_s` (number): The shell closes after this many idle seconds.
- `max_session_s` (number): The longest a shell stays open.

## Example

```json
{
  "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

- `POST` [Open a shell](https://docs.dispralabs.com/api/open-a-shell.md)
