billing

Get Billing Usage By Agent

Per-agent credits rollup over the last N days (1-365).

Powers the "Usage by agent" summary in tintin-app's billing panel — replaces the old per-transaction list. Cached 10 minutes; per-user rate-limited (same bucket as /agents/{id}/usage/*).

get/api/billing/usage/by-agent

Request

  • Base URL: https://api.tintin-x.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.tintin-x.com/api/billing/usage/by-agent
  • Auth: HTTP bearer

Query parameters

daysinteger

Response

Successful Response

daysinteger required
total_credits_centsinteger required
generated_atstring date-time required
cache_hitboolean required

Changes

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