Get Cost Report
The Admin API is unavailable for individual accounts. To collaborate with teammates and add members, set up your organization in Console → Settings → Organization.
Headers
Your unique Admin API key for authentication.
This key is required in the header of all Admin API requests, to authenticate your account and access Anthropic's services. Get your Admin API key through the Console.
Query Parameters
Maximum number of time buckets to return in the response.
1 <= x <= 31
7
Optionally set to the next_page
token from the previous response.
"page_MjAyNS0wNS0xNFQwMDowMDowMFo="
null
Time buckets that start on or after this RFC 3339 timestamp will be returned. Each time bucket will be snapped to the start of the minute/hour/day in UTC.
"2024-10-30T23:58:27.427722Z"
Time buckets that end before this RFC 3339 timestamp will be returned.
"2024-10-30T23:58:27.427722Z"
Group by any subset of the available options.
workspace_id
, description
"workspace_id"
"description"
Time granularity of the response data.
1d