# Delete API key

```http
DELETE /api-keys/{api_key_id}
```

Revoke an API key so that it can no longer authenticate; the key stays listed with status revoked.

## Parameters

| Name         | In   | Required | Description |
| ------------ | ---- | -------- | ----------- |
| `api_key_id` | path | Yes      | API key ID. |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 200    | API key deleted successfully                                                                                |
| 400    | Bad request                                                                                                 |
| 401    | Unauthorized                                                                                                |
| 403    | Forbidden                                                                                                   |
| 404    | API key not found                                                                                           |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
