List task-agent sessions

GET/v1/tasks/{taskId}/agent-sessions

List durable agent execution attempts associated with the task.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
taskIdpathstringYesTask ID
Query parameters
NameLocationTypeRequiredDescription
limitqueryintegerNo

Body schema

This endpoint does not require a request body.

None.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Task-agent session listapplication/json
FieldTypeRequiredDescription
objectlistYes
dataobject[]Yes
data[].idstringYesUnique identifier.
data[].userIdstringYesUser ID.
data[].organizationIdstringNo
data[].createdByUserIdstringNo
data[].projectIdstringNoProject ID.
data[].taskIdstringYes
data[].threadIdstringYesThread ID.
data[].agentIdstringNoAgent ID.
data[].environmentIdstringNoComputer ID.
data[].statequeued | active | awaiting_input | completed | failed | canceled | staleYes
data[].triggerKindmanual | automation | schedule | api | retryYes
data[].attemptNumberintegerYes
data[].idempotencyKeystringYes
data[].executionConfigobjectNo
data[].limitsobjectNo
data[].inputTokensintegerYes
data[].outputTokensintegerYes
data[].costUsdnumberNo
data[].errorCodestringNo
data[].errorMessagestringNo
data[].startedAtstringNoISO 8601 timestamp.
data[].completedAtstringNoISO 8601 timestamp.
data[].metadataobjectNoFree-form metadata object.
data[].createdAtstringYesISO 8601 timestamp.
data[].updatedAtstringYesISO 8601 timestamp.
has_morebooleanYes
404Resource not foundapplication/json
FieldTypeRequiredDescription
errorstringNo
List task-agent sessions
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow