List project task-agent sessions
GET
/v1/projects/{projectId}/agent-sessionsHow 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
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| projectId | path | string | Yes | Project ID |
Query parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| limit | query | integer | No | — |
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.
200Project task-agent session listapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| object | list | Yes | — |
| data | object[] | Yes | — |
| data[].id | string | Yes | Unique identifier. |
| data[].userId | string | Yes | User ID. |
| data[].organizationId | string | No | — |
| data[].createdByUserId | string | No | — |
| data[].projectId | string | No | Project ID. |
| data[].taskId | string | Yes | — |
| data[].threadId | string | Yes | Thread ID. |
| data[].agentId | string | No | Agent ID. |
| data[].environmentId | string | No | Computer ID. |
| data[].state | queued | active | awaiting_input | completed | failed | canceled | stale | Yes | — |
| data[].triggerKind | manual | automation | schedule | api | retry | Yes | — |
| data[].attemptNumber | integer | Yes | — |
| data[].idempotencyKey | string | Yes | — |
| data[].executionConfig | object | No | — |
| data[].limits | object | No | — |
| data[].inputTokens | integer | Yes | — |
| data[].outputTokens | integer | Yes | — |
| data[].costUsd | number | No | — |
| data[].errorCode | string | No | — |
| data[].errorMessage | string | No | — |
| data[].startedAt | string | No | ISO 8601 timestamp. |
| data[].completedAt | string | No | ISO 8601 timestamp. |
| data[].metadata | object | No | Free-form metadata object. |
| data[].createdAt | string | Yes | ISO 8601 timestamp. |
| data[].updatedAt | string | Yes | ISO 8601 timestamp. |
| has_more | boolean | Yes | — |
404Resource not foundapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| error | string | No | — |