Claude Platform Docs

Analytics

Models
class AnalyticsArtifactActivity { artifactType; artifactsCreatedCount; distinctUserCount; /* 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.

enum AnalyticsArtifactGroupBy

A dimension to group artifact activity by.

PRODUCT("product")
RBAC_GROUP_ID("rbac_group_id")
USER_ID("user_id")
class AnalyticsChatCoworkUnifiedChatMetrics { connectorsUsedCount; distinctArtifactsCreatedCount; distinctConnectorsUsedCount; /* 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 activity recorded while members had Chat and Cowork unified turned on.

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

class AnalyticsChatCoworkUnifiedSessionsMetrics { actionCount; artifactsCreatedCount; connectorsUsedCount; /* 14 more */ }

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

class AnalyticsChatMetrics { connectorsUsedCount; distinctArtifactsCreatedCount; distinctConnectorsUsedCount; /* 9 more */ }

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

class AnalyticsClaudeCodeMetrics { coreMetrics; toolActions; }

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

class AnalyticsClaudeTagMetrics { activeDayCount; activeMessageCount; }

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

Optional<Long> activeDayCount

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.

Optional<Long> activeMessageCount

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 { chatMetrics; claudeCodeMetrics; connectorDisplayName; /* 14 more */ }

Per-connector activity data for a given day.

class AnalyticsConnectorChatCoworkUnifiedChatMetrics { distinctConversationConnectorUsedCount; }

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

Optional<Long> distinctConversationConnectorUsedCount

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.

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

Optional<Long> distinctConversationConnectorUsedCount

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.

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

Optional<Long> distinctSessionConnectorUsedCount

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 { distinctSessionConnectorUsedCount; }

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

Optional<Long> distinctSessionConnectorUsedCount

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 { distinctConversationConnectorUsedCount; }

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

Optional<Long> distinctConversationConnectorUsedCount

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 { distinctSessionConnectorUsedCount; }

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

Optional<Long> distinctSessionConnectorUsedCount

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 { distinctSessionConnectorUsedCount; }

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

Optional<Long> distinctSessionConnectorUsedCount

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.

enum AnalyticsConnectorGroupBy

A dimension to group connector activity by.

PRODUCT("product")
RBAC_GROUP_ID("rbac_group_id")
USER_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.

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

Optional<Long> distinctSessionConnectorUsedCount

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.

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

Optional<Long> distinctSessionConnectorUsedCount

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.

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

Optional<Long> distinctSessionConnectorUsedCount

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.

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

Optional<Long> distinctSessionConnectorUsedCount

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 AnalyticsConnectorOfficeProductMetrics { distinctSessionConnectorUsedCount; }

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

Optional<Long> distinctSessionConnectorUsedCount

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 { artifactsCreatedCount; commitCount; distinctSessionCount; /* 2 more */ }

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

long artifactsCreatedCount

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.

long commitCount

Number of commits made via Claude Code

Optional<Long> distinctSessionCount

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 added and removed via Claude Code.

long addedCount

Lines of code added

long removedCount

Lines of code removed

long pullRequestCount

Number of pull requests created via Claude Code

class AnalyticsCoworkMetrics { actionCount; artifactsCreatedCount; connectorsUsedCount; /* 14 more */ }

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

class AnalyticsDesignMetrics { distinctProjectsCreatedCount; distinctProjectsUsedCount; distinctSessionCount; messageCount; }

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

long distinctProjectsCreatedCount

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.

Optional<Long> distinctProjectsUsedCount

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.

Optional<Long> distinctSessionCount

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.

long messageCount

Number of messages sent in Claude Design sessions

class AnalyticsLinesOfCode { addedCount; removedCount; }

Lines of code added and removed via Claude Code.

long addedCount

Lines of code added

long removedCount

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 { connectorsUsedCount; distinctConnectorsUsedCount; distinctSessionCount; /* 3 more */ }

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

long connectorsUsedCount

Number of MCP connector invocations

Optional<Long> distinctConnectorsUsedCount

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.

Optional<Long> distinctSessionCount

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.

Optional<Long> distinctSkillsUsedCount

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.

long messageCount

Number of messages sent

long skillsUsedCount

Number of skill invocations

enum AnalyticsOrder

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.

ASC("asc")
DESC("desc")
class AnalyticsPluginActivity { claudeCodeMetrics; coworkMetrics; distinctUserCount; /* 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 { distinctSessionPluginUsedCount; }

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

Optional<Long> distinctSessionPluginUsedCount

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 { distinctSessionPluginUsedCount; }

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

Optional<Long> distinctSessionPluginUsedCount

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 { distinctSessionPluginUsedCount; }

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

Optional<Long> distinctSessionPluginUsedCount

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

enum AnalyticsPluginGroupBy

A dimension to group plugin activity by.

PRODUCT("product")
RBAC_GROUP_ID("rbac_group_id")
USER_ID("user_id")
class AnalyticsProjectActivity { createdAt; createdBy; distinctConversationCount; /* 7 more */ }

Per-project activity data for a given day.

enum AnalyticsProjectGroupBy

A dimension to group chat project activity by.

RBAC_GROUP_ID("rbac_group_id")
USER_ID("user_id")
class AnalyticsScienceMetrics { delegationCount; distinctSessionCount; messageCount; /* 2 more */ }

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

long delegationCount

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

Optional<Long> distinctSessionCount

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.

long messageCount

Number of messages sent in Claude Science sessions

long remoteComputeJobCount

Number of remote compute jobs launched from Claude Science sessions

long skillsUsedCount

Total number of skill invocations in Claude Science sessions

class AnalyticsSingleDayActivitySummary { assignedSeatCount; coworkDailyActiveUserCount; coworkMonthlyActiveUserCount; /* 32 more */ }

Per-day entry in the /summaries response.

class AnalyticsSkillActivity { attributedListPrice; chatMetrics; claudeCodeMetrics; /* 15 more */ }

Per-skill activity data for a given day.

class AnalyticsSkillChatCoworkUnifiedChatMetrics { distinctConversationSkillUsedCount; }

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

Optional<Long> distinctConversationSkillUsedCount

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.

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

Optional<Long> distinctConversationSkillUsedCount

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.

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

Optional<Long> distinctSessionSkillUsedCount

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 { distinctSessionSkillUsedCount; }

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

Optional<Long> distinctSessionSkillUsedCount

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 { distinctConversationSkillUsedCount; }

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

Optional<Long> distinctConversationSkillUsedCount

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 { distinctSessionSkillUsedCount; }

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

Optional<Long> distinctSessionSkillUsedCount

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 { distinctSessionSkillUsedCount; }

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

Optional<Long> distinctSessionSkillUsedCount

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.

enum AnalyticsSkillGroupBy

A dimension to group skill activity by.

PRODUCT("product")
RBAC_GROUP_ID("rbac_group_id")
USER_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 { distinctSessionSkillUsedCount; }

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

Optional<Long> distinctSessionSkillUsedCount

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 { acceptedCount; rejectedCount; }

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

long acceptedCount

Number of tool proposals accepted

long rejectedCount

Number of tool proposals rejected

class AnalyticsToolActions { editTool; multiEditTool; notebookEditTool; writeTool; }

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

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

long acceptedCount

Number of tool proposals accepted

long rejectedCount

Number of tool proposals rejected

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

long acceptedCount

Number of tool proposals accepted

long rejectedCount

Number of tool proposals rejected

AnalyticsToolActionCounts notebookEditTool

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

long acceptedCount

Number of tool proposals accepted

long rejectedCount

Number of tool proposals rejected

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

long acceptedCount

Number of tool proposals accepted

long rejectedCount

Number of tool proposals rejected

class AnalyticsUser { type = "user"; id; emailAddress; }

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

JsonValue type = "user"

Object type. Always user.

String id

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

String emailAddress

Email address of the user

class AnalyticsUserActivity { chatMetrics; claudeCodeMetrics; coworkMetrics; /* 11 more */ }

Per-user activity data for a given day.

enum AnalyticsUserGroupBy

A dimension to group user activity by.

RBAC_GROUP_ID("rbac_group_id")

AnalyticsSummaries

Get Activity Summaries
SummaryListPage organization().analytics().summaries().list(params, requestOptions = RequestOptions.none())
GET/v1/organizations/analytics/summaries

Get organization-wide activity summaries for a date range.

AnalyticsUsers

List User Activity
UserListPage organization().analytics().users().list(params = UserListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/analytics/users

Get per-user activity for a given day, with cursor-based pagination.

AnalyticsAppsChatProjects

Get Chat Project Usage
ProjectListPage organization().analytics().apps().chat().projects().list(params = ProjectListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/analytics/apps/chat/projects

Get per-project activity for a given day, with cursor-based pagination.

AnalyticsConnectors

Get Connector Usage
ConnectorListPage organization().analytics().connectors().list(params = ConnectorListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/analytics/connectors

Get per-connector usage for a given day, with cursor-based pagination.

AnalyticsPlugins

Get Plugin Usage
PluginListPage organization().analytics().plugins().list(params = PluginListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/analytics/plugins

Get per-plugin install + invocation usage for a given day, with pagination.

AnalyticsSkills

Get Skill Usage
SkillListPage organization().analytics().skills().list(params = SkillListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/analytics/skills

Get per-skill usage for a given day, with cursor-based pagination.

AnalyticsArtifacts

Get Artifact Activity
ArtifactListPage organization().analytics().artifacts().list(params, requestOptions = RequestOptions.none())
GET/v1/organizations/analytics/artifacts

Get artifact-creation activity for a given day, broken out by MIME type.