GET /v1/sessions
GET
/v1/sessionsAuthorization
AuthorizationBearer token · headerrequiredQuery parameters
limitinteger<int64>min 1 · max 200
afterstring<uuid>orderOrderParamNewest first when omitted.
Allowed:
ascdescHeader parameters
Kikuvi-Workspacestring<uuid>Workspace to list from. Required for a user caller; implied by the key for an API key caller.
Responses
200One page, newest first unless order=asc.
itemsSessionBody[]requiredShow propertiesHide properties
Array of
SessionBodyagent_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>requirednext_cursorstring<uuid> | nullrequired`None` on the last page.
400Bad limit, cursor, or order, a malformed workspace header, or a user caller with no workspace header.
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_requestsinternalmessagestringrequired403Caller lacks session.read, or an API key's Kikuvi-Workspace header names another workspace.
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 workspace, 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