Usage

Aggregate API usage stats

Returns token and call counts aggregated by operation_type and model over the requested date range. Default range is the last 30 days.

For organizations without the "Cost control endpoints" approval, breakdown[].model is redacted (omitted) and the response carries "cost_fields": "redacted". Approved organizations see the field unredacted and no cost_fields marker. This applies uniformly — every tenant, not just consumers of the per-document route.

get/v1/usage

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Query parameters

from, string date-time

Start of the reporting window (ISO 8601). Default 30 days ago.

to, string date-time

End of the reporting window (ISO 8601). Default now.

Response

Aggregated usage stats.

UsageResponse required
period, object required
totals, object required
breakdown, object[] required
cost_fields, 'redacted'

Present and set to "redacted" only for organizations without the "Cost control endpoints" approval — signals that breakdown[].model has been omitted. Absent for approved organizations.

links, object required

Example response

{
  "period": {
    "from": "2026-04-25T14:30:00.000Z",
    "to": "2026-04-25T14:30:00.000Z"
  }
}

Changes

No recorded changes to this operation across all 32 revisions of this API.