Tokens
Get API Key usage
Authentication: API key — any valid key is accepted and the response only ever covers the calling key. The key id is taken from the authenticated credential, never from the request, so one key cannot read another's usage. Counters are hourly rollups written by the API's background flusher, so the most recent bucket lags real time by up to one flush interval. Optional query filters: from, to, granularity (hour|day|total), group_by (scope|route).
Authorizations
Talus API Key in the form key_id.secret. The API also accepts Authorization: ApiKey <key_id.secret>, but the docs UI is configured to send x-api-key.
Query Parameters
Inclusive lower bound as an RFC 3339 timestamp. Defaults to 7 days ago.
Exclusive upper bound as an RFC 3339 timestamp. Defaults to now.
Bucket width: hour (default), day, or total.
Grouping dimension: scope (default) or route.
200application/json
Usage rollups for the calling API key
Mean server-side duration over the bucket, in milliseconds.
Start of the bucket, RFC 3339. null when granularity=total.
The grouping value: an API-key scope, or a matched route template.
Total requests across every returned bucket.
400
Invalid filter value
401
API key missing or invalid
500
Internal server error