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

Cost Report changedapi/admin/cost_report

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+21added
Lines−20removed
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

### Query parameters ### Headers #### Response (200) ## Domain types ### Query Parameters ### Header Parameters #### Response ## Domain Types

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
1---
2title: Cost Report
3url: https://platform.claude.com/docs/en/api/admin/cost_report
4---
5 
61# Cost Report
72 
83## Get Cost Report
94 
10**get** `/v1/organizations/cost_report`
5**GET** `/v1/organizations/cost_report`
116 
127Get Cost Report
138 
14### Query Parameters
9### Query parameters
1510 
1611- `starting_at: string`
1712 
from line 13
1813 Time buckets that start on or after this RFC 3339 timestamp will be returned.
1914 Each time bucket will be snapped to the start of the minute/hour/day in UTC.
2015 
16 format: date-time
17 
2118- `bucket_width: optional "1d"`
2219 
2320 Time granularity of the response data.
2421 
25 - `"1d"`
22 default: 1d
2623 
2724- `ending_at: optional string`
2825 
2926 Time buckets that end before this RFC 3339 timestamp will be returned.
3027 
28 format: date-time
29 
3130- `group_by: optional array of "description" or "workspace_id"`
3231 
3332 Group by any subset of the available options.
from line 39
4039 
4140 Maximum number of time buckets to return in the response.
4241 
42 default: 7, maximum: 31, minimum: 1
43 
4344- `page: optional string`
4445 
4546 Optionally set to the `next_page` token from the previous response.
4647 
47### Header Parameters
48### Headers
4849 
4950- `"anthropic-beta": optional array of string`
5051 
from line 55
5455 
5556### Returns
5657 
57- `CostReport object { data, has_more, next_page }`
58- `CostReport object`
5859 
59 - `data: array of object { ending_at, results, starting_at }`
60 - `data: array of object`
6061 
6162 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.
6263 
from line 65
6465 
6566 End of the time bucket (exclusive) in RFC 3339 format.
6667 
67 - `results: array of object { amount, context_window, cost_type, 7 more }`
68 - `results: array of object`
6869 
6970 List of cost items for this time bucket. There may be multiple items if one or more `group_by[]` parameters are specified.
7071 
from line 156
155156 
156157### Example
157158 
158```http
159```bash
159160curl https://api.anthropic.com/v1/organizations/cost_report \
160161 -H 'anthropic-version: 2023-06-01' \
161162 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
162163```
163164 
164#### Response
165#### Response (200)
165166 
166167```json
167168{
from line 191
190191}
191192```
192193 
193## Domain Types
194## Domain types
194195 
195196### Cost Report
196197 
197- `CostReport object { data, has_more, next_page }`
198- `CostReport object`
198199 
199 - `data: array of object { ending_at, results, starting_at }`
200 - `data: array of object`
200201 
201202 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.
202203 
from line 205
204205 
205206 End of the time bucket (exclusive) in RFC 3339 format.
206207 
207 - `results: array of object { amount, context_window, cost_type, 7 more }`
208 - `results: array of object`
208209 
209210 List of cost items for this time bucket. There may be multiple items if one or more `group_by[]` parameters are specified.
210211 
Feedback