> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DELETE /api/api-keys/{id} — revoke an API key

> Revoke an API key by its identifier. The key stops working immediately; subsequent requests using it return 401 from the gateway.

Revoke an API key by its identifier. The key stops working immediately: subsequent requests using it return `401` from the gateway and the model download endpoints. This action cannot be undone.

**Method:** `DELETE` **Path:** `/api/api-keys/{id}` **Auth:** Session Bearer

## Path parameters

<ParamField path="id" type="string" required>
  Key identifier returned from `POST /api/api-keys` or `GET /api/api-keys`.
</ParamField>

## Response

`204 No Content`.

## Example

```bash theme={null}
curl -X DELETE \
  -H "Authorization: Bearer eyJhbGciOi..." \
  https://ariacompute.com/api/api-keys/key_01H...
```

## Errors

| Status | Meaning                                     |
| ------ | ------------------------------------------- |
| `401`  | Missing or invalid session token.           |
| `404`  | No key with that ID on the current account. |


## Related topics

- [API keys for gateway and model access](/concepts/api-keys.md)
- [Create, rotate, and revoke your API keys](/guides/manage-api-keys.md)
- [GET /api/api-keys — list your API keys](/api-reference/api-keys/list.md)
- [POST /api/api-keys — create a new API key](/api-reference/api-keys/create.md)
- [API authentication: session tokens and API keys](/api-reference/authentication.md)
