Get Cost Report
Query parameters
Maximum number of time buckets to return in the response.
Maximum number of time buckets to return in the response.
Optionally set to the next_page token from the previous response.
Optionally set to the next_page token from the previous response.
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.
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.
Time buckets that end before this RFC 3339 timestamp will be returned.
Time buckets that end before this RFC 3339 timestamp will be returned.
Group by any subset of the available options.
Group by any subset of the available options.
Time granularity of the response data.
Headers
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
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.
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.
Response
Successful Response
Example response
{
"data": [
{
"starting_at": "2025-08-01T00:00:00Z",
"ending_at": "2025-08-02T00:00:00Z",
"results": [
{
"currency": "USD",
"amount": "123.78912",
"workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",
"description": "Claude Opus 5 Usage - Input Tokens",
"model": "claude-opus-5"
}
]
}
],
"next_page": "page_MjAyNS0wNS0xNFQwMDowMDowMFo="
}