Get Cost Report
GET/v1/organizations/cost_report
Get Cost Report
Query Parameters
starting_at: string
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.
bucket_width: optional "1d"
Time granularity of the response data.
ending_at: optional string
Time buckets that end before this RFC 3339 timestamp will be returned.
limit: optional number
Maximum number of time buckets to return in the response.
page: optional string
Optionally set to the next_page token from the previous response.
Header Parameters
Returns
Get Cost Report
curl https://api.anthropic.com/v1/organizations/cost_report \
-H 'anthropic-version: 2023-06-01' \
-H "X-Api-Key: $ANTHROPIC_ADMIN_API_KEY"