Skip to main content
GET
Get a session

Authorizations

Authorization
string
header
required

A Reactor API key (rk_...), sent as Authorization: Bearer rk_.... Keep it on a server.

Headers

Reactor-API-Version
string

The API protocol version the client speaks. Currently 1. Older versions than the server's minimum get 426.

Example:

"1"

Path Parameters

session_id
string<uuid>
required

The session's ID, as returned by POST /sessions.

Response

The session.

session_id
string<uuid>
required
state
enum<string>
required

The session's lifecycle state.

Available options:
CREATED,
PENDING,
WAITING,
SUSPENDED,
ACTIVE,
INACTIVE,
CLOSED
closed
boolean
required

Whether the session has ended.

cluster
string
required

An opaque placement ID. "" until the session is placed.

user_id
string<uuid>
required

The user who started the session. Can be another member of your account.

created_at
string<date-time>
required
updated_at
string<date-time>
required

The last time the session record changed.

model
object
server_info
object
selected_transport
object
capabilities
object

What the model declares for this session, reported by its runtime.

generation
enum<string>

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).

Available options:
streamed,
stepped
zone
string

The Reactor region serving the session. Omitted when unknown.

region
string

The Reactor region that served the session, such as us-west. Omitted when unknown.

origin_country
string

The ISO 3166-1 alpha-2 country the session was started from, when known.

Example:

"US"

machine_id
string

An opaque ID of the instance serving the session. Absent until an instance picks it up.

ended
object

Why and when the session ended. Present only once the session is closed.

environment
object

The environment the session targets. Returned only to members of the account that owns the model.

revision
object

The environment revision that served the session. Returned only to members of the account that owns the model.