Claude Platform Docs

分析

Models
class AnalyticsArtifactActivity { artifact_type, artifacts_created_count, distinct_user_count, 6 more }

Artifact-creation activity for one (artifact_type, is_shared) bucket on a given day.

Artifacts form a small finite cube — the canonical MIME type (8 values incl. other) crossed with shared-vs-private — so the response is the full set of non-empty buckets, not a ranked/paginated list. Claude Code and Cowork artifacts report under text/html and are counted from 2026-08-17 onward; earlier days contain claude.ai chat artifacts only. With group_by[]=product / user_id / rbac_group_id each row is further split by the flat group keys and counts are scoped to that cut.

type AnalyticsArtifactGroupBy = :product | :rbac_group_id | :user_id

A dimension to group artifact activity by.

One of the following:
:product
:rbac_group_id
:user_id
class AnalyticsChatCoworkUnifiedChatMetrics { connectors_used_count, distinct_artifacts_created_count, distinct_connectors_used_count, 9 more }

Chat activity recorded while members had Chat and Cowork unified turned on.

class AnalyticsChatCoworkUnifiedMetrics { chat, sessions }

Activity in Chat and Cowork unified for one user on one day: chat holds chat activity and sessions holds Cowork session activity.

chat: AnalyticsChatCoworkUnifiedChatMetrics { connectors_used_count, distinct_artifacts_created_count, distinct_connectors_used_count, 9 more }

Chat activity recorded while members had Chat and Cowork unified turned on.

sessions: AnalyticsChatCoworkUnifiedSessionsMetrics { action_count, artifacts_created_count, connectors_used_count, 14 more }

Cowork session activity recorded while members had Chat and Cowork unified turned on.

class AnalyticsChatCoworkUnifiedSessionsMetrics { action_count, artifacts_created_count, connectors_used_count, 14 more }

Cowork session activity recorded while members had Chat and Cowork unified turned on.

class AnalyticsChatMetrics { connectors_used_count, distinct_artifacts_created_count, distinct_connectors_used_count, 9 more }

Claude.ai activity metrics for a single user on a given day.

class AnalyticsClaudeCodeMetrics { core_metrics, tool_actions }

Claude Code activity metrics for a single user on a given day.

class AnalyticsClaudeTagMetrics { active_day_count, active_message_count }

Claude Tag activity metrics for a single linked user on a given day.

active_day_count: Integer | nil

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.

active_message_count: Integer | nil

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.

class AnalyticsConnectorActivity { chat_metrics, claude_code_metrics, connector_display_name, 14 more }

Per-connector activity data for a given day.

class AnalyticsConnectorChatCoworkUnifiedChatMetrics { distinct_conversation_connector_used_count }

A connector's use in chat conversations recorded while members had Chat and Cowork unified turned on.

distinct_conversation_connector_used_count: Integer | nil

Same measure as chat_metrics.distinct_conversation_connector_used_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsConnectorChatCoworkUnifiedMetrics { chat, sessions }

A connector's use in Chat and Cowork unified on one day: chat holds its use in chat conversations and sessions its use in Cowork sessions.

chat: AnalyticsConnectorChatCoworkUnifiedChatMetrics { distinct_conversation_connector_used_count }

A connector's use in chat conversations recorded while members had Chat and Cowork unified turned on.

distinct_conversation_connector_used_count: Integer | nil

Same measure as chat_metrics.distinct_conversation_connector_used_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

sessions: AnalyticsConnectorChatCoworkUnifiedSessionsMetrics { distinct_session_connector_used_count }

A connector's use in Cowork sessions recorded while members had Chat and Cowork unified turned on.

distinct_session_connector_used_count: Integer | nil

Same measure as cowork_metrics.distinct_session_connector_used_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsConnectorChatCoworkUnifiedSessionsMetrics { distinct_session_connector_used_count }

A connector's use in Cowork sessions recorded while members had Chat and Cowork unified turned on.

distinct_session_connector_used_count: Integer | nil

Same measure as cowork_metrics.distinct_session_connector_used_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsConnectorChatMetrics { distinct_conversation_connector_used_count }

Claude.ai activity metrics for a single connector on a given day.

distinct_conversation_connector_used_count: Integer | nil

Number of distinct conversations in which the connector was used. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsConnectorClaudeCodeMetrics { distinct_session_connector_used_count }

Claude Code activity metrics for a single connector on a given day.

distinct_session_connector_used_count: Integer | nil

Number of distinct Claude Code sessions in which the connector was used. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsConnectorCoworkMetrics { distinct_session_connector_used_count }

Cowork activity metrics for a single connector on a given day.

distinct_session_connector_used_count: Integer | nil

Number of distinct Cowork sessions in which the connector was used. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

type AnalyticsConnectorGroupBy = :product | :rbac_group_id | :user_id

A dimension to group connector activity by.

One of the following:
:product
:rbac_group_id
:user_id
class AnalyticsConnectorOfficeMetrics { excel, outlook, powerpoint, word }

Office Agent activity metrics for a single connector on a given day, broken out by Office product.

class AnalyticsConnectorOfficeProductMetrics { distinct_session_connector_used_count }

Office Agent activity metrics for a single connector on a given day within one Office product.

distinct_session_connector_used_count: Integer | nil

Number of distinct Office Agent sessions in which the connector was used. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsCoreCodeMetrics { artifacts_created_count, commit_count, distinct_session_count, 2 more }

Core Claude Code activity metrics for a single user on a given day.

artifacts_created_count: Integer

Number of artifacts created in Claude Code sessions: an artifact counts once, on the day a session first saves it. Counted from 2026-08-17; 0 on earlier days. Exact in date-range mode: a creation belongs to exactly one day, so the per-day counts never overlap and their sum over the window is the exact count of distinct creations in it.

commit_count: Integer

Number of commits made via Claude Code

distinct_session_count: Integer | nil

Number of distinct Claude Code sessions. On aggregated rows and in date-range mode: summed per-day distinct counts. A session essentially never spans a UTC day, so the sum is in practice the true distinct count.

lines_of_code: AnalyticsLinesOfCode { added_count, removed_count }

Lines of code added and removed via Claude Code.

added_count: Integer

Lines of code added

removed_count: Integer

Lines of code removed

pull_request_count: Integer

Number of pull requests created via Claude Code

class AnalyticsCoworkMetrics { action_count, artifacts_created_count, connectors_used_count, 14 more }

Cowork activity metrics for a single user on a given day.

class AnalyticsDesignMetrics { distinct_projects_created_count, distinct_projects_used_count, distinct_session_count, message_count }

Claude Design activity metrics for a single user on a given day.

distinct_projects_created_count: Integer

Number of distinct Claude Design projects created. Exact in date-range mode: a creation belongs to exactly one day, so the per-day counts never overlap and their sum over the window is the exact count of distinct creations in it.

distinct_projects_used_count: Integer | nil

Number of distinct Claude Design projects the user worked in. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

distinct_session_count: Integer | nil

Number of distinct Claude Design sessions. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

message_count: Integer

Number of messages sent in Claude Design sessions

class AnalyticsLinesOfCode { added_count, removed_count }

Lines of code added and removed via Claude Code.

added_count: Integer

Lines of code added

removed_count: Integer

Lines of code removed

class AnalyticsOfficeMetrics { excel, outlook, powerpoint, word }

Office Agent activity metrics for a single user on a given day, broken out by Office product.

class AnalyticsOfficeProductMetrics { connectors_used_count, distinct_connectors_used_count, distinct_session_count, 3 more }

Office Agent activity metrics for a single user on a given day within one Office product.

connectors_used_count: Integer

Number of MCP connector invocations

distinct_connectors_used_count: Integer | nil

Number of distinct MCP connectors used. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

distinct_session_count: Integer | nil

Number of distinct Office Agent sessions. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

distinct_skills_used_count: Integer | nil

Number of distinct skills used. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

message_count: Integer

Number of messages sent

skills_used_count: Integer

Number of skill invocations

type AnalyticsOrder = :asc | :desc

Sort direction: asc or desc. Defaults to asc for the endpoint's sort column and to desc when order_by names a metric (a top-N ranking). Applies to order_by, or to the endpoint's default sort field when order_by is omitted.

One of the following:
:asc
:desc
class AnalyticsPluginActivity { claude_code_metrics, cowork_metrics, distinct_user_count, 9 more }

Per-plugin install + invocation activity for a given day.

With group_by[]=user_id / rbac_group_id / product (cowork, claude_code and chat_cowork_unified only on this endpoint) each row is one (plugin, user), (plugin, group), or (plugin, product) cut: the flat user_id / rbac_group_id / product keys carry the cut and the counts are scoped to it.

class AnalyticsPluginChatCoworkUnifiedMetrics { distinct_session_plugin_used_count }

A plugin's use in Cowork sessions recorded while members had Chat and Cowork unified turned on.

distinct_session_plugin_used_count: Integer | nil

Same measure as cowork_metrics.distinct_session_plugin_used_count, for activity recorded while members had Chat and Cowork unified turned on. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsPluginClaudeCodeMetrics { distinct_session_plugin_used_count }

Claude Code activity metrics for a single plugin on a given day.

distinct_session_plugin_used_count: Integer | nil

Number of distinct Claude Code sessions in which the plugin was invoked. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsPluginCoworkMetrics { distinct_session_plugin_used_count }

Cowork activity metrics for a single plugin on a given day.

distinct_session_plugin_used_count: Integer | nil

Number of distinct Cowork sessions in which the plugin was invoked. Null on aggregated rows where a distinct count cannot be computed.

type AnalyticsPluginGroupBy = :product | :rbac_group_id | :user_id

A dimension to group plugin activity by.

One of the following:
:product
:rbac_group_id
:user_id
class AnalyticsProjectActivity { created_at, created_by, distinct_conversation_count, 7 more }

Per-project activity data for a given day.

type AnalyticsProjectGroupBy = :rbac_group_id | :user_id

A dimension to group chat project activity by.

One of the following:
:rbac_group_id
:user_id
class AnalyticsScienceMetrics { delegation_count, distinct_session_count, message_count, 2 more }

Claude Science activity metrics for a single user on a given day.

delegation_count: Integer

Number of delegations (handoffs to a specialized agent) in Claude Science sessions

distinct_session_count: Integer | nil

Number of distinct Claude Science sessions. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

message_count: Integer

Number of messages sent in Claude Science sessions

remote_compute_job_count: Integer

Number of remote compute jobs launched from Claude Science sessions

skills_used_count: Integer

Total number of skill invocations in Claude Science sessions

class AnalyticsSingleDayActivitySummary { assigned_seat_count, cowork_daily_active_user_count, cowork_monthly_active_user_count, 32 more }

Per-day entry in the /summaries response.

class AnalyticsSkillActivity { attributed_list_price, chat_metrics, claude_code_metrics, 15 more }

Per-skill activity data for a given day.

class AnalyticsSkillChatCoworkUnifiedChatMetrics { distinct_conversation_skill_used_count }

A skill's use in chat conversations recorded while members had Chat and Cowork unified turned on.

distinct_conversation_skill_used_count: Integer | nil

Same measure as chat_metrics.distinct_conversation_skill_used_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsSkillChatCoworkUnifiedMetrics { chat, sessions }

A skill's use in Chat and Cowork unified on one day: chat holds its use in chat conversations and sessions its use in Cowork sessions.

chat: AnalyticsSkillChatCoworkUnifiedChatMetrics { distinct_conversation_skill_used_count }

A skill's use in chat conversations recorded while members had Chat and Cowork unified turned on.

distinct_conversation_skill_used_count: Integer | nil

Same measure as chat_metrics.distinct_conversation_skill_used_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

sessions: AnalyticsSkillChatCoworkUnifiedSessionsMetrics { distinct_session_skill_used_count }

A skill's use in Cowork sessions recorded while members had Chat and Cowork unified turned on.

distinct_session_skill_used_count: Integer | nil

Same measure as cowork_metrics.distinct_session_skill_used_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsSkillChatCoworkUnifiedSessionsMetrics { distinct_session_skill_used_count }

A skill's use in Cowork sessions recorded while members had Chat and Cowork unified turned on.

distinct_session_skill_used_count: Integer | nil

Same measure as cowork_metrics.distinct_session_skill_used_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsSkillChatMetrics { distinct_conversation_skill_used_count }

Claude.ai activity metrics for a single skill on a given day.

distinct_conversation_skill_used_count: Integer | nil

Number of distinct conversations in which the skill was used. A skill counts as used only when it is explicitly activated — the model (or the user, via the skill's slash command) invokes it, reading its instructions into context as part of that activation. Skills that are merely installed or listed as available, or whose content reaches the context without an activation (preloaded, hook-injected, or read as a plain file), are not counted. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsSkillClaudeCodeMetrics { distinct_session_skill_used_count }

Claude Code activity metrics for a single skill on a given day.

distinct_session_skill_used_count: Integer | nil

Number of distinct Claude Code sessions in which the skill was used. A skill counts as used only when it is explicitly activated — the model (or the user, via the skill's slash command) invokes it, reading its instructions into context as part of that activation. Skills that are merely installed or listed as available, or whose content reaches the context without an activation (preloaded, hook-injected, or read as a plain file), are not counted. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsSkillCoworkMetrics { distinct_session_skill_used_count }

Cowork activity metrics for a single skill on a given day.

distinct_session_skill_used_count: Integer | nil

Number of distinct Cowork sessions in which the skill was used. A skill counts as used only when it is explicitly activated — the model (or the user, via the skill's slash command) invokes it, reading its instructions into context as part of that activation. Skills that are merely installed or listed as available, or whose content reaches the context without an activation (preloaded, hook-injected, or read as a plain file), are not counted. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

type AnalyticsSkillGroupBy = :product | :rbac_group_id | :user_id

A dimension to group skill activity by.

One of the following:
:product
:rbac_group_id
:user_id
class AnalyticsSkillOfficeMetrics { excel, outlook, powerpoint, word }

Office Agent activity metrics for a single skill on a given day, broken out by Office product.

class AnalyticsSkillOfficeProductMetrics { distinct_session_skill_used_count }

Office Agent activity metrics for a single skill on a given day within one Office product.

distinct_session_skill_used_count: Integer | nil

Number of distinct Office Agent sessions in which the skill was used. A skill counts as used only when it is explicitly activated — the model (or the user, via the skill's slash command) invokes it, reading its instructions into context as part of that activation. Skills that are merely installed or listed as available, or whose content reaches the context without an activation (preloaded, hook-injected, or read as a plain file), are not counted. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

class AnalyticsToolActionCounts { accepted_count, rejected_count }

Accepted/rejected counts for a single Claude Code tool type.

accepted_count: Integer

Number of tool proposals accepted

rejected_count: Integer

Number of tool proposals rejected

class AnalyticsToolActions { edit_tool, multi_edit_tool, notebook_edit_tool, write_tool }

Per-tool accepted/rejected counts for Claude Code file modification tools.

class AnalyticsUser { type: :user, id, email_address }

A user in the organization, identified by tagged id and email address.

type: :user

Object type. Always user.

id: String

Tagged user identifier (e.g. user_...)

email_address: String

Email address of the user

class AnalyticsUserActivity { chat_metrics, claude_code_metrics, cowork_metrics, 11 more }

Per-user activity data for a given day.

type AnalyticsUserGroupBy = :rbac_group_id

A dimension to group user activity by.

分析摘要

获取活动摘要
organization.analytics.summaries.list(**kwargs) -> PageCursor<AnalyticsSingleDayActivitySummary>
GET/v1/organizations/analytics/summaries

获取某个日期范围内的组织级活动摘要。

分析用户

列出用户活动
organization.analytics.users.list(**kwargs) -> PageCursor<AnalyticsUserActivity>
GET/v1/organizations/analytics/users

获取给定日期的每用户活动,支持基于游标的分页。

分析应用聊天项目

获取聊天项目用量
organization.analytics.apps.chat.projects.list(**kwargs) -> PageCursor<AnalyticsProjectActivity>
GET/v1/organizations/analytics/apps/chat/projects

获取指定日期的每项目活动,支持基于游标的分页。

分析连接器

获取连接器使用情况
organization.analytics.connectors.list(**kwargs) -> PageCursor<AnalyticsConnectorActivity>
GET/v1/organizations/analytics/connectors

获取给定日期的每连接器使用情况,支持基于游标的分页。

分析插件

获取插件使用情况
organization.analytics.plugins.list(**kwargs) -> PageCursor<AnalyticsPluginActivity>
GET/v1/organizations/analytics/plugins

获取给定日期的每插件安装 + 调用使用情况,支持分页。

分析技能

获取技能使用情况
organization.analytics.skills.list(**kwargs) -> PageCursor<AnalyticsSkillActivity>
GET/v1/organizations/analytics/skills

获取给定日期的每技能使用情况,支持基于游标的分页。

分析Artifacts

获取 Artifact 活动
organization.analytics.artifacts.list(**kwargs) -> PageCursor<AnalyticsArtifactActivity>
GET/v1/organizations/analytics/artifacts

获取给定日期的 Artifact 创建活动,按 MIME 类型细分。