Get a session
Returns the session’s state, its model, the tracks and commands the model declares, and, once it has ended, why.
Any developer or account_admin of the account the session runs under can read it, not
only the user who started it. A session on another account, or an unknown ID, answers
403. A session token reads only the sessions bound to it.
capabilities, selected_transport, and generation appear once the session reaches
WAITING. environment and revision are returned only to members of the account that
owns the model. ended appears once the session is closed.
Session states: CREATED (accepted, being placed), PENDING (placed, waiting for a
client), WAITING (offer received, answer pending), SUSPENDED (waiting for capacity),
ACTIVE (a client is connected and the model is running), INACTIVE (the client
disconnected), CLOSED (ended; cannot be reused).
Authorizations
A Reactor API key (rk_...), sent as Authorization: Bearer rk_.... Keep it on a server.
Headers
The API protocol version the client speaks. Currently 1. Older versions than the server's minimum get 426.
"1"
Path Parameters
The session's ID, as returned by POST /sessions.
Response
The session.
The session's lifecycle state.
CREATED, PENDING, WAITING, SUSPENDED, ACTIVE, INACTIVE, CLOSED Whether the session has ended.
An opaque placement ID. "" until the session is placed.
The user who started the session. Can be another member of your account.
The last time the session record changed.
What the model declares for this session, reported by its runtime.
The mode the model runs the session in. Appears once the session is WAITING, and is
absent for a runtime that predates generation modes (such a session streams).
streamed, stepped The Reactor region serving the session. Omitted when unknown.
The Reactor region that served the session, such as us-west. Omitted when unknown.
The ISO 3166-1 alpha-2 country the session was started from, when known.
"US"
An opaque ID of the instance serving the session. Absent until an instance picks it up.
Why and when the session ended. Present only once the session is closed.
The environment the session targets. Returned only to members of the account that owns the model.
The environment revision that served the session. Returned only to members of the account that owns the model.