Get detailed thread context state
GET
/v1/threads/{threadId}/context/detailsReturn detailed native Claude context information when available, with an estimate fallback.
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 |
|---|---|---|---|---|
| threadId | path | string | Yes | Thread ID |
Query parameters
None.
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.
200Detailed thread context stateapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| context | object | No | — |
| context.threadId | string | No | Thread ID. |
| context.sessionId | string | No | Session ID. |
| context.model | string | No | Model identifier. |
| context.maxTokens | integer | No | — |
| context.usedTokens | integer | No | — |
| context.remainingTokens | integer | No | — |
| context.remainingRatio | number | No | — |
| context.source | string | No | — |
| context.exact | boolean | No | — |
| context.categories | object[] | No | — |
| context.categories[].key | system_prompt | skills | messages | free_space | autocompact_buffer | other | No | — |
| context.categories[].label | string | No | — |
| context.categories[].tokens | integer | No | — |
| context.categories[].ratio | number | No | — |
| context.categories[].kind | used | free | buffer | other | No | — |
| context.rawText | string | No | — |
| context.estimate | object | No | — |
| context.estimate.threadId | string | No | Thread ID. |
| context.estimate.sessionId | string | No | Session ID. |
| context.estimate.model | string | No | Model identifier. |
| context.estimate.maxTokens | integer | No | — |
| context.estimate.usedTokens | integer | No | — |
| context.estimate.remainingTokens | integer | No | — |
| context.estimate.remainingRatio | number | No | — |
| context.estimate.source | string | No | — |
| context.estimate.exact | boolean | No | — |
| context.estimate.messageCount | integer | No | — |
| context.estimate.lastMessageAt | string | No | — |
| context.estimate.updatedAt | string | No | ISO 8601 timestamp. |
| availableActions | object | No | — |
| availableActions.compact | boolean | No | — |
| availableActions.clear | boolean | No | — |
| availableActions.btw | boolean | No | — |
| availableActions.fork | boolean | No | — |
| nativeError | string | No | — |
Get detailed thread context state
Loading...
Response 200
Loading...