GET /v1/sessions/{session_id}
GET
/v1/sessions/{session_id}Authorization
AuthorizationBearer token · headerrequiredPath parameters
session_idstring<uuid>requiredSession id
Responses
200The session.
agent_idstring<uuid>requiredagent_version_idstring<uuid>requiredcreated_atstring<date-time>requiredcreated_bySessionCreatorBodyrequiredWho created the session: the header-surface user or the API key a
backend presented.
Show propertiesHide properties
One of:
object
display_namestring | nullrequiredprimary_emailstring | nullrequireduser_idstring<uuid>requiredtypestringrequiredAllowed:
userobject
api_key_idstring<uuid>requiredlabelstringrequiredtypestringrequiredAllowed:
api_keydisplay_namestringrequiredidstring<uuid>requiredstatusSessionStatusBodyrequiredAllowed:
idleactiveworkspace_idstring<uuid>required400Malformed path parameter.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired401Missing, malformed, or invalid bearer token.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired403A workspace credential lacking session.read. A session token carries no permissions and never lands here.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired404No such session, or the caller cannot see it.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired