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

# Delete API Key

> Revoke an API key.

> [!WARNING]
>
> Deleting a key revokes it immediately. Any request still using it will fail.

### Headers

**authorization** `string` *required*

Your API key for authentication. Restricted keys cannot delete keys.

### Body

**key** `string` *required*

The first 14 characters of the key, as returned by [List API Keys](https://docs.bland.ai/api-v1/post/keys-list.md). Works for full-access and restricted keys.

### Response

**data** `null`

`null` on success.

**errors** `null | array`

`null` on success, or a list of errors.

### Last full-access key

While your organization has [restricted keys](https://docs.bland.ai/api-v1/post/keys-create.md#restricted-keys), it must keep at least one full-access key, because live calls and dashboard sessions depend on it. Deleting the last full-access key returns `409` with the error `LAST_FULL_ACCESS_KEY`. Delete the restricted keys first, or create another full-access key.

```json Response theme={null}
{
  "data": null,
  "errors": null
}
```

```json Last Full-Access Key theme={null}
{
  "data": null,
  "errors": [
    {
      "error": "LAST_FULL_ACCESS_KEY",
      "message": "string"
    }
  ]
}
```

***

Docs for agents: [llms.txt](https://docs.bland.ai/llms.txt)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.