## DELETE /v1/account/api-keys/{id}

Revoke an API key. Requests made with it fail from then on. Only a GitHub administrator of your organization can revoke a key.

Required permissions: delete:tokens.
API key: Requires a CLI user token belonging to an account administrator.
CLI user token: Requires an account administrator.
Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
Higher permission levels include lower levels: read < write < delete.

### Response

```text
{
  "ok": bool
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.account.api_keys.revoke("...")
print(result)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const result = await client.account.apiKeys.revoke('...');
console.log(result);
```

### cURL

```bash
curl -X DELETE "https://api.ellipsis.dev/v1/account/api-keys/{id}" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```

### Response schema

```json
{
  "properties": {
    "ok": {
      "default": true,
      "type": "boolean"
    }
  },
  "type": "object"
}
```
