SpecifyDocs

List agent sessions

/v1/work/agent-sessions

Signed-in sessionLaunch key product.workOperation agent_session_page

People follow what their agents are doing: open sessions, progress events, and the finished sessions that need a person to check them.

Query parameters

state"all" | "finished" | "needs_review" | "running" | "waiting"
projectIdstring
cursorstring
agentClientIdstring
projectTaskIdstring
expectedAuthorizationVersionstring
limitnumber
workItemIdstring
agentIdstring

Returns

contextobjectRequired
permission"not_permitted" | "permitted"Required
itemsnull | object[]Required
countobjectRequired
pagenull | objectRequired
freshnessobjectRequired
indexedfalse | true

Errors

400, 401, 403, 404, 409, 429 and 503 return {"error": {"code", "message", "correlationId"}}. A call without a valid credential gets 401 before its input is checked, and so does an address that is not an operation: 404 and 400 come only once the credential is accepted. Public operations answer without one.