Claude Platform Docs

Analitik

Models
One of the following:
One of the following:
"api_actor"
"federated_actor"
"service_account_actor"
"user_actor"
class AnalyticsAPIActor { $type = 'api_actor'; $apiKeyID; }
"api_actor" type
string apiKeyID

Tagged API key ID.

class AnalyticsArtifactActivity { $artifactType; $artifactsCreatedCount; $distinctUserCount; /* 6 more */ }
string artifactType

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.

int artifactsCreatedCount

Number of artifacts created in this bucket on the requested day

int distinctUserCount

Number of distinct users who created artifacts in this bucket on the requested day

bool isShared

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).

int publishedArtifactsCreatedCount

Number of those artifacts that have been published (for Claude Code / Cowork artifacts: open to anyone with the link); never exceeds artifacts_created_count

?string product

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.

?string rbacGroupID

Tagged RBAC group identifier (rbac_group_...), matching the spend-limits API spelling. Present only when the request grouped by rbac_group_id.

?string rbacGroupName

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.

?string userID

Tagged user identifier (e.g. user_...). Present only when the request grouped by user_id.

One of the following:
"product"
"rbac_group_id"
"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.

AnalyticsToolActions toolActions

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

One of the following:
"dm"
"engaged"
"monitoring"
"proactive"
"scheduled"
class AnalyticsConnectorActivity { $chatMetrics; $claudeCodeMetrics; $connectorDisplayName; /* 14 more */ }
class AnalyticsConnectorChatCoworkUnifiedChatMetrics { $distinctConversationConnectorUsedCount; }
?int 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; }
?int 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; }
?int 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; }
?int 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; }
?int 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.

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 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; }
?int 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.

One of the following:
"0-200k"
"200k-1M"
class AnalyticsCoreCodeMetrics { $artifactsCreatedCount; $commitCount; $distinctSessionCount; /* 2 more */ }
int 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.

int commitCount

Number of commits made via Claude Code

?int 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.

AnalyticsLinesOfCode linesOfCode

Lines of code added and removed via Claude Code.

int pullRequestCount

Number of pull requests created via Claude Code

class AnalyticsCostBucketedResult { $amount; $claudeTagCategory; $claudeTagUserID; /* 12 more */ }
class AnalyticsCostReportTimeBucket { $endingAt; $results; $startingAt; }
\Datetime endingAt

End of the time bucket (exclusive) in RFC 3339 format.

Rows for this time bucket. Empty when the bucket has no data; otherwise a single combined row when group_by[] is omitted, or one row per group (subject to the per-bucket group cap described on the group_by[] parameter).

\Datetime startingAt

Start of the time bucket (inclusive) in RFC 3339 format.

One of the following:
"code_execution"
"tokens"
class AnalyticsCostUsersItem { $actor; $amount; $claudeTagCategory; /* 15 more */ }
class AnalyticsCoworkMetrics { $actionCount; $artifactsCreatedCount; $connectorsUsedCount; /* 14 more */ }
class AnalyticsDesignMetrics { $distinctProjectsCreatedCount; $distinctProjectsUsedCount; $distinctSessionCount; $messageCount; }
int 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.

?int 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.

?int 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.

int messageCount

Number of messages sent in Claude Design sessions

class AnalyticsFederatedActor { $type = 'federated_actor'; $provider; $subject; }
"federated_actor" type

The trusted provider that asserted the caller's identity.

?string subject

The provider's identifier for the caller: on aws, the IAM principal ARN (one role is one actor across its sessions); on gcp, the caller's IAM principal identifier as Google Cloud reports it, such as serviceAccount:<email>, user:<email>, or a principal://... URI.

class AnalyticsFederatedActorAWSProvider { $type = 'aws'; $accountID; $signedPrincipal; }
"aws" type
string accountID

The AWS account the organization is bound to.

string signedPrincipal

The AWS-signed ARN of the IAM principal that made the requests.

class AnalyticsFederatedActorAzureProvider { $type = 'azure'; $subscriptionID; }
"azure" type
string subscriptionID

The Azure subscription the organization is bound to.

class AnalyticsFederatedActorGCPProvider { $type = 'gcp'; $projectNumber; }
"gcp" type
string projectNumber

The Google Cloud project the organization is bound to.

class AnalyticsFederatedActorOIDCProvider { $type = 'oidc'; $issuer; }
"oidc" type
?string issuer

The federation issuer's URL.

One of the following:
One of the following:
"code_execution"
"session_usage"
"tokens"
One of the following:
"global"
"not_available"
"us"
class AnalyticsLinesOfCode { $addedCount; $removedCount; }
int addedCount

Lines of code added

int removedCount

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 */ }
int connectorsUsedCount

Number of MCP connector invocations

?int 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.

?int 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.

?int 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.

int messageCount

Number of messages sent

int skillsUsedCount

Number of skill invocations

One of the following:
"asc"
"desc"
class AnalyticsPluginActivity { $claudeCodeMetrics; $coworkMetrics; $distinctUserCount; /* 9 more */ }
class AnalyticsPluginChatCoworkUnifiedMetrics { $distinctSessionPluginUsedCount; }
?int 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; }
?int 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; }
?int distinctSessionPluginUsedCount

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

One of the following:
"product"
"rbac_group_id"
"user_id"
One of the following:
"chat"
"chat_cowork_unified"
"claude-tag"
"claude_code"
"claude_design"
"claude_in_chrome"
"cowork"
"office_agent"
class AnalyticsProjectActivity { $createdAt; $createdBy; $distinctConversationCount; /* 7 more */ }
?\Datetime createdAt

Project creation timestamp in RFC 3339 format. Null if the project was deleted before attribution was recorded.

?AnalyticsUser createdBy

User who created the project. Null if the project was deleted before attribution was recorded, or if the creator's account no longer exists.

?int distinctConversationCount

Number of distinct conversations in the project. Null on aggregated rows where a distinct count cannot be computed.

int distinctUserCount

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.

int messageCount

Number of messages sent in the project on the requested day

string projectID

Tagged project identifier (e.g. claude_proj_...)

string projectName

Name of the project

?string rbacGroupID

Tagged RBAC group identifier (rbac_group_...), matching the spend-limits API spelling. Present only when the request grouped by rbac_group_id.

?string rbacGroupName

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.

?string userID

Tagged user identifier (e.g. user_...). Present only when the request grouped by user_id.

One of the following:
"rbac_group_id"
"user_id"
class AnalyticsReportUserActor { $type = 'user_actor'; $deleted; $emailAddress; /* 2 more */ }
"user_actor" type

Actor type. Always "user_actor".

bool deleted

True when the account has been deleted, or when the user is no longer a member of the organization or its associated organizations (for example, their membership was removed or they were deprovisioned via your identity provider). email_address stays populated for removed users and is null when the account has been deleted. name follows the rules described on that field. The user_id is still populated for reconciliation.

?string emailAddress

The user's current email address, including for users who are no longer members of the organization. Null when the account has been deleted and for system-minted service accounts.

?string name

The user's current full name. Null when the user has not set one. "Deleted User" when the account has been deleted, or when the user is no longer a member and the organization hides removed users' names.

string userID

Tagged user ID.

class AnalyticsScienceMetrics { $delegationCount; $distinctSessionCount; $messageCount; /* 2 more */ }
int delegationCount

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

?int 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.

int messageCount

Number of messages sent in Claude Science sessions

int remoteComputeJobCount

Number of remote compute jobs launched from Claude Science sessions

int skillsUsedCount

Total number of skill invocations in Claude Science sessions

class AnalyticsServerToolUse { $webSearchRequests; }
int webSearchRequests

The number of web search requests made.

class AnalyticsServiceAccountActor { $type = 'service_account_actor'; $serviceAccountID; }
"service_account_actor" type
string serviceAccountID

Tagged service account ID.

One of the following:
"batch"
"flex"
"flex_discount"
"priority"
"priority_on_demand"
"standard"
class AnalyticsSingleDayActivitySummary { $assignedSeatCount; $coworkDailyActiveUserCount; $coworkMonthlyActiveUserCount; /* 29 more */ }
class AnalyticsSkillActivity { $attributedListPrice; $chatMetrics; $claudeCodeMetrics; /* 15 more */ }
class AnalyticsSkillChatCoworkUnifiedChatMetrics { $distinctConversationSkillUsedCount; }
?int 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; }
?int 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; }
?int 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; }
?int 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; }
?int 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.

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 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; }
?int 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.

One of the following:
"fast"
"standard"
One of the following:
"1d"
"1h"
"1m"
One of the following:
"cache_creation.ephemeral_1h_input_tokens"
"cache_creation.ephemeral_5m_input_tokens"
"cache_read_input_tokens"
"output_tokens"
"uncached_input_tokens"
class AnalyticsToolActionCounts { $acceptedCount; $rejectedCount; }
int acceptedCount

Number of tool proposals accepted

int rejectedCount

Number of tool proposals rejected

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

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

AnalyticsToolActionCounts multiEditTool

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

AnalyticsToolActionCounts notebookEditTool

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

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

class AnalyticsUsageBucketedResult { $cacheCreation; $cacheReadInputTokens; $claudeTagCategory; /* 12 more */ }
One of the following:
"global"
"us"
One of the following:
"chat"
"chat_cowork_unified"
"claude_code"
"claude_console"
"claude_design"
"claude_in_chrome"
"claude_tag"
"cowork"
"managed_agents_api"
"message_batches_api"
"messages_api"
"office_agent"
One of the following:
"asc"
"desc"
class AnalyticsUsageReportTimeBucket { $endingAt; $results; $startingAt; }
\Datetime endingAt

End of the time bucket (exclusive) in RFC 3339 format.

Rows for this time bucket. Empty when the bucket has no data; otherwise a single combined row when group_by[] is omitted, or one row per group (subject to the per-bucket group cap described on the group_by[] parameter).

\Datetime startingAt

Start of the time bucket (inclusive) in RFC 3339 format.

class AnalyticsUsageUsersItem { $actor; $cacheCreation; $cacheReadInputTokens; /* 16 more */ }
class AnalyticsUser { $type = 'user'; $id; $emailAddress; }
"user" type

Object type. Always user.

string id

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

string emailAddress

Email address of the user

class AnalyticsUserActivity { $chatMetrics; $claudeCodeMetrics; $coworkMetrics; /* 10 more */ }
class AnalyticsUserActor { $type = 'user_actor'; $deleted; $emailAddress; /* 2 more */ }
"user_actor" type

Actor type. Always "user_actor".

bool deleted

True when the account has been deleted, or when the user is no longer a member of the organization or its associated organizations (for example, their membership was removed or they were deprovisioned via your identity provider). email_address stays populated for removed users and is null when the account has been deleted. name follows the rules described on that field. The user_id is still populated for reconciliation.

?string emailAddress

The user's email address, including for users who are no longer members of the organization or its associated organizations. Null when the account has been deleted (check deleted) and for system-minted service accounts, which have no person's mailbox behind them (check name).

?string name

The user's full name. Null when the user has not set a name. Returns "Deleted User" when the account itself has been deleted, or when the user is no longer a member of the organization or its associated organizations and the organization has chosen to hide the names of removed users. Otherwise, the name stays populated for removed users. Rows for system-minted service accounts render the service name (for example, "Claude Security") or null.

string userID

Tagged user ID.

AnalitikRingkasan

Mendapatkan Ringkasan Aktivitas
$client->beta->organization->analytics->summaries->list(\Datetime startingDate, ?\Datetime endingDate, ?list<string> filter, ?int limit, ?string page): PageCursor<AnalyticsSingleDayActivitySummary>
GET/v1/organizations/analytics/summaries

Mendapatkan ringkasan aktivitas tingkat organisasi untuk rentang tanggal tertentu.

AnalitikPengguna

Daftar Aktivitas Pengguna
$client->beta->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>
GET/v1/organizations/analytics/users

Dapatkan aktivitas per pengguna untuk hari tertentu, dengan paginasi berbasis kursor.

AnalitikAplikasiChatProyek

Mendapatkan Penggunaan Proyek Chat
$client->beta->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>
GET/v1/organizations/analytics/apps/chat/projects

Mendapatkan aktivitas per proyek untuk hari tertentu, dengan paginasi berbasis kursor.

AnalitikKonektor

Dapatkan Penggunaan Konektor
$client->beta->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>
GET/v1/organizations/analytics/connectors

Dapatkan penggunaan per konektor untuk hari tertentu, dengan paginasi berbasis kursor.

AnalitikPlugin

Dapatkan Penggunaan Plugin
$client->beta->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>
GET/v1/organizations/analytics/plugins

Dapatkan penggunaan instalasi + pemanggilan per plugin untuk hari tertentu, dengan paginasi.

AnalitikSkill

Dapatkan Penggunaan Skill
$client->beta->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>
GET/v1/organizations/analytics/skills

Dapatkan penggunaan per skill untuk hari tertentu, dengan paginasi berbasis kursor.

AnalitikArtifacts

Dapatkan Aktivitas Artifact
$client->beta->organization->analytics->artifacts->list(\Datetime date, ?list<string> filter, ?list<AnalyticsArtifactGroupBy> groupBy, ?int limit, ?string page): PageCursor<AnalyticsArtifactActivity>
GET/v1/organizations/analytics/artifacts

Dapatkan aktivitas pembuatan artifact untuk hari tertentu, dirinci berdasarkan tipe MIME.

AnalitikPenggunaan

Mendapatkan Penggunaan Token Berdasarkan Dimensi
$client->beta->organization->analytics->usage->list(\Datetime startingAt, ?list<string> actorIDs, ?list<AnalyticsActorType> actorTypes, ?list<string> agentIDs, ?list<string> apiKeyIDs, ?list<AnalyticsClaudeTagCategory> claudeTagCategories, ?list<string> claudeTagUserIDs, ?list<AnalyticsContextWindow> contextWindows, ?list<string> deploymentIDs, ?\Datetime endingAt, ?list<string> environmentIDs, ?bool excludeDeletedUsers, ?list<BetaAnalyticsUsageGroupBy> groupBy, ?list<AnalyticsInferenceGeoFilter> inferenceGeos, ?int limit, ?list<string> models, ?AnalyticsUsageCostSortOrder order, ?BetaAnalyticsUsageOrderBy orderBy, ?string page, ?list<AnalyticsUsageCostProductFilter> products, ?list<string> rbacGroupIDs, ?list<AnalyticsServiceTier> serviceTiers, ?list<string> sessionIDs, ?list<string> slackChannelIDs, ?list<AnalyticsSpeed> speeds, ?AnalyticsTimeBucketWidth timeBucketWidth, ?list<string> userProfileIDs, ?list<string> workspaceIDs, ?list<AnthropicBeta> betas): ReportPageCursor<BetaAnalyticsUsageItem>
GET/v1/organizations/analytics/usage
Requires anthropic-beta: analytics-usage-cost-2026-08-24. How to send beta headers

Mendapatkan penggunaan token dalam suatu rentang tanggal, dirinci berdasarkan dimensi.

AnalitikBiaya

Mendapatkan Biaya Berdasarkan Dimensi
$client->beta->organization->analytics->cost->list(\Datetime startingAt, ?list<string> actorIDs, ?list<AnalyticsActorType> actorTypes, ?list<string> agentIDs, ?list<string> apiKeyIDs, ?list<AnalyticsClaudeTagCategory> claudeTagCategories, ?list<string> claudeTagUserIDs, ?list<AnalyticsContextWindow> contextWindows, ?list<string> deploymentIDs, ?\Datetime endingAt, ?list<string> environmentIDs, ?bool excludeDeletedUsers, ?list<BetaAnalyticsCostGroupBy> groupBy, ?list<AnalyticsInferenceGeoFilter> inferenceGeos, ?int limit, ?list<string> models, ?AnalyticsUsageCostSortOrder order, ?BetaAnalyticsCostOrderBy orderBy, ?string page, ?list<AnalyticsUsageCostProductFilter> products, ?list<string> rbacGroupIDs, ?list<AnalyticsServiceTier> serviceTiers, ?list<string> sessionIDs, ?list<string> slackChannelIDs, ?list<AnalyticsSpeed> speeds, ?AnalyticsTimeBucketWidth timeBucketWidth, ?list<string> userProfileIDs, ?list<string> workspaceIDs, ?list<AnthropicBeta> betas): ReportPageCursor<BetaAnalyticsCostItem>
GET/v1/organizations/analytics/cost
Requires anthropic-beta: analytics-usage-cost-2026-08-24. How to send beta headers

Mendapatkan biaya dalam USD dalam suatu rentang tanggal, dirinci berdasarkan dimensi.

Mendapatkan Penggunaan Token dari Waktu ke Waktu
$client->beta->organization->analytics->usageReport->list(\Datetime startingAt, ?BucketWidth bucketWidth, ?list<AnalyticsClaudeTagCategory> claudeTagCategories, ?list<string> claudeTagUserIDs, ?list<AnalyticsContextWindow> contextWindows, ?\Datetime endingAt, ?list<GroupBy> groupBy, ?list<AnalyticsInferenceGeoFilter> inferenceGeos, ?int limit, ?list<string> models, ?string page, ?list<AnalyticsProductFilter> products, ?list<string> rbacGroupIDs, ?list<string> slackChannelIDs, ?list<Speed> speeds, ?list<string> userIDs): ReportPageCursor<AnalyticsUsageReportTimeBucket>
GET/v1/organizations/analytics/usage_report

[Legacy] Mendapatkan penggunaan token dari waktu ke waktu dalam suatu rentang tanggal.

Mendapatkan Penggunaan Token per Pengguna
$client->beta->organization->analytics->userUsageReport->list(\Datetime startingAt, ?BucketWidth bucketWidth, ?list<AnalyticsClaudeTagCategory> claudeTagCategories, ?list<string> claudeTagUserIDs, ?list<AnalyticsContextWindow> contextWindows, ?\Datetime endingAt, ?bool excludeDeletedUsers, ?list<GroupBy> groupBy, ?list<AnalyticsInferenceGeoFilter> inferenceGeos, ?int limit, ?list<string> models, ?Order order, ?OrderBy orderBy, ?string page, ?list<AnalyticsProductFilter> products, ?list<string> rbacGroupIDs, ?list<string> slackChannelIDs, ?list<Speed> speeds, ?list<string> userIDs): ReportPageCursor<AnalyticsUsageUsersItem>
GET/v1/organizations/analytics/user_usage_report

[Legacy] Mendapatkan penggunaan token per pengguna dalam suatu rentang tanggal.

AnalitikLaporan Biaya

Mendapatkan Biaya dari Waktu ke Waktu
$client->beta->organization->analytics->costReport->list(\Datetime startingAt, ?BucketWidth bucketWidth, ?list<AnalyticsClaudeTagCategory> claudeTagCategories, ?list<string> claudeTagUserIDs, ?list<AnalyticsContextWindow> contextWindows, ?\Datetime endingAt, ?list<GroupBy> groupBy, ?list<AnalyticsInferenceGeoFilter> inferenceGeos, ?int limit, ?list<string> models, ?string page, ?list<AnalyticsProductFilter> products, ?list<string> rbacGroupIDs, ?list<string> slackChannelIDs, ?list<Speed> speeds, ?list<string> userIDs): ReportPageCursor<AnalyticsCostReportTimeBucket>
GET/v1/organizations/analytics/cost_report

[Legacy] Mendapatkan biaya dalam USD dari waktu ke waktu dalam suatu rentang tanggal.

Mendapatkan Biaya per Pengguna
$client->beta->organization->analytics->userCostReport->list(\Datetime startingAt, ?BucketWidth bucketWidth, ?list<AnalyticsClaudeTagCategory> claudeTagCategories, ?list<string> claudeTagUserIDs, ?list<AnalyticsContextWindow> contextWindows, ?\Datetime endingAt, ?bool excludeDeletedUsers, ?list<GroupBy> groupBy, ?list<AnalyticsInferenceGeoFilter> inferenceGeos, ?int limit, ?list<string> models, ?Order order, ?OrderBy orderBy, ?string page, ?list<AnalyticsProductFilter> products, ?list<string> rbacGroupIDs, ?list<string> slackChannelIDs, ?list<Speed> speeds, ?list<string> userIDs): ReportPageCursor<AnalyticsCostUsersItem>
GET/v1/organizations/analytics/user_cost_report

[Legacy] Mendapatkan biaya per pengguna dalam USD dalam suatu rentang tanggal.