Delete External Key
api/admin/external_keys/delete
Nearest release: v2.1.245, published an hour after 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/admin/external_keys/delete Changed · +10 / -13 lines
# Delete External Key ## Path parameters ## Returns ## Example ### Response (200) ## Delete External Key ### Path Parameters ### Returns ### Example #### Response
---- -title: Delete External Key -url: https://platform.claude.com/docs/en/api/admin/external_keys/delete ---- +# Delete External Key -## Delete External Key +**DELETE** `/v1/organizations/external_keys/{external_key_id}` -**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 +## Path parameters - `external_key_id: string` ID of the External Key. -### Returns + maxLength: 2048 +## Returns + - `id: string` ID of the deleted External Key.
- `type: "external_key_deleted"` - - `"external_key_deleted"` + default: external_key_deleted -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/organizations/external_keys/$EXTERNAL_KEY_ID \ -X DELETE \ -H 'anthropic-version: 2023-06-01' \
-H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN" ``` -#### Response +### Response (200) ```json {