---
title: "Revoke API key"
---

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

# Revoke API key

Path: CloudRaker Paperwork API › Account

`DELETE /api-keys/{id}`

Revokes an API key by `:id` path parameter after confirming it belongs to the caller's organization. Authorization: organization administrators only. Returns 204 on success; 404 if the key does not exist or is not in this org.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `id` (`deleteApiKey.path.id`; string, required)

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.cloudraker.com/api-keys/<id>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/api-keys/<id>';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/api-keys/<id>"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 204

API key revoked (empty body).


Source: https://docs.cloudraker.com/paperwork/api/account/delete-api-key/index.md
