Delete API Key
Remove an API key by its name.
Authentication
| Scheme | Type | Details |
|---|---|---|
JSON web token (JWT) or API key | Bearer token | Authorization header · Use a JWT token obtained via an OAuth2/OIDC login workflow or an API key obtained via the `/v0/api-keys` endpoint. |
Parameters
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
api_key_name | string | Yes | Unique API key name |
Response
API key deleted successfully
curl -X DELETE '/v0/api_keys/{api_key_name}' \
-H 'Authorization: Bearer YOUR_TOKEN'API key with that name does not exist
{
"message": "Unknown API key 'non-existent-api-key'",
"error_code": "UnknownApiKey",
"details": {
"name": "non-existent-api-key"
}
}