Skip to main content
POST
TypeScript (SDK)

Authorizations

tql_api_key
string
header
required

Headers

Connect-Protocol-Version
enum<number>
default:1
required

Define the version of the Connect protocol

Available options:
1
Connect-Timeout-Ms
number

Define the timeout, in ms

Body

application/json
chatId
string
required
includeCosts
boolean

Response

Success

usage
LlmUsage · object[]
contextWindowUsed
number<double>

range: [0, 1]

estimatedCost
number<double> | null
deprecated

Deprecated: never populated. Dollar figures were removed; use the ACU fields.

estimatedComputeCost
number<double> | null
deprecated

Deprecated: never populated. Dollar figures were removed; use estimated_compute_acus.

sandboxId
string | null

The chat's sandbox id ({orgID}-{chatID}), set when the thread used any sandbox compute. Lets the UI deep-link to the sandbox detail. Empty/omitted when the thread had no sandbox usage.

estimatedComputeAcus
number<double> | null

Sandbox compute usage for this chat in ACUs (sandbox-seconds / 3600 × ACUs per instance-hour). Requires include_costs; present whenever the thread used a sandbox.