Analytics changedapi/beta/organization/analytics
Nearest release: v2.1.323, published under an hour before 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+69added
Lines−0removed
From line
581
where the diff opens
First seen
10 Sep 2026
this site's first read of the page
Recorded edits20to this page, all time
### Beta Analytics Claude Tag Metrics
The whole hunk
from line 581, old and new numbered
/
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 581
581581
582582 - `"scheduled"`
583583
584### Beta Analytics Claude Tag Metrics
585
586- `BetaAnalyticsClaudeTagMetrics object`
587
588 Claude Tag activity metrics for a single linked user on a given day.
589
590 - `active_day_count: number or null`
591
592 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over the window in date-range mode, so it is the number of active days; on grouped rows, the total of each member's active days. Null when Claude Tag data cannot be read for the request. Otherwise, 0 on a row filtered by project, and null on any other row when no covered day was measured.
593
594 - `active_message_count: number or null`
595
596 Number of the user's Slack messages that made them active: @-mentions, direct messages, group direct message asks, and thread posts Claude answered. Other messages are not counted. Null when Claude Tag data cannot be read for the request. Otherwise, 0 on a row filtered by project, and null on any other row when no covered day was measured.
597
584598### Beta Analytics Connector Activity
585599
586600- `BetaAnalyticsConnectorActivity object`
from line 2017
20032017
20042018 Number of users with Claude Design activity in the 7-day rolling window. Omitted from the response while the per-product breakdown is not enabled for this organization.
20052019
2020 - `claude_tag_daily_active_user_count: optional number or null`
2021
2022 Number of Slack users active in Claude Tag on the requested day. Counts distinct Slack users, including users who have not linked a Claude account, so it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with no measured value, when Claude Tag data cannot be read for the request, and when the response is scoped to an RBAC group, because an unlinked user belongs to no group. Omitted from the response on deployments that do not offer Claude Tag reporting.
2023
2024 - `claude_tag_monthly_active_user_count: optional number or null`
2025
2026 Number of Slack users active in Claude Tag in the 28-day rolling window. Counts distinct Slack users, including users who have not linked a Claude account, so it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with no measured value, when Claude Tag data cannot be read for the request, and when the response is scoped to an RBAC group, because an unlinked user belongs to no group. Omitted from the response on deployments that do not offer Claude Tag reporting.
2027
2028 - `claude_tag_weekly_active_user_count: optional number or null`
2029
2030 Number of Slack users active in Claude Tag in the 7-day rolling window. Counts distinct Slack users, including users who have not linked a Claude account, so it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with no measured value, when Claude Tag data cannot be read for the request, and when the response is scoped to an RBAC group, because an unlinked user belongs to no group. Omitted from the response on deployments that do not offer Claude Tag reporting.
2031
20062032 - `office_agent_daily_active_user_count: optional number or null`
20072033
20082034 Number of users with Claude in Office activity on the requested day. Omitted from the response while the per-product breakdown is not enabled for this organization.
from line 3260
32343260
32353261 Same measure as `cowork_metrics.write_tool_count`, for activity recorded while members had Chat and Cowork unified turned on.
32363262
3263 - `claude_tag_metrics: optional BetaAnalyticsClaudeTagMetrics or null`
3264
3265 Claude Tag activity in Slack by a user who has linked a Claude account. Activity by Slack users who have not linked an account appears only in the `/summaries` Claude Tag counts, so these rows do not add up to those counts. Omitted from the response on deployments that do not offer Claude Tag reporting.
3266
3267 - `active_day_count: number or null`
3268
3269 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over the window in date-range mode, so it is the number of active days; on grouped rows, the total of each member's active days. Null when Claude Tag data cannot be read for the request. Otherwise, 0 on a row filtered by project, and null on any other row when no covered day was measured.
3270
3271 - `active_message_count: number or null`
3272
3273 Number of the user's Slack messages that made them active: @-mentions, direct messages, group direct message asks, and thread posts Claude answered. Other messages are not counted. Null when Claude Tag data cannot be read for the request. Otherwise, 0 on a row filtered by project, and null on any other row when no covered day was measured.
3274
32373275 - `last_activity_date: optional string or null`
32383276
32393277 Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity, within the requested window: equal to the requested `date` in single-day mode, and to the latest active day from `starting_date` (inclusive) to `ending_date` (exclusive) in date-range rollup mode — never a day earlier than the window start. On filtered requests (`filter[]`) only days matching the filter count: with `filter[]=rbac_group_id:{id}` it is the last day the user was active while a member of that group, consistent with the row's other metrics. On grouped (`group_by[]`) rows it is the latest day any member of the group was active (the requested `date` in single-day mode). Omitted from the response while last-activity reporting is not enabled for this organization.
from line 3483
34453483
34463484 Number of users with Claude Design activity in the 7-day rolling window. Omitted from the response while the per-product breakdown is not enabled for this organization.
34473485
3486 - `claude_tag_daily_active_user_count: optional number or null`
3487
3488 Number of Slack users active in Claude Tag on the requested day. Counts distinct Slack users, including users who have not linked a Claude account, so it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with no measured value, when Claude Tag data cannot be read for the request, and when the response is scoped to an RBAC group, because an unlinked user belongs to no group. Omitted from the response on deployments that do not offer Claude Tag reporting.
3489
3490 - `claude_tag_monthly_active_user_count: optional number or null`
3491
3492 Number of Slack users active in Claude Tag in the 28-day rolling window. Counts distinct Slack users, including users who have not linked a Claude account, so it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with no measured value, when Claude Tag data cannot be read for the request, and when the response is scoped to an RBAC group, because an unlinked user belongs to no group. Omitted from the response on deployments that do not offer Claude Tag reporting.
3493
3494 - `claude_tag_weekly_active_user_count: optional number or null`
3495
3496 Number of Slack users active in Claude Tag in the 7-day rolling window. Counts distinct Slack users, including users who have not linked a Claude account, so it can exceed `daily_active_user_count` and `assigned_seat_count`. Null on a day with no measured value, when Claude Tag data cannot be read for the request, and when the response is scoped to an RBAC group, because an unlinked user belongs to no group. Omitted from the response on deployments that do not offer Claude Tag reporting.
3497
34483498 - `office_agent_daily_active_user_count: optional number or null`
34493499
34503500 Number of users with Claude in Office activity on the requested day. Omitted from the response while the per-product breakdown is not enabled for this organization.
from line 3566
35163566 "claude_design_daily_active_user_count": 0,
35173567 "claude_design_monthly_active_user_count": 0,
35183568 "claude_design_weekly_active_user_count": 0,
3569 "claude_tag_daily_active_user_count": 0,
3570 "claude_tag_monthly_active_user_count": 0,
3571 "claude_tag_weekly_active_user_count": 0,
35193572 "office_agent_daily_active_user_count": 0,
35203573 "office_agent_monthly_active_user_count": 0,
35213574 "office_agent_weekly_active_user_count": 0,
from line 4094
40414094
40424095 Same measure as `cowork_metrics.write_tool_count`, for activity recorded while members had Chat and Cowork unified turned on.
40434096
4097 - `claude_tag_metrics: optional BetaAnalyticsClaudeTagMetrics or null`
4098
4099 Claude Tag activity in Slack by a user who has linked a Claude account. Activity by Slack users who have not linked an account appears only in the `/summaries` Claude Tag counts, so these rows do not add up to those counts. Omitted from the response on deployments that do not offer Claude Tag reporting.
4100
4101 - `active_day_count: number or null`
4102
4103 1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over the window in date-range mode, so it is the number of active days; on grouped rows, the total of each member's active days. Null when Claude Tag data cannot be read for the request. Otherwise, 0 on a row filtered by project, and null on any other row when no covered day was measured.
4104
4105 - `active_message_count: number or null`
4106
4107 Number of the user's Slack messages that made them active: @-mentions, direct messages, group direct message asks, and thread posts Claude answered. Other messages are not counted. Null when Claude Tag data cannot be read for the request. Otherwise, 0 on a row filtered by project, and null on any other row when no covered day was measured.
4108
40444109 - `last_activity_date: optional string or null`
40454110
40464111 Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity, within the requested window: equal to the requested `date` in single-day mode, and to the latest active day from `starting_date` (inclusive) to `ending_date` (exclusive) in date-range rollup mode — never a day earlier than the window start. On filtered requests (`filter[]`) only days matching the filter count: with `filter[]=rbac_group_id:{id}` it is the last day the user was active while a member of that group, consistent with the row's other metrics. On grouped (`group_by[]`) rows it is the latest day any member of the group was active (the requested `date` in single-day mode). Omitted from the response while last-activity reporting is not enabled for this organization.
from line 4290
42254290 "write_tool_count": 0
42264291 }
42274292 },
4293 "claude_tag_metrics": {
4294 "active_day_count": 0,
4295 "active_message_count": 0
4296 },
42284297 "last_activity_date": "2019-12-27",
42294298 "rbac_group_id": "rbac_group_id",
42304299 "rbac_group_name": "rbac_group_name"
from line 5219
51505219 "distinct_conversation_skill_used_count": 0
51515220 },
51525221 "sessions": {
5153 "distinct_session_skill_used_count": 0
5154 }
5155 },
5156 "product": "product",
5157 "rbac_group_id": "rbac_group_id",
5158 "rbac_group_name": "rbac_group_name",
5159 "user_id": "user_id"
5160 }
5161 ],
5162 "next_page": "next_page"
5163}
5164```
5165
5166## Analytics › Artifacts
5167
5168### Get Artifact Activity
5169
5170**GET** `/v1/organizations/analytics/artifacts`
5171
5172Get artifact-creation activity for a given day, broken out by MIME type.
5173
5174Returns the full (`artifact_type`, `is_shared`) cube for the organization;
5175`next_page` is null except for grouped queries, which paginate. The cube
5176can be broken out per product, per member, or per RBAC group via
5177`group_by[]`, and scoped via `filter[]`. Requires an API key with the
5178`read:analytics` scope.
5179
5180#### Query parameters
5181
5182- `date: string`
5183
5184 UTC date in YYYY-MM-DD format. The day to get artifact activity for. Data is typically available with a 1-day lag (varies by query; the error for a too-recent date names the latest available day) and may be revised by a few percent over the following days. No earlier than 2026-01-01.
5185
5186 format: date
5187
5188- `filter: optional array of string`
5189
5190 Filters as `dimension:value`, e.g. `filter[]=rbac_group_id:{id}`. Repeat the param for OR within a dimension and across dimensions for AND. Supported dimensions on this endpoint: `artifact_type`, `is_shared`, `product`, `rbac_group_id`, `user_id`. Value forms: `artifact_type` is a canonical artifact MIME type (e.g. `text/markdown`) or `other`; `is_shared` is `true` or `false`; `product` is `chat_cowork_unified`, `chat`, `claude_code`, or `cowork` (the surfaces that create artifacts); `rbac_group_id` takes the tagged id (`rbac_group_...`, as emitted in responses and by the spend-limits API) or a bare group UUID, and matches users who held the group at any point during each covered UTC day (time-of-usage attribution); `user_id` takes a tagged user id (`user_...`), as emitted in responses. An unsupported dimension returns 400. At most 100 entries. `chat_cowork_unified` is accepted as a `product` value only where Chat and Cowork unified is available.
5191
5192 maxItems: 100
5193
5194- `group_by: optional array of BetaAnalyticsArtifactGroupBy`
5195
5196 Dimensions to break results out by: `product`, `user_id` and/or `rbac_group_id`. The ungrouped artifact-type cube is finite and returned in full; grouped queries multiply the cube and paginate via `next_page`. `product` takes the values `chat_cowork_unified`, `chat`, `claude_code`, or `cowork` (the surfaces that create artifacts). `rbac_group_id` attributes a user to every group they held at any point during the requested UTC day, so grouped rows are not an exclusive partition. At most 100 entries.
5197
5198 maxItems: 100
5199
5200 - `"product"`
5201
5202 - `"rbac_group_id"`
5203
5204 - `"user_id"`
5205
5206- `limit: optional number`
5207
5208 Maximum rows to return (1-1000, default 100). The ungrouped artifact-type cube is finite and returned in full; `limit` is the page size only when `group_by[]` multiplies the cube.
5209
5210 minimum: 1, maximum: 1000
5211
5212- `page: optional string`
5213
5214 Opaque cursor from a previous response's `next_page` field. Only valid with `group_by[]` — the ungrouped cube is never paginated.
5215
5216#### Headers
5217
5218- `"anthropic-version": optional string`
5219
5220 The version of the Claude API you want to use.
5221
5222 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
5223
5224#### Returns
5225
5226- `data: array of BetaAnalyticsArtifactActivity`
5227
5228 - `artifact_type: string`
5229
5230 Canonical artifact MIME type (e.g. `text/markdown`, `application/vnd.ant.react`, `image/svg+xml`), or `other`. Claude Code and Cowork artifacts report as `text/html`.
5231
5232 - `artifacts_created_count: number`
5233
5234 Number of artifacts created in this bucket on the requested day
5235
5236 - `distinct_user_count: number`
5237
5238 Number of distinct users who created artifacts in this bucket on the requested day
5239
5240 - `is_shared: boolean`
5241
5242 Whether the artifacts in this bucket have ever been shared (a Claude Code / Cowork artifact is shared once anyone beyond its creator may open it: named members, the whole organization, or anyone with the link).
5243
5244 - `published_artifacts_created_count: number`
5245
5246 Number of those artifacts that have been published (for Claude Code / Cowork artifacts: open to anyone with the link); never exceeds `artifacts_created_count`
5247
5248 - `product: optional string or null`
5249
5250 Product that produced this row's activity: one of `chat`, `claude_code`, `cowork`, `office_agent`, or `chat_cowork_unified` (Chat and Cowork unified). These are the canonical Cost & Usage product names; an `office_agent` row's per-surface breakdown is in its `office_metrics`. On `/plugins` only `cowork`, `claude_code` and `chat_cowork_unified` occur (the only surfaces with plugin attribution); on `/artifacts` only `chat`, `claude_code`, `cowork` and `chat_cowork_unified` occur (the surfaces that create artifacts); `/apps/chat/projects` does not support the product dimension (a `product` entry in `group_by[]` or `filter[]` there is rejected). Present only when the request grouped by `product`.
5251
5252 - `rbac_group_id: optional string or null`
5253
5254 Tagged RBAC group identifier (`rbac_group_...`), matching the spend-limits API spelling. Present only when the request grouped by `rbac_group_id`.
5255
5256 - `rbac_group_name: optional string or null`
5257
5258 Resolved RBAC group display name, alongside `rbac_group_id` when name resolution is available. Null if the group has been deleted or its name could not be resolved; `rbac_group_id` remains the stable key.
5259
5260 - `user_id: optional string or null`
5261
5262 Tagged user identifier (e.g. `user_...`). Present only when the request grouped by `user_id`.
5263
5264- `next_page: string or null`
5265
5266 Cursor for the next page of a grouped query; always null for the ungrouped artifact-type cube, which is returned in full.
5267
5268#### Example
5269
5270```bash
5271curl https://api.anthropic.com/v1/organizations/analytics/artifacts \
5272 -H 'anthropic-version: 2026-10-21' \
5273 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
5274```
5275
5276##### Response (200)
5277
5278```json
5279{
5280 "data": [
5281 {
5282 "artifact_type": "artifact_type",
5283 "artifacts_created_count": 0,
5284 "distinct_user_count": 0,
5285 "is_shared": true,
5286 "published_artifacts_created_count": 0,
5287 "product": "product",
5288 "rbac_group_id": "rbac_group_id",
5289 "rbac_group_name": "rbac_group_name",
5290 "user_id": "user_id"
5291 }
5292 ],
5293 "next_page": "next_page"
5294}
5295```
5296
5297## Analytics › Usage
5298
5299### Get Token Usage By Dimension
5300
5301**GET** `/v1/organizations/analytics/usage`
5302
5303Get token usage across a date range, broken out by dimension.
5304
5305Returns one row per combination of the requested `group_by[]`
5306dimensions (and time bucket, when `time_bucket_width` is set) that has
5307usage in the range, ranked by the `order_by` metric or ordered by time
5308bucket; every combination is returned across pages. With no `group_by[]`
5309and no `time_bucket_width`, a single row aggregates the whole range.
5310Includes all usage, whether or not it is attributable to a se
5222 "distinct_session_skill_use
No line in this hunk matches that.