Summarize project task-agent sessions
GET
/v1/projects/{projectId}/agent-sessions/summaryComputes reliability, latency, token, cost, and stalled-attempt metrics from durable project execution records.
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
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| projectId | path | string | Yes | Project ID |
Query parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| window | query | 24h | 7d | 30d | all | No | — |
| stalledAfterMinutes | 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 execution summaryapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| projectId | string | Yes | Project ID. |
| window | 24h | 7d | 30d | all | Yes | — |
| metrics | object | Yes | — |
| metrics.generatedAt | string | Yes | — |
| metrics.windowStartedAt | string | Yes | — |
| metrics.totalAttempts | integer | Yes | — |
| metrics.stateCounts | object | Yes | — |
| metrics.terminalAttempts | integer | Yes | — |
| metrics.successfulAttempts | integer | Yes | — |
| metrics.failedAttempts | integer | Yes | — |
| metrics.successRate | number | Yes | — |
| metrics.failureRate | number | Yes | — |
| metrics.stalledAttempts | integer | Yes | — |
| metrics.totalInputTokens | integer | Yes | — |
| metrics.totalOutputTokens | integer | Yes | — |
| metrics.totalTokens | integer | Yes | — |
| metrics.totalCostUsd | number | Yes | — |
| metrics.averageDurationMs | integer | Yes | — |
| metrics.p95DurationMs | integer | Yes | — |
400Response
None.
404Resource not foundapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| error | string | No | — |
Summarize project task-agent sessions
Loading...
Response 200
Loading...