---
title: Create an Admin API key
url: https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/admin-api-keys
description: Create an Admin API key for your Claude Console or Claude Enterprise organization.
---

An Admin API key authenticates calls to the APIs that manage and report on your organization, such as the [Admin API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/admin-api) and the [Compliance API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/compliance-api). One key can work with several of these APIs.

## Which key do you need?

The key you need depends on which Claude product your organization uses: Claude Console (Claude Platform) or Claude Enterprise.

| Organization | Claude Console | Claude Enterprise |
| ----- | ----- | ----- |
| **Sign-in address** | `platform.claude.com` | `claude.ai` |
| **Where to create it** | [Admin keys](https://code.saschaberens.de/_h/platform.claude.com/settings/admin-keys) page in the Claude Console | [claude.ai > Organization settings > API](https://code.saschaberens.de/admin-settings/api-access) |
| **Key prefix** | `sk-ant-admin01-...` | `sk-ant-api01-...` |
| **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 |
| **Scopes** | None to select: every key has full access to the endpoints that accept it | [Choose scopes](https://code.saschaberens.de/_h/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 |
| **Works with** | [Admin API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/admin-api)<br />[Usage and Cost Analytics API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api)<br />[Compliance API Activity Feed](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/compliance-activity-feed)<br />[Safety Cases API](https://code.saschaberens.de/_h/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://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/usage-cost-api) (legacy)<br />[Rate Limits API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/rate-limits-api)<br />[Claude Code Analytics API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/claude-code-analytics-api) | Admin API [user management](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/user-management)<br />[Usage and Cost Analytics API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api)<br />[Compliance API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/compliance-api)<br />[Usage and Cost API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/usage-cost-api) (legacy)<br />[Claude Enterprise Analytics API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/analytics-api)<br />[Plugins API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/plugins-api)<br />[Claude Tag API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/claude-tag-api)<br />[Spend Limits API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/spend-limits-api) |

Most 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://code.saschaberens.de/_h/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.

## Create a key for a Claude Console organization

An individual Claude Console account cannot create this key, so [set up an organization](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/admin-api#availability) first. To use the key with the Activity Feed, [enable the Compliance API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api) before you create it.

<Steps>
  <Step title="Open Admin keys settings">
    Sign in to the Claude Console as an [organization admin](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/admin-api#organization-roles-and-permissions). Go to the [Admin keys](https://code.saschaberens.de/_h/platform.claude.com/settings/admin-keys) page (`platform.claude.com/settings/admin-keys`).
  </Step>

  <Step title="Create the key">
    <Warning>
      A key that you create while the [Safety Cases API](https://code.saschaberens.de/_h/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.
    </Warning>

    Click **Create admin key**, give it a name, select a [key expiration](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/authentication#key-expiration), and click **Add**.
  </Step>

  <Step title="Copy and store the secret">
    Copy the displayed secret (starting with `sk-ant-admin01-`) and store it in your secrets manager. The full secret is shown only once.
  </Step>
</Steps>

## Create a key for a Claude Enterprise organization

<Steps>
  <Step title="Open API settings">
    Sign in to claude.ai as the [primary owner or an organization owner](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/user-management#organization-roles). Go to [claude.ai > Organization settings > API](https://code.saschaberens.de/admin-settings/api-access) and find the **Keys** section.
  </Step>

  <Step title="Create the key">
    Click **Create key**, name the key, and select the scopes you need from the [scopes table](https://code.saschaberens.de/_h/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.

    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.

    Click **Create**. If the key has the `delete:compliance_user_data` scope, also click **Confirm and create key**.
  </Step>

  <Step title="Copy and store the secret">
    Copy the displayed secret (starting with `sk-ant-api01-`) and store it in your secrets manager. The full secret is shown only once.
  </Step>
</Steps>

## Choose scopes for a Claude Enterprise key

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

| To call... | Select these scopes |
| ----- | ----- |
| Admin API [user management](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/user-management): list and look up members and invites; read custom roles and their permissions | `read:members` |
| Admin API [user management](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/user-management): change member roles, remove members, [sign members out everywhere](https://code.saschaberens.de/_h/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` |
| Admin API [user management](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/user-management): read groups and their members | `read:rbac_groups` |
| Admin API [user management](https://code.saschaberens.de/_h/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` |
| [Plugins API](https://code.saschaberens.de/_h/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` |
| [Plugins API](https://code.saschaberens.de/_h/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` |
| [Claude Tag API](https://code.saschaberens.de/_h/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` |
| [Claude Tag API](https://code.saschaberens.de/_h/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` |
| [Spend Limits API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/spend-limits-api): read members’ effective spend limits and increase requests | `read:spend_limits` |
| [Spend Limits API](https://code.saschaberens.de/_h/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` |
| [Claude Enterprise Analytics API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/analytics-api): engagement, adoption, cost, and usage reports; [Usage and Cost Analytics API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api): token usage and cost reports; [Usage and Cost API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/usage-cost-api) (legacy): usage and cost reports | `read:analytics` |
| [Compliance API Activity Feed](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/compliance-activity-feed): organization-wide activity events | `read:compliance_activities` |
| [Compliance API chat, file, and project endpoints](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/compliance-content-data) and [Compliance API session endpoints](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/compliance-sessions): read chats, files, projects, session transcripts, and [organization users](https://code.saschaberens.de/_h/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://code.saschaberens.de/_h/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` |
| [Compliance API chat, file, and project endpoints](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/compliance-content-data): delete chats, files, and projects | `delete:compliance_user_data` |
| [Compliance API organization endpoints](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/compliance-org-data): read organization metadata and effective settings, and an organization’s [Security posture](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference); [Plugins API](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/plugins-api): every `GET` endpoint, including file downloads | `read:compliance_org_data` |
| Admin API [user management](https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/user-management) read endpoints, every Compliance API read endpoint, and every [Plugins API](https://code.saschaberens.de/_h/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` |

Compliance API scopes need the [Compliance API enabled](https://code.saschaberens.de/_h/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://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/analytics-api#get-access-to-the-claude-enterprise-analytics-api).

The `read:plugins` and `write:plugins` scopes need an organization that can use the [Plugins API](https://code.saschaberens.de/_h/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://code.saschaberens.de/_h/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://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/plugins-api#reading-another-organization-under-the-same-parent).

## Use the key

Pass the key in the `x-api-key` header on every request. See each API’s documentation for complete request examples.

A call to an endpoint outside the key’s scopes returns `403 Forbidden`. The error message names the scopes the endpoint accepts.

Neither 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://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/admin-api#oauth-bearer-token).

## Next steps

<CardGroup cols={2}>
  <Card title="Admin API" href="https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/admin-api">
    Manage organization members, workspaces, and API keys.
  </Card>

  <Card title="Spend Limits API" href="https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/spend-limits-api">
    Set per-member spend limits and review increase requests for your Claude Enterprise organization.
  </Card>

  <Card title="Analytics APIs" href="https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/analytics-api">
    Report on Claude Code productivity or Claude Enterprise engagement and adoption.
  </Card>

  <Card title="Compliance API" href="https://code.saschaberens.de/_h/platform.claude.com/docs/en/manage-claude/compliance-api">
    Audit activity and retrieve or delete user content across your organization.
  </Card>
</CardGroup>
