Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Get Cost Report changedapi/admin/cost_report/retrieve

Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+18added
Lines−17removed
From line 1 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits5to this page, all time

# Get Cost Report ## Query parameters ## Headers ## Returns ## Example ### Response (200) ## Get Cost Report ### Query Parameters ### Header Parameters ### Returns ### Example #### Response

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
1---
2title: Get Cost Report
3url: https://platform.claude.com/docs/en/api/admin/cost_report/retrieve
4---
1# Get Cost Report
52 
6## Get Cost Report
3**GET** `/v1/organizations/cost_report`
74 
8**get** `/v1/organizations/cost_report`
9 
105Get Cost Report
116 
12### Query Parameters
7## Query parameters
138 
149- `starting_at: string`
1510 
from line 11
1611 Time buckets that start on or after this RFC 3339 timestamp will be returned.
1712 Each time bucket will be snapped to the start of the minute/hour/day in UTC.
1813 
14 format: date-time
15 
1916- `bucket_width: optional "1d"`
2017 
2118 Time granularity of the response data.
2219 
23 - `"1d"`
20 default: 1d
2421 
2522- `ending_at: optional string`
2623 
2724 Time buckets that end before this RFC 3339 timestamp will be returned.
2825 
26 format: date-time
27 
2928- `group_by: optional array of "description" or "workspace_id"`
3029 
3130 Group by any subset of the available options.
from line 37
3837 
3938 Maximum number of time buckets to return in the response.
4039 
40 default: 7, maximum: 31, minimum: 1
41 
4142- `page: optional string`
4243 
4344 Optionally set to the `next_page` token from the previous response.
4445 
45### Header Parameters
46## Headers
4647 
4748- `"anthropic-beta": optional array of string`
4849 
from line 51
5051 
5152 To use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta.
5253 
53### Returns
54## Returns
5455 
55- `CostReport object { data, has_more, next_page }`
56- `CostReport object`
5657 
57 - `data: array of object { ending_at, results, starting_at }`
58 - `data: array of object`
5859 
5960 List of time buckets for this page, oldest first: one per `bucket_width` interval, including intervals with no costs (their `results` list is empty). A page holds at most `limit` buckets.
6061 
from line 63
6263 
6364 End of the time bucket (exclusive) in RFC 3339 format.
6465 
65 - `results: array of object { amount, context_window, cost_type, 7 more }`
66 - `results: array of object`
6667 
6768 List of cost items for this time bucket. There may be multiple items if one or more `group_by[]` parameters are specified.
6869 
from line 152
151152 
152153 Opaque cursor for the next page, or `null` when `has_more` is false. Pass it as the `page` parameter in the next request.
153154 
154### Example
155## Example
155156 
156```http
157```bash
157158curl https://api.anthropic.com/v1/organizations/cost_report \
158159 -H 'anthropic-version: 2023-06-01' \
159160 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
160161```
161162 
162#### Response
163### Response (200)
163164 
164165```json
165166{
Feedback