ListAiSessionsResponse
A page of sessions, newest first.
Shape
itemsarray of AiSession
- The AiSession schema
- cost_microsinteger · int64Settled spend, fee included, in micro-dollars.
- created_atstring · date-time
- org_idAiOrgId (string · uuid)
- root_group_idGroupId (string · uuid)The top-level group whose organization it ran in.
- session_idAiSessionId (string · uuid)
- stateAiSessionStatequeuedrunningwaiting_gatewaiting_personcompletedfailedcancelledhalted
subjectSessionSubject
- The SessionSubject schema
- addressstring or nulloptionalThe address acted on —
acme/api#412,acme/api!87— when the session has one. - started_bystring or nulloptionalThe person or account whose action started the session, when one did.
- trigger_kindAiTriggerKindassignmentreview_requestreview_feedbackmentionchannel_messageritualpipeline_failuretracker_eventgate_decisionhandoffcontinuationproposalmanualprofile_draftWhat started a session.
- turnsinteger · int32
- agent_idAgentId (string · uuid) or nulloptional
- branchstring or nulloptional
- ended_atstring · date-time or nulloptional
- instructionSessionInstruction (string) or nulloptional
- model_idAiModelKey (string) or nulloptional
- outcomeAiSessionOutcomemerge_request_openedreview_submittedwork_item_updatedmessage_postedproposal_writtenescalatedno_actionbudget_exhaustedrefusederrortaken_overor nulloptional
- repository_idRepositoryId (string · uuid) or nulloptionalThe repository the session works on, when it works on one.
- revision_numberinteger · int64 or nulloptionalThe revision it pinned at start; absent only for a platform session started before any revision was published.
- started_atstring · date-time or nulloptional
- summarystring or nulloptionalThe agent's own account of the session.
- next_tokenstring or nulloptional
Example
Synthesized example{
"items": [
{
"cost_micros": 22,
"created_at": "2026-10-10T09:23:43Z",
"org_id": "af50a568-0bb1-4c0b-bf6a-0a0e5ab93b62",
"root_group_id": "4c1d8e2f-6a3b-4f90-b7c5-1e2d3c4b5a69",
"session_id": "a2a35b0f-519d-4cd6-8eb7-36ac99f370c6",
"state": "queued",
"subject": {},
"trigger_kind": "assignment",
"turns": 27
},
{
"cost_micros": 49,
"created_at": "2026-10-14T09:52:00Z",
"org_id": "392a5f3c-6fd5-49f6-aa32-81df3c6898c4",
"root_group_id": "4c1d8e2f-6a3b-4f90-b7c5-1e2d3c4b5a69",
"session_id": "d24cc977-5b40-4fe0-b725-8aa4cd357de2",
"state": "queued",
"subject": {},
"trigger_kind": "assignment",
"turns": 36
}
],
"next_token": "next-token-6e53"
}
Graph
Used inside
No schema contains this one.
Contains
Used by
Sent by 0 operations
No operation takes it as a request body.
Returned by 1 operation