Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

First request changedmanage-claude/usage-cost-api

Nearest release: v2.1.328, published 7 hours after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+34added
Lines−11removed
From line 1 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits22to this page, all time

### Claude Enterprise organizations

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
11---
22title: Usage and Cost API
33url: https://platform.claude.com/docs/en/manage-claude/usage-cost-api
4description: The legacy Admin API usage and cost report endpoints for Claude Console organizations. For new integrations, use the Usage and Cost Analytics API.
4description: The legacy Admin API usage and cost report endpoints. For new integrations, use the Usage and Cost Analytics API.
55---
66 
77<Tip>
from line 12
1212 The Usage and Cost API (`/v1/organizations/usage_report/messages` and `/v1/organizations/cost_report`) is a legacy API and remains supported. For new integrations, use the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api), which reports usage and cost with more grouping and filtering dimensions. To move an existing integration, see [Migrate from the Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api#migrate-from-usage-cost-api).
1313</Note>
1414 
15The Usage and Cost Admin API provides programmatic and granular access to historical API usage and cost data for your organization. This data is similar to the information available on the [Usage](https://platform.claude.com/usage) page (`platform.claude.com/usage`) and the [Cost](https://platform.claude.com/cost) page (`platform.claude.com/cost`) in the Claude Console.
15The Usage and Cost API provides programmatic and granular access to historical API usage and cost data for your organization. For Claude Console organizations, this data is similar to what the Claude Console shows on the [Usage](https://platform.claude.com/usage) page (`platform.claude.com/usage`) and the [Cost](https://platform.claude.com/cost) page (`platform.claude.com/cost`).
1616 
1717This API allows you to better monitor, analyze, and optimize your Claude implementations:
1818 
from line 23
2323* **Advanced analysis:** Perform deeper data analysis than what’s available in Console
2424 
2525<Check>
26 **Admin API credentials required.** These endpoints are part of the Admin API. You can access them using an [Admin API key](https://platform.claude.com/docs/en/manage-claude/admin-api-keys), an OAuth token with the `org:admin` scope, or a personal or service account key that isn’t scoped to a workspace; workspace API keys don’t work. See [Authentication](https://platform.claude.com/docs/en/manage-claude/admin-api#authentication) for details.
27</Check>
26 **Authentication**
2827 
29Claude Enterprise organizations use an Analytics API key with a different API instead; see [Which API do you need?](https://platform.claude.com/docs/en/manage-claude/usage-cost-api#which-api-do-you-need).
28 These endpoints are part of the Admin API. Claude Console organizations can access them using any of these credentials:
3029 
30 * An [Admin API key](https://platform.claude.com/docs/en/manage-claude/admin-api-keys)
31 * An OAuth token with the `org:admin` scope
32 * A personal or service account key that isn’t scoped to a workspace
33 
34 Workspace API keys don’t work. See [Authentication](https://platform.claude.com/docs/en/manage-claude/admin-api#authentication) for details.
35 
36 Claude Enterprise organizations use an Analytics API key, and the usage endpoint leaves out some of their usage; see [Claude Enterprise organizations](https://platform.claude.com/docs/en/manage-claude/usage-cost-api#claude-enterprise-organizations).
37</Check>
38 
3139<Note>
3240 **Claude Platform on AWS:** The Usage and Cost API endpoints are not available. Use the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api).
3341</Note>
from line 46
3846 
3947## Which API do you need?
4048 
41The API to use depends on which Claude product your organization uses:
49The APIs you can call, and the key each one takes, depend on which Claude product your organization uses:
4250 
43| Your organization | API | Key type |
44| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
45| Claude Console (Claude Platform) | The [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) (recommended), or the legacy Usage and Cost Admin API described on this page | Admin API key (`sk-ant-admin01-...`) or another [Admin API credential](https://platform.claude.com/docs/en/manage-claude/admin-api#authentication) |
46| Claude Enterprise (claude.ai) | The [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) (recommended), or the [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/api/beta/organization/analytics) cost and usage endpoints (legacy) | Analytics API key |
51| API | Claude Console (Claude Platform) | Claude Enterprise (claude.ai) |
52| ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
53| [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) (recommended) | Admin API key (`sk-ant-admin01-...`) or another [Admin API credential](https://platform.claude.com/docs/en/manage-claude/admin-api#authentication) | Analytics API key |
54| Usage and Cost API (legacy), which this page documents | Admin API key or another Admin API credential | Analytics API key |
55| [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/api/beta/organization/analytics) cost and usage endpoints (legacy) | Not available | Analytics API key |
4756 
4857Claude Enterprise parent organizations do not appear in Claude Console and carry no Admin API keys, so for them the Analytics API key is the only path to this data. See [Analytics APIs](https://platform.claude.com/docs/en/manage-claude/analytics-api) for how to create each key type and which plans the Claude Enterprise cost data applies to.
58 
59### Claude Enterprise organizations
60 
61A Claude Enterprise organization uses one [Analytics API key](https://platform.claude.com/docs/en/manage-claude/analytics-api#get-access-to-the-claude-enterprise-analytics-api) for all three APIs in the table. For these APIs, the key reads only the organization it was created in. Send it in the `x-api-key` header, as the examples on this page do with an Admin API key.
62 
63For these organizations, the two endpoints don’t cover the same usage, so you can’t reconcile one against the other:
64 
65* **[Usage endpoint](https://platform.claude.com/docs/en/manage-claude/usage-cost-api#usage-api):** It leaves out usage from some Claude products, so its totals can be lower than the organization’s usage. For example, it doesn’t count the following:
66 
67 * Cowork
68 * Claude Code in the terminal, IDEs, and the desktop app
69 * Text chats in Claude on the web, desktop, and mobile
70 
71* **[Cost endpoint](https://platform.claude.com/docs/en/manage-claude/usage-cost-api#cost-api):** With a `starting_at` on or after October 1, 2025, it covers usage-based charges across Claude products, including the three in the previous list. It doesn’t include seat fees or usage that a seat covers.
4972 
5073## Partner solutions
5174 
Feedback