Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

List your profiles. An asterisk marks the active one. changedmanage-claude/admin-api-keys

Nearest release: v2.1.333, published 4 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+211added
Lines−80removed
From line 1 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits23to this page, all time

## Claude Console organizations ### What a Console Admin API key works with ## Get an access token with the `org:admin` scope ### Renew the access token and clean up ### Sign in for organization webhooks ## Claude Enterprise organizations ### Key access ### Create the key in claude.ai ## Use the key or access token ## Replace an Admin API key ## Which key do you need? ## Choose scopes for a Claude Enterprise key ## Use the key ## Next steps

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
11---
2title: Create an Admin API key
2title: Admin API keys and tokens
33url: https://platform.claude.com/docs/en/manage-claude/admin-api-keys
4description: Create an Admin API key for your Claude Console or Claude Enterprise organization.
4description: "Get the credential a program uses to manage your Claude Console or Claude Enterprise organization: an Admin API key or a token with the org:admin scope."
55---
66 
7An Admin API key authenticates calls to the APIs that manage and report on your organization, such as the [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api) and the [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api). One key can work with several of these APIs.
7**Is this the key you need?** Admin API keys and tokens manage an organization. To call Claude instead, for example to send a message, see [Authentication](https://platform.claude.com/docs/en/manage-claude/authentication).
88 
9## Which key do you need?
9A program that holds an Admin API key or token can manage your organization. Depending on the credential, it can manage members, invites, and workspaces through the [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api), read activity records through the [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api), or report usage and cost through the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api). This page helps you choose the credential and get it.
1010 
11The key you need depends on which Claude product your organization uses: Claude Console (Claude Platform) or Claude Enterprise.
11Which credential you use depends on where you manage your organization: in the Claude Console (`platform.claude.com`) or in Claude Enterprise (`claude.ai`).
1212 
13| Organization | Claude Console | Claude Enterprise |
13| Organization | Use | What it reaches |
1414| ----- | ----- | ----- |
15| **Sign-in address** | `platform.claude.com` | `claude.ai` |
16| **Where to create it** | [Admin keys](https://platform.claude.com/settings/admin-keys) page in the Claude Console | [claude.ai > Organization settings > API](https://claude.ai/admin-settings/api-access) |
17| **Key prefix** | `sk-ant-admin01-...` | `sk-ant-api01-...` |
18| **Who can create it** | Organization members with the **admin** role | **Primary owner:** any scope<br />**Organization owner:** Compliance API scopes only, for their own organization |
19| **Scopes** | None to select: every key has full access to the endpoints that accept it | [Choose scopes](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#choose-scopes-for-a-claude-enterprise-key) when you create the key. The key works only with the APIs your scopes cover |
20| **Works with** | [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api)<br />[Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api)<br />[Compliance API Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed)<br />[Safety Cases API](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/safety-cases-api#get-access), for keys created while it’s available<br />[Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api) (legacy)<br />[Rate Limits API](https://platform.claude.com/docs/en/manage-claude/rate-limits-api)<br />[Claude Code Analytics API](https://platform.claude.com/docs/en/manage-claude/claude-code-analytics-api) | Admin API [user management](https://platform.claude.com/docs/en/manage-claude/user-management)<br />[Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api)<br />[Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api)<br />[Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api)<br />[Plugins API](https://platform.claude.com/docs/en/manage-claude/plugins-api)<br />[Claude Tag API](https://platform.claude.com/docs/en/manage-claude/claude-tag-api)<br />[Spend Limits API](https://platform.claude.com/docs/en/manage-claude/spend-limits-api) |
15| A Claude Console organization | A Console Admin API key or a token with the `org:admin` scope | The whole organization |
16| A Claude Enterprise organization | An Enterprise Admin API key | What its scopes allow |
2117 
2218On Claude Models on Google Cloud (Anthropic managed) or Claude Platform on AWS, use that platform’s credentials instead of an Admin API key. For the Admin API endpoints you can call on those platforms, see [Cloud platforms](https://platform.claude.com/docs/en/manage-claude/admin-api#cloud-platforms) on the Admin API page. For the Activity Feed on those platforms, see [Set up the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api).
2319 
24Most keys reach only the organization you created them in. Some keys, such as those with Compliance API, group, or audit scopes, can reach further if your company links its organizations under a [parent organization](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#which-key-do-you-need). If your company uses both Claude Console and Claude Enterprise, create one key in each.
20There are two kinds of API key, each named for its main job:
2521 
22| Key | What it works with |
23| ----- | ----- |
24| **Developer API key** | The APIs that call Claude, such as Messages, Files, and Managed Agents |
25| **Admin API key** | The APIs that manage and report on an organization, such as the [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api) and the [Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api) |
26 
27An Admin API key can’t call Claude. The Claude Console calls a Developer API key an “API key” and lists these keys on its **API keys** page.
28 
29## Claude Console organizations
30 
31An individual Console account can’t create an Admin API key. To use the Admin API, set up an organization, as the Admin API page’s [Availability](https://platform.claude.com/docs/en/manage-claude/admin-api#availability) section describes. In an organization, use one of two credentials to manage the whole organization:
32 
33* **A Console Admin API key** fits either an automated job with no [identity provider](https://platform.claude.com/docs/en/manage-claude/authentication#workload-identity-federation) or a tool that takes only a key. The key is a stored secret that belongs to the organization, not to a person. See [Create a key for a Claude Console organization](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#create-a-key-for-a-claude-console-organization).
34* **A token with the `org:admin` scope** fits either a person at a terminal or an automated job whose platform has an identity provider. The token is short-lived and acts as a person or a service account. With only this scope, it can’t call Claude. See [Get an access token with the `org:admin` scope](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#get-a-token-with-the-org-admin-scope).
35 
36The two differ in a few places:
37 
38* Only a Console Admin API key, not a token, reads the Compliance API’s Activity Feed. See [Query the Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed).
39* Only a token with the `org:admin` scope manages service accounts and federation.
40 
2641## Create a key for a Claude Console organization
2742 
28An individual Claude Console account cannot create this key, so [set up an organization](https://platform.claude.com/docs/en/manage-claude/admin-api#availability) first. To use the key with the Activity Feed, [enable the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api) before you create it.
43Before you start:
2944 
45* You need the admin role in a Claude Console organization. See the Admin API page’s [Organization roles and permissions](https://platform.claude.com/docs/en/manage-claude/admin-api#organization-roles-and-permissions) section.
46* If the key needs to read the Activity Feed, enable the Compliance API before you create the key, as [Set up the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api) describes. A key created before then can’t read the feed, so replace it with a new one.
47 
3048<Steps>
3149 <Step title="Open Admin keys settings">
32 Sign in to the Claude Console as an [organization admin](https://platform.claude.com/docs/en/manage-claude/admin-api#organization-roles-and-permissions). Go to the [Admin keys](https://platform.claude.com/settings/admin-keys) page (`platform.claude.com/settings/admin-keys`).
50 Sign in to the Claude Console and go to the [Admin keys](https://platform.claude.com/settings/admin-keys) page (`platform.claude.com/settings/admin-keys`).
3351 </Step>
3452 
3553 <Step title="Create the key">
from line 55
3755 A key that you create while the [Safety Cases API](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/safety-cases-api#get-access) is available to your organization can also read that organization’s flagged messages and respond to its Safety Cases. You can’t leave this access out, so limit who can create and hold a key.
3856 </Warning>
3957 
40 Click **Create admin key**, give it a name, select a [key expiration](https://platform.claude.com/docs/en/manage-claude/authentication#key-expiration), and click **Add**.
58 Click **Create admin key**, name the key, select a [key expiration](https://platform.claude.com/docs/en/manage-claude/api-keys#key-expiration), and click **Add**.
4159 </Step>
4260 
4361 <Step title="Copy and store the secret">
44 Copy the displayed secret (starting with `sk-ant-admin01-`) and store it in your secrets manager. The full secret is shown only once.
62 Copy the displayed secret, which starts with `sk-ant-admin01-`, and store it in your secrets manager. The full secret is shown only once.
4563 </Step>
4664</Steps>
4765 
66### What a Console Admin API key works with
67 
68A Console Admin API key manages the Claude Console organization it was created in. The key has no scopes to choose, so a program that holds it can call these APIs:
69 
70| API | Use it to |
71| ----- | ----- |
72| [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api) | Manage members, invites, workspaces, and [Developer API keys](https://platform.claude.com/docs/en/manage-claude/api-keys) |
73| [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) | Report token usage and cost |
74| [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api) (legacy) | Report usage and cost |
75| [Rate Limits API](https://platform.claude.com/docs/en/manage-claude/rate-limits-api) | Read your organization’s rate limits and set workspace limits |
76| [Claude Code Analytics API](https://platform.claude.com/docs/en/manage-claude/claude-code-analytics-api) | Report on Claude Code productivity |
77| [Compliance API Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed) | Read organization-wide activity events |
78 
79A key that you create while the [Safety Cases API](https://platform.claude.com/docs/en/manage-claude/enterprise-frontier-safeguards/safety-cases-api#get-access) is available to your organization also reaches that API.
80 
81## Get an access token with the `org:admin` scope
82 
83How you get the token depends on who makes the calls:
84 
85* **A person at a terminal:** Sign in with the `ant` CLI and the `org:admin` scope, as the following commands show.
86* **An automated job whose platform has an identity provider:** Use [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation). An admin creates a federation rule that grants the `org:admin` scope. See the Manage WIF with the Admin API page’s [Bootstrap a workload to manage WIF](https://platform.claude.com/docs/en/manage-claude/wif-admin-api#bootstrap-a-workload-to-manage-wif) section.
87 
88A person needs the admin role to sign in with the `org:admin` scope. For the role a service account needs, see [Permission boundaries](https://platform.claude.com/docs/en/manage-claude/wif-reference#permission-boundaries) on the WIF reference page.
89 
90You need the latest version of the `ant` CLI. To check yours, compare the output of `ant --version` with the newest release on the CLI’s [GitHub releases page](https://github.com/anthropics/anthropic-cli/releases). To install the latest version, use one of these methods:
91 
92<Tabs noDeepLinks>
93 <Tab title="Homebrew (macOS)">
94 ```bash
95 brew install anthropics/tap/ant
96 ```
97 </Tab>
98 
99 <Tab title="curl (Linux/WSL)">
100 For Linux environments, download the release binary directly.
101 
102 ```bash
103 VERSION=2.14.0
104 OS=$(uname -s | tr '[:upper:]' '[:lower:]')
105 case $(uname -m) in
106 x86_64) ARCH=amd64 ;;
107 aarch64) ARCH=arm64 ;;
108 esac
109 curl -fsSL "https://github.com/anthropics/anthropic-cli/releases/download/v${VERSION}/ant_${VERSION}_${OS}_${ARCH}.tar.gz" \
110 | sudo tar -xz -C /usr/local/bin ant
111 ```
112 
113 You can find all releases on the [GitHub releases page](https://github.com/anthropics/anthropic-cli/releases).
114 </Tab>
115 
116 <Tab title="go install">
117 You can also install the CLI from source with `go install`, which requires Go 1.26.10 or later.
118 
119 ```bash
120 go install github.com/anthropics/anthropic-cli/v2/cmd/ant@latest
121 ```
122 
123 `go install` places the binary in `$(go env GOPATH)/bin`. Add that directory to your `PATH` if it isn’t already there:
124 
125 ```bash
126 export PATH="$PATH:$(go env GOPATH)/bin"
127 ```
128 </Tab>
129</Tabs>
130 
131On Windows, you can install the CLI inside [Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/windows/wsl/install) with the Linux steps. If you sign in with the CLI inside WSL, also run your code there so that it finds your sign-in.
132 
133Unlike a usual sign-in, which works in one workspace, an admin sign-in can make changes across your organization.
134 
135The following commands change environment variables, so run them in a shell that you keep for administration. They list your profiles, unset `ANTHROPIC_API_KEY`, sign in under a separate profile with the `org:admin` scope, and export the token. The `--admin` flag in the `ant auth login` command adds the `org:admin` scope to the scopes that a sign-in already requests.
136 
137The sign-in also makes the `admin` profile the CLI’s active profile. Your other shells use it too. Until you switch back, clients in those shells that use the active profile, such as the `ant` CLI, can run as an admin.
138 
139```bash CLI
140# List your profiles. An asterisk marks the active one.
141# Note it, so that you can switch back later:
142ant profile list
143 
144# Unset the API key variable.
145# While that variable is set, the SDK and the CLI use the key and not the token:
146unset ANTHROPIC_API_KEY
147 
148ant auth login --profile admin --admin
149export ANTHROPIC_AUTH_TOKEN=$(ant auth print-credentials \
150 --profile admin --access-token)
151```
152 
153In this shell, the SDK and the `ant` CLI send the exported token on every call, whichever profile is active.
154 
155For organization webhooks, sign in another way, as the [Sign in for organization webhooks](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#sign-in-for-organization-webhooks) section describes.
156 
157### Renew the access token and clean up
158 
159The token in `ANTHROPIC_AUTH_TOKEN` is short-lived, and nothing renews it there. When requests start to return 401, follow these steps:
160 
1611. Rerun the `export` command, which gets a new token if the old one has expired.
1622. If requests still return 401, sign in again with the same `ant auth login` command that you used, and rerun the `export` command.
163 
164When you finish your admin work, undo what the sign-in commands changed. What to run for the active profile depends on whether you have a profile other than the one you signed in under:
165 
166* **You have another profile:** Switch back to the profile that was active before you signed in. If it was `default`, run `ant profile activate default`.
167* **You have no other profile:** `ant auth logout --all` revokes the tokens on the server and removes every profile and credential. Run it so that the profile you signed in under doesn’t stay the active one.
168 
169If you switched back, the profile you signed in under keeps its credential on disk. If you won’t need that credential for your next admin session, run `ant auth logout --profile` with the profile’s name, such as `admin`. That revokes its tokens on the server and deletes the credential.
170 
171The `unset` and `export` commands changed environment variables only in the shell where you ran them. To undo them, do one of these:
172 
173* Close that shell.
174* To keep using the shell, unset `ANTHROPIC_AUTH_TOKEN`, and set `ANTHROPIC_API_KEY` again if you use it.
175 
176### Sign in for organization webhooks
177 
178The [organization webhooks](https://platform.claude.com/docs/en/manage-claude/organization-webhooks) endpoints accept an `org:admin` token. The token must be scoped to the default workspace or to no workspace. See that page’s [Before you start](https://platform.claude.com/docs/en/manage-claude/organization-webhooks#before-you-begin) section. To get a token that isn’t scoped to a workspace, run the sign-in commands earlier on this page with two changes:
179 
180* In the `ant auth login` command, pass `--scope "org:admin"` in place of `--admin`.
181* Use another profile name, such as `webhooks`, in both the `ant auth login` and `ant auth print-credentials` commands.
182 
183With only the `org:admin` scope, that profile can’t call Claude or run your usual commands.
184 
185## Claude Enterprise organizations
186 
187In a Claude Enterprise organization, the Admin API and the Compliance API take an Enterprise Admin API key. So does every other API listed on the [Enterprise Admin API key scopes](https://platform.claude.com/docs/en/manage-claude/enterprise-admin-api-key-scopes) page.
188 
48189## Create a key for a Claude Enterprise organization
49190 
191A key that holds only Compliance API scopes is also called a Compliance Access Key. A key that holds only `read:analytics` is also called an Analytics API key.
192 
193Before you start:
194 
195* You need the primary owner or organization owner role in a Claude Enterprise organization. See the User management page’s [Organization roles](https://platform.claude.com/docs/en/manage-claude/user-management#organization-roles) section.
196* A primary owner can select any scope. An organization owner can select only Compliance API scopes and only on a key for their own organization. See [Who can select which scopes](https://platform.claude.com/docs/en/manage-claude/enterprise-admin-api-key-scopes#who-can-select-which-scopes) on the Enterprise Admin API key scopes page.
197* If the key needs Compliance API scopes, first enable the Compliance API, as [Set up the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api) describes.
198* If the key needs `read:analytics`, first get access to the Claude Enterprise Analytics API. See [Get access to the Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api#get-access-to-the-claude-enterprise-analytics-api).
199 
200### Key access
201 
202When you select a Compliance API scope in claude.ai, the key form can show **Key access** options:
203 
204* **Only this organization:** The key is for your organization. This option is selected by default.
205* **All organizations:** The key’s Compliance API scopes reach all linked organizations. Only the primary owner can select this option. The key can then hold only Compliance API, group, and audit scopes.
206 
207### Create the key in claude.ai
208 
50209<Steps>
210 <Step title="Choose the scopes">
211 List every scope your program needs. For what a scope allows, see [Enterprise Admin API key scopes](https://platform.claude.com/docs/en/manage-claude/enterprise-admin-api-key-scopes). You can’t add a scope to the key later.
212 </Step>
213 
51214 <Step title="Open API settings">
52 Sign in to claude.ai as the [primary owner or an organization owner](https://platform.claude.com/docs/en/manage-claude/user-management#organization-roles). Go to [claude.ai > Organization settings > API](https://claude.ai/admin-settings/api-access) and find the **Keys** section.
215 Sign in to claude.ai and open your organization’s [API settings](https://claude.ai/admin-settings/api-access), at **Organization settings** > **API**. Find the **Keys** section.
53216 </Step>
54217 
55 <Step title="Create the key">
56 Click **Create key**, name the key, and select the scopes you need from the [scopes table](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#choose-scopes-for-a-claude-enterprise-key). The primary owner can combine scopes from different APIs (for example, `read:analytics` and `read:spend_limits`) on a single key.
218 <Step title="Name the key and select its scopes">
219 Click **Create key** and name the key. If the key needs Compliance API scopes, select them first.
57220 
58 If the **Key access** options appear when you select a Compliance API scope, **Only this organization** is selected by default. To reach every organization under your parent organization, choose **All organizations**. Such a key can hold only Compliance API, group, and audit scopes.
221 If **Key access** appears, choose which organizations the key reaches. See [Key access](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#key-access).
59222 
223 Then, select any other scopes.
224 </Step>
225 
226 <Step title="Create the key">
60227 Click **Create**. If the key has the `delete:compliance_user_data` scope, also click **Confirm and create key**.
61228 </Step>
62229 
63230 <Step title="Copy and store the secret">
64 Copy the displayed secret (starting with `sk-ant-api01-`) and store it in your secrets manager. The full secret is shown only once.
231 Copy the displayed secret, which starts with `sk-ant-api01-`, and store it in your secrets manager. The full secret is shown only once.
65232 </Step>
66233</Steps>
67234 
68## Choose scopes for a Claude Enterprise key
235## Use the key or access token
69236 
70When you create a Claude Enterprise key, select every scope that the APIs you plan to call require. Scopes are fixed at creation; to add a scope later, create a new key. A key that holds only Compliance API scopes is also called a Compliance Access Key. A key that holds only `read:analytics` is also called an Analytics API key.
237Send a key or a token in the `Authorization` header as `Bearer <credential>`. A key also works in the `x-api-key` header. Each API’s page has complete request examples.
71238 
72| To call... | Select these scopes |
73| ----- | ----- |
74| Admin API [user management](https://platform.claude.com/docs/en/manage-claude/user-management): list and look up members and invites; read custom roles and their permissions | `read:members` |
75| Admin API [user management](https://platform.claude.com/docs/en/manage-claude/user-management): change member roles, remove members, [sign members out everywhere](https://platform.claude.com/docs/en/manage-claude/user-management#sign-a-member-out-everywhere) (beta), and create and withdraw invites (to assign the `managed` role on a role change or an invite, also select `write:rbac_groups`) | `write:members` |
76| Admin API [user management](https://platform.claude.com/docs/en/manage-claude/user-management): read groups and their members | `read:rbac_groups` |
77| Admin API [user management](https://platform.claude.com/docs/en/manage-claude/user-management): create, rename, and delete groups; add and remove group members; with `write:members`, assign the `managed` role (on an invite or a role change) or assign groups on an invite | `write:rbac_groups` |
78| [Plugins API](https://platform.claude.com/docs/en/manage-claude/plugins-api): read plugins, versions, installation settings, shares, and marketplaces; download plugin files, including the files of members’ personal plugins; validate a marketplace before you connect it | `read:plugins` |
79| [Plugins API](https://platform.claude.com/docs/en/manage-claude/plugins-api): upload plugins and versions; choose which version members are served; delete plugins, including members’ personal plugins; set and remove installation settings; set a marketplace’s default installation setting; validate a marketplace before you connect it (to read plugins, also select `read:plugins`) | `write:plugins` |
80| [Claude Tag API](https://platform.claude.com/docs/en/manage-claude/claude-tag-api): read Claude Tag’s settings on Slack channels and Slack workspaces; list Access bundles and where they are attached (no other scope grants read access to the Claude Tag API) | `read:claude_tag` |
81| [Claude Tag API](https://platform.claude.com/docs/en/manage-claude/claude-tag-api): set up and remove channels; change settings; attach and detach Access bundles (to read as well, also select `read:claude_tag`) | `write:claude_tag` |
82| [Spend Limits API](https://platform.claude.com/docs/en/manage-claude/spend-limits-api): read members’ effective spend limits and increase requests | `read:spend_limits` |
83| [Spend Limits API](https://platform.claude.com/docs/en/manage-claude/spend-limits-api): set or clear per-user spend limits; approve or deny increase requests | `write:spend_limits` |
84| [Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api): engagement, adoption, cost, and usage reports; [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api): token usage and cost reports | `read:analytics` |
85| [Compliance API Activity Feed](https://platform.claude.com/docs/en/manage-claude/compliance-activity-feed): organization-wide activity events | `read:compliance_activities` |
86| [Compliance API chat, file, and project endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-content-data) and [Compliance API session endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-sessions): read chats, files, projects, session transcripts, and [organization users](https://platform.claude.com/docs/en/manage-claude/compliance-org-data#list-organization-users); together with `read:compliance_org_data`, also who made a [Security posture attestation](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#who-attested-and-comments), where the endpoint returns it: a user ID | `read:compliance_user_data` |
87| [Compliance API chat, file, and project endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-content-data): delete chats, files, and projects | `delete:compliance_user_data` |
88| [Compliance API organization endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-org-data): read organization metadata and effective settings, and an organization’s [Security posture](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference); [Plugins API](https://platform.claude.com/docs/en/manage-claude/plugins-api): every `GET` endpoint, including file downloads | `read:compliance_org_data` |
89| Admin API [user management](https://platform.claude.com/docs/en/manage-claude/user-management) read endpoints, every Compliance API read endpoint, and every [Plugins API](https://platform.claude.com/docs/en/manage-claude/plugins-api) `GET` endpoint, including file downloads, with a single read-only scope (for security-audit integrations; does not include the Spend Limits or Analytics APIs) | `read:org_audit` |
239If a key lacks a scope that an endpoint needs, the call fails with `403 Forbidden`. The error message names the scopes the endpoint accepts.
90240 
91Compliance API scopes need the [Compliance API enabled](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api) before you can create a key with them. The `read:analytics` scope needs [access to the Claude Enterprise Analytics API](https://platform.claude.com/docs/en/manage-claude/analytics-api#get-access-to-the-claude-enterprise-analytics-api).
241## Replace an Admin API key
92242 
93The `read:plugins` and `write:plugins` scopes need an organization that can use the [Plugins API](https://platform.claude.com/docs/en/manage-claude/plugins-api), and they act only on the organization you created the key in. Keys with `read:org_audit` or `read:compliance_org_data` can read the Plugins API only in organizations that can use it. See [Plugins API scopes](https://platform.claude.com/docs/en/manage-claude/plugins-api#scopes). To read another organization’s plugins, see [Reading another organization under the same parent](https://platform.claude.com/docs/en/manage-claude/plugins-api#reading-another-organization-under-the-same-parent).
243An Enterprise Admin API key doesn’t expire. To replace a key of either kind, follow these steps:
94244 
95## Use the key
2451. **Create a new key.** Follow this page’s steps for your kind of organization.
96246 
97Pass the key in the `x-api-key` header on every request. See each API’s documentation for complete request examples.
2472. **Switch your program to the new key.** Check that its calls succeed.
98248 
99A call to an endpoint outside the key’s scopes returns `403 Forbidden`. The error message names the scopes the endpoint accepts.
2493. **Delete the old key.** Where you delete it depends on its kind:
100250 
101Neither a Claude Console key nor a Claude Enterprise key works with the Admin API’s service-account, federation-issuer, or federation-rule endpoints. Those endpoints accept only an OAuth bearer token with the `org:admin` scope. See [OAuth bearer token](https://platform.claude.com/docs/en/manage-claude/admin-api#oauth-bearer-token).
102 
103## Next steps
104 
105<CardGroup cols={2}>
106 <Card title="Admin API" href="https://platform.claude.com/docs/en/manage-claude/admin-api">
107 Manage organization members, workspaces, and API keys.
108 </Card>
109 
110 <Card title="Spend Limits API" href="https://platform.claude.com/docs/en/manage-claude/spend-limits-api">
111 Set per-member spend limits and review increase requests for your Claude Enterprise organization.
112 </Card>
113 
114 <Card title="Analytics APIs" href="https://platform.claude.com/docs/en/manage-claude/analytics-api">
115 Report on Claude Code productivity or Claude Enterprise engagement and adoption.
116 </Card>
117 
118 <Card title="Compliance API" href="https://platform.claude.com/docs/en/manage-claude/compliance-api">
119 Audit activity and retrieve or delete user content across your organization.
120 </Card>
121</CardGroup>
251 * **Console Admin API key:** Delete it on the [Admin keys](https://platform.claude.com/settings/admin-keys) page in the Claude Console.
252 * **Enterprise Admin API key:** Delete it in your organization’s [API settings](https://claude.ai/admin-settings/api-access) in claude.ai, at **Organization settings** > **API**.
122253 
Feedback