更新API密钥
Headers
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.
Path Parameters
ID of the API key.
Body
Name of the API key.
1 - 500
Status of the API key.
active
, inactive
, archived
Response
ID of the API key.
"apikey_01Rj2N8SVvo6BePZj99NhmiT"
Object type.
For API Keys, this is always "api_key"
.
api_key
Name of the API key.
"Developer Key"
ID of the Workspace associated with the API key, or null if the API key belongs to the default Workspace.
"wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
RFC 3339 datetime string indicating when the API Key was created.
"2024-10-30T23:58:27.427722Z"
The ID and type of the actor that created the API key.
{
"id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
"type": "user"
}
Partially redacted hint for the API key.
"sk-ant-api03-R2D...igAA"
Status of the API key.
active
, inactive
, archived
"active"