jobs

Backfill token usage from AgentsView payloads

post/api/tokens/backfill

Request body

$schemastring uri

A URL to the JSON Schema for this object.

dry_runboolean

Example request

{
  "$schema": "https://example.com/BackfillTokensRequest.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

failedinteger required
skippedinteger required
totalinteger required
updatedinteger required

Example response

{
  "$schema": "https://example.com/TokenSummary.json"
}

Changes

Changed in 3 of the 23 revisions of this API.23

    • added the new optional request property sessions/items/cost

      new-optional-request-property

    • added the new optional request property sessions/items/cached_input_tokens

      new-optional-request-property

    • added the new optional request property sessions/items/input_tokens

      new-optional-request-property

    • removed the request property sessions/items/cached_input_tokens

      request-property-removed

    • removed the request property sessions/items/input_tokens

      request-property-removed

    This revision also has 13 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog