Read the organization's API usage, grouped by action or day
Compte & utilisation
Obtenir l'utilisation
Lis l’utilisation de l’API de l’organisation, groupée par action ou par jour.
GET
Read the organization's API usage, grouped by action or day
Agrège les transactions de credits attribuées à l’API de ton organisation dans des buckets
d’utilisation. Renvoie
total_credits, total_requests et une liste de buckets
(key, credits, requests). Restreins la fenêtre avec from/to, choisis le
regroupement avec group_by (par action ou par jour) et limite à une seule clé avec
api_key_id. Nécessite le scope usage.read.Autorisations
Organization API key as a bearer token: Authorization: Bearer samsa_sk_....
Paramètres de requête
ISO-8601 date or datetime lower bound (inclusive). Defaults to the current billing period's start when both bounds are omitted.
Exemple:
"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.
Exemple:
"2026-07-31"
Bucket dimension: action (action type) or day (calendar date).
Options disponibles:
action, day Restrict to one of the organization's API keys (404 if not yours).

