Get conversation history
GET
/v1/threads/{threadId}/messagesHow 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 |
|---|---|---|---|---|
| threadId | path | string | Yes | Thread ID |
Query parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| limit | query | integer | No | — |
| offset | query | integer | No | — |
| order | query | asc | desc | No | — |
| compact | query | boolean | No | Compact media-heavy message metadata. |
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.
200Message historyapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| object | string | No | — |
| data | object[] | No | — |
| data[].id | string | No | Unique identifier. |
| data[].threadId | string | No | Thread ID. |
| data[].role | system | user | assistant | execution_log | No | — |
| data[].content | string | No | Raw text content. |
| data[].inputTokens | integer | No | — |
| data[].outputTokens | integer | No | — |
| data[].durationMs | integer | No | — |
| data[].actionsCount | integer | No | — |
| data[].logType | string | No | — |
| data[].logLevel | info | warn | error | success | warning | No | — |
| data[].logMetadata | object | No | — |
| data[].createdAt | string | No | ISO 8601 timestamp. |
| has_more | boolean | No | — |
| total_count | integer | No | — |