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

Usage changedapi/beta/organization/analytics/usage

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+24added
Lines−18removed
From line 18 where the diff opens
First seen 10 Sep 2026 this site's first read of the page
Recorded edits13to this page, all time

The whole hunk

from line 18, old and new numbered
/
lines
from line 18
1818and no `time_bucket_width`, a single row aggregates the whole range.
1919Includes all usage, whether or not it is attributable to a seat user.
2020Requires an API key with the `read:analytics` scope, or an Admin API key.
21This endpoint 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 659
653659 
654660 - `service_tier: BetaAnalyticsServiceTier or null`
655661 
656 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.
662 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).
657663 
658664 - `"batch"`
659665 
from line 691
685691 
686692 - `user_profile_id: string or null`
687693 
688 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.
694 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.
689695 
690696 - `workspace_id: string or null`
691697 
692 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.
698 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.
693699 
694700 - `starting_at: string`
695701 
from line 1011
10051011 
10061012 - `service_tier: BetaAnalyticsServiceTier or null`
10071013 
1008 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.
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).
10091015 
10101016 - `"batch"`
10111017 
from line 1043
10371043 
10381044 - `user_profile_id: string or null`
10391045 
1040 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.
1046 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.
10411047 
10421048 - `workspace_id: string or null`
10431049 
1044 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.
1050 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.
10451051 
10461052### Beta Analytics Usage Group By
10471053 
from line 1277
12711277 
12721278 - `service_tier: BetaAnalyticsServiceTier or null`
12731279 
1274 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.
1280 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).
12751281 
12761282 - `"batch"`
12771283 
from line 1309
13031309 
13041310 - `user_profile_id: string or null`
13051311 
1306 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.
1312 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.
13071313 
13081314 - `workspace_id: string or null`
13091315 
1310 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.
1316 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.
13111317 
13121318 - `starting_at: string`
13131319 
Feedback