Agent Jobs

Get what an agent job spent on the model, per attempt

Changed on

One entry per attempt with recorded usage, read from the usage ledger, with its tokens, pricing state and cost. The total is absent while an attempt has no known price.

get/workspaces/{workspaceSlug}/agents/jobs/{jobId}/usage

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /workspaces/{workspaceSlug}/agents/jobs/{jobId}/usage
  • Auth: HTTP bearer

Path parameters

workspaceSlugstring required

Workspace slug

jobIdstring uuid required

Response

Usage returned

totalCostUsdnumber

The cost of every attempt in US dollars; absent when an attempt has no known price or no usage is recorded

unpricedAttemptsinteger required

Attempts whose price is not known

Changes