๐Ÿ“„ claude/api/admin-api/apikeys/list-api-keys

File: list-api-keys.md | Updated: 11/15/2025

Source: https://docs.claude.com/en/api/admin-api/apikeys/list-api-keys

Agent Skills are now available! Learn more about extending Claude's capabilities with Agent Skills .

Claude Docs home pagelight logodark logo

US

English

Search...

Ctrl K

Search...

Navigation

API Keys

List API Keys

Home Developer Guide API Reference Model Context Protocol (MCP) Resources Release Notes

cURL

cURL

Copy

curl "https://api.anthropic.com/v1/organizations/api_keys" \
  --header "anthropic-version: 2023-06-01" \
  --header "content-type: application/json" \
  --header "x-api-key: $ANTHROPIC_ADMIN_KEY"

200

4XX

Copy

{
  "data": [\
    {\
      "created_at": "2024-10-30T23:58:27.427722Z",\
      "created_by": {\
        "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",\
        "type": "user"\
      },\
      "id": "apikey_01Rj2N8SVvo6BePZj99NhmiT",\
      "name": "Developer Key",\
      "partial_key_hint": "sk-ant-api03-R2D...igAA",\
      "status": "active",\
      "type": "api_key",\
      "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"\
    }\
  ],
  "first_id": "<string>",
  "has_more": true,
  "last_id": "<string>"
}

GET

/

v1

/

organizations

/

api_keys

cURL

cURL

Copy

curl "https://api.anthropic.com/v1/organizations/api_keys" \
  --header "anthropic-version: 2023-06-01" \
  --header "content-type: application/json" \
  --header "x-api-key: $ANTHROPIC_ADMIN_KEY"

200

4XX

Copy

{
  "data": [\
    {\
      "created_at": "2024-10-30T23:58:27.427722Z",\
      "created_by": {\
        "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",\
        "type": "user"\
      },\
      "id": "apikey_01Rj2N8SVvo6BePZj99NhmiT",\
      "name": "Developer Key",\
      "partial_key_hint": "sk-ant-api03-R2D...igAA",\
      "status": "active",\
      "type": "api_key",\
      "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"\
    }\
  ],
  "first_id": "<string>",
  "has_more": true,
  "last_id": "<string>"
}

Headers

โ€‹

x-api-key

string

required

Your unique Admin API key for authentication.

This key is required in the header of all Admin API requests, to authenticate your account and access Anthropic's services. Get your Admin API key through the Console .

โ€‹

anthropic-version

string

required

The version of the Claude API you want to use.

Read more about versioning and our version history here .

Query Parameters

โ€‹

before_id

string

ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.

โ€‹

after_id

string

ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.

โ€‹

limit

integer

default:20

Number of items to return per page.

Defaults to 20. Ranges from 1 to 1000.

Required range: 1 <= x <= 1000

โ€‹

status

enum<string> | null

Filter by API key status.

Available options:

active,

inactive,

archived

โ€‹

workspace_id

string | null

Filter by Workspace ID.

โ€‹

created_by_user_id

string | null

Filter by the ID of the User who created the object.

Response

200

application/json

Successful Response

โ€‹

data

ApiKey ยท object[]

required

Show child attributes

โ€‹

first_id

string | null

required

First ID in the data list. Can be used as the before_id for the previous page.

โ€‹

has_more

boolean

required

Indicates if there are more results in the requested page direction.

โ€‹

last_id

string | null

required

Last ID in the data list. Can be used as the after_id for the next page.

Was this page helpful?

YesNo

Get API Key Update API Keys

Assistant

Responses are generated using AI and may contain mistakes.