v40

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-01108178385.8 KB
usage

Self-service usage, budget, and rate limit status

Returns recorded usage, budget statuses, and rate limit statuses for the caller's effective user path (the path bound to the managed API key, or the user-path header for master-key callers).

get/v1/usage

Query parameters

start_datestring

Inclusive window start (YYYY-MM-DD, UTC); defaults to 29 days before end_date

end_datestring

Inclusive window end (YYYY-MM-DD, UTC); defaults to today; the whole range may span at most 365 days

daysinteger

Window length ending today when no explicit dates are given (default 30, max 365)

Response

OK

server_timestring
user_pathstring