Get usage
Aggregate settled prompts and conversions by completion time. Queued, running, and paused work is excluded. Totals reconcile to historical receipts, not current rates. Filters combine with AND; rows sort by UTC bucket and dimensions. The default window is the last 30 days.
Reports return at most 1,000 rows without pagination. Larger results return 422; narrow the range or use fewer groups/coarser buckets. Queries time out after five seconds with 503. Customer metadata expires with job content: metadata filters then stop matching and metadata dimensions become null, while account totals remain. Store job-to-customer mappings locally for long-term attribution. Model/provider dimensions describe admitted configuration, including deterministic conversions, rather than proving inference occurred. Unknown, empty, or repeated parameters return 400; empty metadata filter values are allowed.
TypeScript
Authorizations
Revise API key from https://revise.io/console/api-keys. Send Authorization: Bearer .
Query Parameters
Inclusive completion time. Defaults to 30 days before end. RFC3339 timezone required.
Exclusive completion time. Defaults to now. Range must be positive and at most 366 days; hourly ranges at most 31 days.
UTC calendar buckets, or no time bucketing. Empty time buckets are omitted.
hour, day, month, none Comma-separated distinct dimensions, maximum three: api_key_id, provider, model, status, document_access, pricing_version, metadata.KEY (KEY 1–64 bytes). Missing values form null groups. Example: api_key_id,metadata.customer.
succeeded, failed, cancelled Exact conv_ ID.
Exact key_ ID of the submitting key. Older unattributed prompts do not match.
Exact AND matches, e.g. metadata[customer]=Acme. Keys up to 64 bytes; values up to 512 bytes.
Exact requested provider. Gemini uses the public name gemini.
openai, anthropic, xai, gemini Exact requested model ID; use with provider to disambiguate.
256Exact admitted document permission; not inferred from tool behavior.
read, comment, edit Exact pricing version pinned at admission.
256Response
Complete filtered usage report
"2026-09-06T00:00:00Z"
"2026-09-08T00:00:00Z"
"completed_at"
hour, day, month, none "day"
31000