Delete External Key
api/beta/organization/external_keys/delete
Nearest release: v2.1.247, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/beta/organization/external_keys/delete New page · 43 lines, new page
# Delete External Key ## Path parameters ## Returns ## Example ### Response (200)
A whole new page. There's nothing to diff it against, so here is what it says.
# Delete External Key
**DELETE** `/v1/organizations/external_keys/{external_key_id}`
Delete an external key config.
The request is rejected if any workspace still references this config.
## Path parameters
- `external_key_id: string`
ID of the External Key.
maxLength: 2048
## Returns
- `id: string`
ID of the deleted External Key.
- `type: "external_key_deleted"`
default: external_key_deleted
## Example
```bash
curl https://api.anthropic.com/v1/organizations/external_keys/$EXTERNAL_KEY_ID \
-X DELETE \
-H 'anthropic-version: 2023-06-01' \
-H "X-Api-Key: $ANTHROPIC_API_KEY"
```
### Response (200)
```json
{
"id": "ekey_01AbCdEfGhIjKlMnOpQrStUv",
"type": "external_key_deleted"
}
```