internal

Internal Update Run Stats

Update token/cost stats on a run (for margin monitoring).

Credit deduction happens at task pickup, not here. This endpoint only records cost_usd for internal tracking.

put/internal/runs/{run_id}/stats

Path parameters

run_idstring uuid required

Request body

token_count_inputinteger
token_count_outputinteger
cost_usdnumber
cache_read_input_tokensinteger
cache_creation_input_tokensinteger

Response

Successful Response

Changes

No recorded changes to this endpoint across all 1 revision of this API.