Follow Discord
Sweep 24 Nov 2026 · 22:58Z Build v2.1.332 549 read Stable v2.1.325 Latest v2.1.331 Next v2.1.332 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Cost changedapi/beta/organization/analytics/cost

Nearest release: v2.1.332, 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+25added
Lines−19removed
From line 17 where the diff opens
First seen 10 Sep 2026 this site's first read of the page
Recorded edits14to this page, all time

The whole hunk

from line 17, old and new numbered
/
lines
from line 17
1717combination is returned across pages. With no `group_by[]` and no
1818`time_bucket_width`, a single row aggregates the whole range. Includes
1919all cost, whether or not it is attributable to a seat user. Requires an
20API key with the `read:analytics` scope, or an Admin API key.
20API key with the `read:analytics` scope, or an Admin API key. This
21endpoint is in beta and is not available to organizations with HIPAA
22readiness enabled: their API requests return a 400 error. A parent
23organization's report across its child organizations leaves out the child
24organizations that have HIPAA readiness enabled. If the parent has child
25organizations and all of them have HIPAA readiness enabled, the request
26returns a 400 error.
2127 
2228### Query parameters
2329 
from line 55
4955 
5056- `agent_ids: optional array of string`
5157 
52 Filter to usage incurred by sessions of specific Claude Managed Agents agents. Use `group_by[]=agent_id` to break out per-agent values. Claude Platform organizations only.
58 Filter to usage incurred by sessions of specific Claude Managed Agents agents. Use `group_by[]=agent_id` to break out per-agent values.
5359 
5460 maxItems: 100
5561 
5662- `api_key_ids: optional array of string`
5763 
58 Filter to usage authenticated by specific API keys, by tagged API key ID (`apikey_...`), whichever identity the usage is attributed to. Include an empty entry (`api_key_ids[]=`) to also match usage that no API key authenticated. Use `group_by[]=api_key_id` to break out per-key values; usage without a key has a null `api_key_id`. Claude Platform organizations only.
64 Filter to usage authenticated by specific API keys, by tagged API key ID (`apikey_...`), whichever identity the usage is attributed to. Include an empty entry (`api_key_ids[]=`) to also match usage that no API key authenticated. Use `group_by[]=api_key_id` to break out per-key values; usage without a key has a null `api_key_id`.
5965 
6066 maxItems: 100
6167 
from line 99
9399 
94100- `deployment_ids: optional array of string`
95101 
96 Filter to usage incurred by Claude Managed Agents sessions that specific deployments started. Use `group_by[]=deployment_id` to break out per-deployment values. Claude Platform organizations only.
102 Filter to usage incurred by Claude Managed Agents sessions that specific deployments started. Use `group_by[]=deployment_id` to break out per-deployment values.
97103 
98104 maxItems: 100
99105 
from line 111
105111 
106112- `environment_ids: optional array of string`
107113 
108 Filter to usage incurred by Claude Managed Agents sessions that ran in specific environments. Use `group_by[]=environment_id` to break out per-environment values. Claude Platform organizations only.
114 Filter to usage incurred by Claude Managed Agents sessions that ran in specific environments. Use `group_by[]=environment_id` to break out per-environment values.
109115 
110116 maxItems: 100
111117 
from line 215
209215 
210216- `organization_ids: optional array of string`
211217 
212 Filter a parent organization's report to specific child organizations, by organization UUID or `org_` ID; an ID that is not one of its child organizations matches nothing. Requires an API key created at the parent organization level. Use `group_by[]=organization_id` to break out per-organization values.
218 Filter a parent organization's report to specific child organizations, by organization UUID or `org_` ID; an ID that is not one of its child organizations matches nothing. The report leaves out child organizations with HIPAA readiness enabled, and naming one returns a 400 error. Requires an API key created at the parent organization level. Use `group_by[]=organization_id` to break out per-organization values.
213219 
214220 maxItems: 100
215221 
from line 261
255261 
256262- `service_tiers: optional array of BetaAnalyticsServiceTier`
257263 
258 Filter to specific service tiers. Use `group_by[]=service_tier` to break out per-tier values. Claude Platform organizations only; matches nothing for a Claude Enterprise organization.
264 Filter to specific service tiers. Use `group_by[]=service_tier` to break out per-tier values.
259265 
260266 maxItems: 100
261267 
from line 279
273279 
274280- `session_ids: optional array of string`
275281 
276 Filter to usage incurred by specific Claude Managed Agents sessions, by tagged session ID (`sesn_...`). Use `group_by[]=session_id` to break out per-session values. Claude Platform organizations only.
282 Filter to usage incurred by specific Claude Managed Agents sessions, by tagged session ID (`sesn_...`). Use `group_by[]=session_id` to break out per-session values.
277283 
278284 maxItems: 100
279285 
from line 311
305311 
306312- `user_profile_ids: optional array of string`
307313 
308 Filter to usage attributed to specific user profiles, by tagged user profile ID (`uprof_...`). Use `group_by[]=user_profile_id` to break out per-profile values. Claude Platform organizations only.
314 Filter to usage attributed to specific user profiles, by tagged user profile ID (`uprof_...`). Use `group_by[]=user_profile_id` to break out per-profile values.
309315 
310316 maxItems: 100
311317 
312318- `workspace_ids: optional array of string`
313319 
314 Filter to usage in specific workspaces, by tagged workspace ID (`wrkspc_...`). Use `group_by[]=workspace_id` to break out per-workspace values. Claude Platform organizations only; matches nothing for a Claude Enterprise organization.
320 Filter to usage in specific workspaces, by tagged workspace ID (`wrkspc_...`). Use `group_by[]=workspace_id` to break out per-workspace values.
315321 
316322 maxItems: 100
317323 
from line 693
687693 
688694 - `service_tier: BetaAnalyticsServiceTier or null`
689695 
690 Service tier the usage was served at. Populated only when `service_tier` is in `group_by[]`; null for usage with no service tier (for example, code execution) and for Claude Enterprise usage.
696 Service tier the usage was served at. Populated only when `service_tier` is in `group_by[]`; null for usage with no service tier (for example, code execution).
691697 
692698 - `"batch"`
693699 
from line 739
733739 
734740 - `user_profile_id: string or null`
735741 
736 User profile the usage was attributed to, as a tagged `uprof_` ID. Populated only when `user_profile_id` is in `group_by[]`; null for usage that named no profile and for Claude Enterprise usage.
742 User profile the usage was attributed to, as a tagged `uprof_` ID. Populated only when `user_profile_id` is in `group_by[]`; null for usage that named no profile.
737743 
738744 - `workspace_id: string or null`
739745 
740 Workspace the usage occurred in, as a tagged workspace ID, including the organization's default workspace. Populated only when `workspace_id` is in `group_by[]`; null for Claude Enterprise usage.
746 Workspace the usage occurred in, as a tagged workspace ID, including a Claude Platform organization's default workspace. Populated only when `workspace_id` is in `group_by[]`; null for usage in a Claude Enterprise organization's default workspace, which is its only workspace.
741747 
742748 - `starting_at: string`
743749 
from line 1017
10111017 
10121018 - `service_tier: BetaAnalyticsServiceTier or null`
10131019 
1014 Service tier the usage was served at. Populated only when `service_tier` is in `group_by[]`; null for usage with no service tier (for example, code execution) and for Claude Enterprise usage.
1020 Service tier the usage was served at. Populated only when `service_tier` is in `group_by[]`; null for usage with no service tier (for example, code execution).
10151021 
10161022 - `"batch"`
10171023 
from line 1063
10571063 
10581064 - `user_profile_id: string or null`
10591065 
1060 User profile the usage was attributed to, as a tagged `uprof_` ID. Populated only when `user_profile_id` is in `group_by[]`; null for usage that named no profile and for Claude Enterprise usage.
1066 User profile the usage was attributed to, as a tagged `uprof_` ID. Populated only when `user_profile_id` is in `group_by[]`; null for usage that named no profile.
10611067 
10621068 - `workspace_id: string or null`
10631069 
1064 Workspace the usage occurred in, as a tagged workspace ID, including the organization's default workspace. Populated only when `workspace_id` is in `group_by[]`; null for Claude Enterprise usage.
1070 Workspace the usage occurred in, as a tagged workspace ID, including a Claude Platform organization's default workspace. Populated only when `workspace_id` is in `group_by[]`; null for usage in a Claude Enterprise organization's default workspace, which is its only workspace.
10651071 
10661072### Beta Analytics Cost Group By
10671073 
from line 1335
13291335 
13301336 - `service_tier: BetaAnalyticsServiceTier or null`
13311337 
1332 Service tier the usage was served at. Populated only when `service_tier` is in `group_by[]`; null for usage with no service tier (for example, code execution) and for Claude Enterprise usage.
1338 Service tier the usage was served at. Populated only when `service_tier` is in `group_by[]`; null for usage with no service tier (for example, code execution).
13331339 
13341340 - `"batch"`
13351341 
from line 1381
13751381 
13761382 - `user_profile_id: string or null`
13771383 
1378 User profile the usage was attributed to, as a tagged `uprof_` ID. Populated only when `user_profile_id` is in `group_by[]`; null for usage that named no profile and for Claude Enterprise usage.
1384 User profile the usage was attributed to, as a tagged `uprof_` ID. Populated only when `user_profile_id` is in `group_by[]`; null for usage that named no profile.
13791385 
13801386 - `workspace_id: string or null`
13811387 
1382 Workspace the usage occurred in, as a tagged workspace ID, including the organization's default workspace. Populated only when `workspace_id` is in `group_by[]`; null for Claude Enterprise usage.
1388 Workspace the usage occurred in, as a tagged workspace ID, including a Claude Platform organization's default workspace. Populated only when `workspace_id` is in `group_by[]`; null for usage in a Claude Enterprise organization's default workspace, which is its only workspace.
13831389 
13841390 - `starting_at: string`
13851391 
Feedback