cURL
curl "https://api.anthropic.com/v1/organizations/api_keys/apikey_01Rj2N8SVvo6BePZj99NhmiT" \
--header "anthropic-version: 2023-06-01" \
--header "content-type: application/json" \
--header "x-api-key: $ANTHROPIC_ADMIN_KEY"{
"created_at": "2023-11-07T05:31:56Z",
"created_by": {
"id": "<string>",
"type": "<string>"
},
"id": "<string>",
"name": "<string>",
"partial_key_hint": "sk-ant-api03-R2D...igAA",
"type": "api_key",
"workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
}取得 API 金鑰
GET
/
v1
/
organizations
/
api_keys
/
{api_key_id}
cURL
curl "https://api.anthropic.com/v1/organizations/api_keys/apikey_01Rj2N8SVvo6BePZj99NhmiT" \
--header "anthropic-version: 2023-06-01" \
--header "content-type: application/json" \
--header "x-api-key: $ANTHROPIC_ADMIN_KEY"{
"created_at": "2023-11-07T05:31:56Z",
"created_by": {
"id": "<string>",
"type": "<string>"
},
"id": "<string>",
"name": "<string>",
"partial_key_hint": "sk-ant-api03-R2D...igAA",
"type": "api_key",
"workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
}Documentation Index
Fetch the complete documentation index at: https://docs.claude.com/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Path Parameters
ID of the API key.
Response
Successful Response
RFC 3339 datetime string indicating when the API Key was created.
Example:
"2024-10-30T23:58:27.427722Z"
The ID and type of the actor that created the API key.
Show child attributes
Show child attributes
Example:
{
"id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
"type": "user"
}ID of the API key.
Example:
"apikey_01Rj2N8SVvo6BePZj99NhmiT"
Name of the API key.
Example:
"Developer Key"
Partially redacted hint for the API key.
Example:
"sk-ant-api03-R2D...igAA"
Status of the API key.
Available options:
active, inactive, archived Example:
"active"
Object type.
For API Keys, this is always "api_key".
Available options:
api_key Allowed value:
"api_key"ID of the Workspace associated with the API key, or null if the API key belongs to the default Workspace.
Example:
"wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
Was this page helpful?
⌘I