List API Keys
Query parameters
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.
Number of items to return per page.
Defaults to 20. Ranges from 1 to 1000.
Number of items to return per page.
Defaults to 20. Ranges from 1 to 1000.
Filter by API key status.
Filter by API key status.
Filter by Workspace ID.
Filter by Workspace ID.
Filter by the ID of the User who created the object.
Filter by the ID of the User who created the object.
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.
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.
Response
Successful Response
Example response
{
"data": [
{
"created_at": "2024-10-30T23:58:27.427722Z",
"created_by": {
"id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
"type": "user"
},
"expires_at": "2024-10-30T23:58:27.427722Z",
"id": "apikey_01Rj2N8SVvo6BePZj99NhmiT",
"name": "Developer Key",
"partial_key_hint": "sk-ant-api03-R2D...igAA",
"principal": {
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
},
"scope": {
"workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
},
"status": "active",
"workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
}
]
}Changes
Changed in 1 of the 68 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○