Get a session
GET
/api/v2/sessions/{id}Authorization
AuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
or
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
Path parameters
idstringrequiredPublic session identifier.
min length 1 · max length 100
Header parameters
X-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
max length 128
Responses
200
Session returned.
successbooleanrequiredAllowed:
truedataSessionrequiredShow propertiesHide properties
idstringrequiredtitlestring | nullrequiredmetadataobjectrequiredsummarystring | nullrequiredsummaryUpToIndexintegerrequiredmin 0
messageCountintegerrequiredmin 0
totalTokensintegerrequiredmin 0
lastActiveAtstring<date-time>requiredcreatedAtstring<date-time>requiredupdatedAtstring<date-time>required401
Unauthorized - Invalid or missing API key
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject403
Authenticated credential lacks the required scope or workspace access.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject404
Not Found - Resource does not exist
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject429
Too Many Requests - Rate limit exceeded
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject
