Get thread context estimate
GET
/v1/threads/{threadId}/contextReturn the current estimated context window usage for the next message in this thread.
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.
200Context estimateapplication/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.messageCount | integer | No | — |
| context.lastMessageAt | string | No | — |
| context.updatedAt | string | No | ISO 8601 timestamp. |