Read the organization's API usage, grouped by action or day
Account & Usage
Get usage
Read the organization’s API usage, grouped by action or day.
GET
Read the organization's API usage, grouped by action or day
Aggregates your organization’s API-attributed credit transactions into usage
buckets. Returns
total_credits, total_requests, and a list of buckets
(key, credits, requests). Narrow the window with from/to, choose the
grouping with group_by (by action or by day), and scope to a single key with
api_key_id. Requires the usage.read scope.Authorizations
Organization API key as a bearer token: Authorization: Bearer samsa_sk_....
Headers
Query Parameters
ISO-8601 date or datetime lower bound (inclusive). Defaults to the current billing period's start when both bounds are omitted.
Example:
"2026-07-01"
ISO-8601 date or datetime upper bound (inclusive; a bare date covers the whole day). Defaults to the current billing period's end when both bounds are omitted.
Example:
"2026-07-31"
Bucket dimension: action (action type) or day (calendar date).
Available options:
action, day Restrict to one of the organization's API keys (404 if not yours).

