Analítica
Models
class AnalyticsArtifactActivity { $artifactType; $artifactsCreatedCount; $distinctUserCount; /* 6 more */ }
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.
Number of artifacts created in this bucket on the requested day
Number of distinct users who created artifacts in this bucket on the requested day
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).
Number of those artifacts that have been published (for Claude Code / Cowork artifacts: open to anyone with the link); never exceeds artifacts_created_count
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.
Tagged RBAC group identifier (rbac_group_...), matching the spend-limits API spelling. Present only when the request grouped by rbac_group_id.
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.
Tagged user identifier (e.g. user_...). Present only when the request grouped by user_id.
class AnalyticsChatCoworkUnifiedChatMetrics { $connectorsUsedCount; $distinctArtifactsCreatedCount; $distinctConnectorsUsedCount; /* 9 more */ }
class AnalyticsChatCoworkUnifiedMetrics { $chat; $sessions; }
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 */ }
class AnalyticsChatMetrics { $connectorsUsedCount; $distinctArtifactsCreatedCount; $distinctConnectorsUsedCount; /* 9 more */ }
class AnalyticsClaudeCodeMetrics { $coreMetrics; $toolActions; }
Core Claude Code activity metrics for a single user on a given day.
Per-tool accepted/rejected counts for Claude Code file modification tools.
class AnalyticsConnectorActivity { $chatMetrics; $claudeCodeMetrics; $connectorDisplayName; /* 14 more */ }
class AnalyticsConnectorChatCoworkUnifiedChatMetrics { $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 conversations recorded while members had Chat and Cowork unified turned on.
A connector's use in Cowork sessions recorded while members had Chat and Cowork unified turned on.
class AnalyticsConnectorChatCoworkUnifiedSessionsMetrics { $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; }
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; }
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; }
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.
class AnalyticsConnectorOfficeMetrics { $excel; $outlook; $powerpoint; $word; }
Office Agent activity metrics for a single connector on a given day within one Office product.
Office Agent activity metrics for a single connector on a given day within one Office product.
Office Agent activity metrics for a single connector on a given day within one Office product.
Office Agent activity metrics for a single connector on a given day within one Office product.
class AnalyticsConnectorOfficeProductMetrics { $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 */ }
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.
Number of commits made via Claude Code
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.
Number of pull requests created via Claude Code
class AnalyticsCoworkMetrics { $actionCount; $artifactsCreatedCount; $connectorsUsedCount; /* 14 more */ }
class AnalyticsDesignMetrics { $distinctProjectsCreatedCount; $distinctProjectsUsedCount; $distinctSessionCount; $messageCount; }
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.
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.
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.
Number of messages sent in Claude Design sessions
class AnalyticsLinesOfCode { $addedCount; $removedCount; }
Lines of code added
Lines of code removed
class AnalyticsOfficeMetrics { $excel; $outlook; $powerpoint; $word; }
Office Agent activity metrics for a single user on a given day within one Office product.
Office Agent activity metrics for a single user on a given day within one Office product.
Office Agent activity metrics for a single user on a given day within one Office product.
Office Agent activity metrics for a single user on a given day within one Office product.
class AnalyticsOfficeProductMetrics { $connectorsUsedCount; $distinctConnectorsUsedCount; $distinctSessionCount; /* 3 more */ }
Number of MCP connector invocations
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.
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.
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.
Number of messages sent
Number of skill invocations
enum AnalyticsOrder
class AnalyticsPluginActivity { $claudeCodeMetrics; $coworkMetrics; $distinctUserCount; /* 9 more */ }
class AnalyticsPluginChatCoworkUnifiedMetrics { $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; }
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; }
Number of distinct Cowork sessions in which the plugin was invoked. Null on aggregated rows where a distinct count cannot be computed.
class AnalyticsProjectActivity { $createdAt; $createdBy; $distinctConversationCount; /* 7 more */ }
Project creation timestamp in RFC 3339 format. Null if the project was deleted before attribution was recorded.
User who created the project. Null if the project was deleted before attribution was recorded, or if the creator's account no longer exists.
Number of distinct conversations in the project. Null on aggregated rows where a distinct count cannot be computed.
Number of distinct users who used the project on the requested day, or, in date-range mode, over the requested window — recomputed as an exact distinct count over the window's per-member daily rows, never a sum of per-day values.
Number of messages sent in the project on the requested day
Tagged project identifier (e.g. claude_proj_...)
Name of the project
Tagged RBAC group identifier (rbac_group_...), matching the spend-limits API spelling. Present only when the request grouped by rbac_group_id.
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.
Tagged user identifier (e.g. user_...). Present only when the request grouped by user_id.
class AnalyticsScienceMetrics { $delegationCount; $distinctSessionCount; $messageCount; /* 2 more */ }
Number of delegations (handoffs to a specialized agent) in Claude Science sessions
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.
Number of messages sent in Claude Science sessions
Number of remote compute jobs launched from Claude Science sessions
Total number of skill invocations in Claude Science sessions
class AnalyticsSingleDayActivitySummary { $assignedSeatCount; $coworkDailyActiveUserCount; $coworkMonthlyActiveUserCount; /* 29 more */ }
class AnalyticsSkillActivity { $attributedListPrice; $chatMetrics; $claudeCodeMetrics; /* 15 more */ }
class AnalyticsSkillChatCoworkUnifiedChatMetrics { $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 conversations recorded while members had Chat and Cowork unified turned on.
A skill's use in Cowork sessions recorded while members had Chat and Cowork unified turned on.
class AnalyticsSkillChatCoworkUnifiedSessionsMetrics { $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; }
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; }
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; }
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.
class AnalyticsSkillOfficeMetrics { $excel; $outlook; $powerpoint; $word; }
Office Agent activity metrics for a single skill on a given day within one Office product.
Office Agent activity metrics for a single skill on a given day within one Office product.
Office Agent activity metrics for a single skill on a given day within one Office product.
Office Agent activity metrics for a single skill on a given day within one Office product.
class AnalyticsSkillOfficeProductMetrics { $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; }
Number of tool proposals accepted
Number of tool proposals rejected
class AnalyticsToolActions { $editTool; $multiEditTool; $notebookEditTool; $writeTool; }
Accepted/rejected counts for a single Claude Code tool type.
Accepted/rejected counts for a single Claude Code tool type.
Accepted/rejected counts for a single Claude Code tool type.
Accepted/rejected counts for a single Claude Code tool type.
class AnalyticsUser { $type = 'user'; $id; $emailAddress; }
Object type. Always user.
Tagged user identifier (e.g. user_...)
Email address of the user
class AnalyticsUserActivity { $chatMetrics; $claudeCodeMetrics; $coworkMetrics; /* 10 more */ }
AnalíticaResúmenes
Obtener resúmenes de actividad
$client->organization->analytics->summaries->list(\Datetime startingDate, ?\Datetime endingDate, ?list<string> filter, ?int limit, ?string page): PageCursor<AnalyticsSingleDayActivitySummary>Obtén resúmenes de actividad de toda la organización para un rango de fechas.
AnalíticaUsuarios
Listar actividad de usuarios
$client->organization->analytics->users->list(?\Datetime date, ?\Datetime endingDate, ?list<string> filter, ?list<AnalyticsUserGroupBy> groupBy, ?int limit, ?AnalyticsOrder order, ?string orderBy, ?string page, ?\Datetime startingDate): PageCursor<AnalyticsUserActivity>Obtiene la actividad por usuario de un día determinado, con paginación basada en cursor.
AnalíticaAplicacionesChatProyectos
Obtener uso de proyectos de chat
$client->organization->analytics->apps->chat->projects->list(?\Datetime date, ?\Datetime endingDate, ?list<string> filter, ?list<AnalyticsProjectGroupBy> groupBy, ?int limit, ?AnalyticsOrder order, ?string orderBy, ?string page, ?\Datetime startingDate): PageCursor<AnalyticsProjectActivity>Obtiene la actividad por proyecto para un día determinado, con paginación basada en cursor.
AnalíticaConectores
Obtener uso de conectores
$client->organization->analytics->connectors->list(?\Datetime date, ?\Datetime endingDate, ?list<string> filter, ?list<AnalyticsConnectorGroupBy> groupBy, ?int limit, ?AnalyticsOrder order, ?string orderBy, ?string page, ?\Datetime startingDate): PageCursor<AnalyticsConnectorActivity>Obtiene el uso por conector de un día determinado, con paginación basada en cursor.
AnalíticaPlugins
Obtener uso de plugins
$client->organization->analytics->plugins->list(?\Datetime date, ?\Datetime endingDate, ?list<string> filter, ?list<AnalyticsPluginGroupBy> groupBy, ?int limit, ?AnalyticsOrder order, ?string orderBy, ?string page, ?\Datetime startingDate): PageCursor<AnalyticsPluginActivity>Obtiene el uso de instalación e invocación por plugin de un día determinado, con paginación.
AnalíticaHabilidades
Obtener uso de skills
$client->organization->analytics->skills->list(?\Datetime date, ?\Datetime endingDate, ?list<string> filter, ?list<AnalyticsSkillGroupBy> groupBy, ?int limit, ?AnalyticsOrder order, ?string orderBy, ?string page, ?\Datetime startingDate): PageCursor<AnalyticsSkillActivity>Obtiene el uso por skill de un día determinado, con paginación basada en cursor.
AnalíticaArtifacts
Obtener actividad de artifacts
$client->organization->analytics->artifacts->list(\Datetime date, ?list<string> filter, ?list<AnalyticsArtifactGroupBy> groupBy, ?int limit, ?string page): PageCursor<AnalyticsArtifactActivity>Obtiene la actividad de creación de artifacts de un día determinado, desglosada por tipo MIME.