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

api-keys changedmanage-claude/api-keys

Nearest release: v2.1.336, published 3 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+7added
Lines−7removed
From line 35 where the diff opens
First seen 30 Nov 2026 this site's first read of the page
Recorded edits2to this page, all time

The whole hunk

from line 35, old and new numbered
/
lines
from line 35
3535 
3636## Key expiration
3737 
38You choose a key’s expiration when you create it on the [API keys](https://platform.claude.com/settings/keys) page (`platform.claude.com/settings/keys`) in the Claude Console, and you can’t change the expiration afterward. The choices are:
38You choose a key’s expiration when you create it on the [API keys](https://platform.claude.com/keys/api-keys) page (`platform.claude.com/keys/api-keys`) in the Claude Console, and you can’t change the expiration afterward. The choices are:
3939 
4040* A preset: 3 hours, 1 day, 7 days, or 30 days
4141* A custom date and time
from line 62
6262 
6363For what each role allows, see [Organization roles and permissions](https://platform.claude.com/docs/en/manage-claude/admin-api#organization-roles-and-permissions) on the Admin API page and [Workspace roles and permissions](https://platform.claude.com/docs/en/manage-claude/workspaces#workspace-roles-and-permissions) on the Workspaces page.
6464 
65An organization admin can turn off key creation on the [Security](https://platform.claude.com/settings/identity) page in the Claude Console. **Allow creating new API keys** controls the whole organization. **Allow creating new API keys in default workspace** controls only keys scoped to the default workspace.
65An organization admin can turn off key creation on the [Security](https://platform.claude.com/settings/security) page in the Claude Console. **Allow creating new API keys** controls the whole organization. **Allow creating new API keys in default workspace** controls only keys scoped to the default workspace.
6666 
6767If you can’t create the key you need, what to do depends on why:
6868 
69* **You have the organization user role:** Use a workspace where you’re a Workspace Developer, Workspace Limited Developer, or Workspace Admin. On the [API keys](https://platform.claude.com/settings/keys) page, click **Create key**. If the dialog first offers other ways to connect, click **Somewhere else** or **Continue with an API key**. Then, set **Scope** to that workspace.
69* **You have the organization user role:** Use a workspace where you’re a Workspace Developer, Workspace Limited Developer, or Workspace Admin. On the [API keys](https://platform.claude.com/keys/api-keys) page, click **Create key**. If the dialog first offers other ways to connect, click **Somewhere else** or **Continue with an API key**. Then, set **Scope** to that workspace.
7070* **Create key is missing or disabled, or the Console says you don’t have permission:** Ask an organization admin. They can change your role, change the key creation settings, or create a service account key for your workload.
7171 
7272## Create and use a key
from line 389
389389 
390390## Keep a key safe
391391 
392Store API keys in a secrets manager, rotate them on a schedule, and disable or delete any key you think has leaked. The [API keys](https://platform.claude.com/settings/keys) page in the Claude Console has two ways to stop a key:
392Store API keys in a secrets manager, rotate them on a schedule, and disable or delete any key you think has leaked. The [API keys](https://platform.claude.com/keys/api-keys) page in the Claude Console has two ways to stop a key:
393393 
394394* **Disable** can be undone: **Re-enable** turns the key back on. You can’t re-enable a key while **Allow creating new API keys** is turned off (see [Who can create which key](https://platform.claude.com/docs/en/manage-claude/api-keys#who-can-create-which-key)).
395395* **Delete** is permanent.
from line 408
408408* **Code that you run on your own computer:** Use CLI sign-in. See the Authentication page’s [Sign in with the CLI](https://platform.claude.com/docs/en/manage-claude/authentication#sign-in-with-the-cli) section.
409409* **Other code:** Use a personal or service account key.
410410 
411If you need a new service account, an organization admin creates it on the [Service accounts](https://platform.claude.com/settings/service-accounts) page in the Claude Console. The admin also adds it to the workspace.
411If you need a new service account, an organization admin creates it on the [Service accounts](https://platform.claude.com/keys/service-accounts) page in the Claude Console. The admin also adds it to the workspace.
412412 
413413To replace a workspace key with a personal or service account key:
414414 
from line 415
4154151. **Decide the key type.** This page’s [Key types](https://platform.claude.com/docs/en/manage-claude/api-keys#key-types) section says which to use.
4164162. **Create the new key.** Scope it to the old key’s workspace unless the integration needs more than one workspace. For a service account key, ask an organization admin to create it.
4174173. **Deploy the new key.** Replace the old key wherever the integration reads it, usually the `ANTHROPIC_API_KEY` environment variable or a secrets manager entry. For a key scoped to the organization, also send the `anthropic-workspace-id` header (see [Select a workspace](https://platform.claude.com/docs/en/manage-claude/api-keys#select-a-workspace)).
4184. **Retire the old key.** Disable the workspace key on the [API keys](https://platform.claude.com/settings/keys) page in the Claude Console. Confirm that requests still succeed, then delete it.
4184. **Retire the old key.** Disable the workspace key on the [API keys](https://platform.claude.com/keys/api-keys) page in the Claude Console. Confirm that requests still succeed, then delete it.
419419 
420420## Manage keys with the Admin API
421421 
422422Organization admins who automate key management can use the endpoints in the [Admin API reference](https://platform.claude.com/docs/en/api/organization), such as [List API Keys](https://platform.claude.com/docs/en/api/organization/api_keys/list) and [Retrieve API Key](https://platform.claude.com/docs/en/api/organization/api_keys/retrieve). For the credentials these endpoints accept, see [Admin API authentication](https://platform.claude.com/docs/en/manage-claude/admin-api#authentication). To get a Console Admin API key, 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).
423423 
424These endpoints return a partly hidden hint of a key’s secret, never the secret itself. To get a key, create one on the [API keys](https://platform.claude.com/settings/keys) page in the Claude Console.
424These endpoints return a partly hidden hint of a key’s secret, never the secret itself. To get a key, create one on the [API keys](https://platform.claude.com/keys/api-keys) page in the Claude Console.
425425 
426426## Special cases
427427 
Feedback