Connect Anthropic (Analytics API)
Anthropic is the AI safety company behind Claude. The Anthropic Analytics API integration imports your organization's Claude usage and cost data into DoiT Cloud Intelligence so you can analyze AI spend across surfaces (claude.ai, Claude Code, API, and more) in Cloud Analytics.
Cost and usage data is only available for usage-based Enterprise plans. Seat-based plans will see data for additional usage charges only.
Prerequisitesโ
-
An Anthropic Claude Enterprise account with Primary Owner access.
-
A DoiT account with the Billing Profiles Admin permission.
Required credentialsโ
| Field | Description | Where to find it |
|---|---|---|
| Organization Label | A free-form slug that identifies this Anthropic organization in DoiT (e.g. my-org). Used to distinguish multiple connections. | Choose any stable identifier โ it is not validated against Anthropic |
| Analytics API Key | API key with the read:analytics scope | claude.ai/analytics/api-keys โ see steps below |
Generate an Analytics API keyโ
-
Sign in to claude.ai as a Primary Owner of your Enterprise organization.
-
Navigate to Analytics > API keys.
-
Toggle the Access switch under Analytics API to enable it.
-
Select + Create key to generate a new key.
-
Copy the key immediately โ it is only shown once.
CautionTreat the API key like a password. Anyone with the key can read your organization's analytics data.
Connect your Anthropic accountโ
-
Sign in to DoiT Cloud Intelligence, select Data ingestion and integrations > Integrations from the top navigation mega menu.
-
Search for Anthropic in the integrations catalog.
-
Select Connect + on the integration card.
-
Enter the credentials you gathered:
- Organization Label โ a stable slug to identify this connection (e.g.
my-org). - Analytics API Key โ the key you generated at claude.ai/analytics/api-keys.
- Organization Label โ a stable slug to identify this connection (e.g.
-
Select Test connection to verify DoiT can access your data.
-
If the test is successful, select Save to complete the setup.
If the test fails or you need further assistance, please open an expert inquiry.
Upon initial connection, DoiT ingests up to 120 days of historical usage and cost data. The import process can take a few hours. You'll receive an email when the data is available in Cloud Analytics.
Data refreshโ
DoiT refreshes your Anthropic data every 6 hours. Cost and usage data is typically available within 24 hours; engagement metrics (active users, project usage, skills) are aggregated daily and available for dates at least 3 days in the past.
Reporting dimensionsโ
Once connected, Anthropic data maps to the following standard Cloud Analytics dimensions:
| Cloud Analytics dimension | Anthropic value | Example |
|---|---|---|
| Provider | Anthropic (Analytics API) | Anthropic (Analytics API) |
| Billing Account | Organization Label | my-org |
| Project/Account ID | User ID | user_abc123 |
| Service | Claude surface | claude_code, api, claude.ai |
| SKU | Surface and model | claude_code / claude-sonnet-4-5 |
| Resource | Model ID | claude-sonnet-4-5 |
In addition to standard dimensions, the following Anthropic-specific labels are available:
| Label | Description |
|---|---|
| Organization | The Organization Label you set during connection |
| User | The user's email address |
| User ID | The Anthropic user identifier |
| API Key | The API key name associated with the request |
| Surface | The Claude product surface (e.g. claude_code, api) |
| Model | The Claude model used |
| Context Window | The model's context window size |
| Inference Region | The geographic region where inference was performed |
| Speed | The inference speed tier |
| Token Type | Token category (mixed) |
Delete your Anthropic connectionโ
-
Sign in to DoiT Cloud Intelligence, select Data ingestion and integrations > Integrations from the top navigation mega menu.
-
Search for Anthropic in the integrations catalog.
-
Select Manage on the integration card.
-
Select the kebab menu (โฎ) at the rightmost end of the account you want to remove and select Delete.
-
Select Delete to confirm.