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

# Revoke API Key

> Revoke an API key, immediately preventing further use

## Overview

Revokes an API key by soft-deleting it (setting `is_active` to false). The key is immediately invalidated and any subsequent requests using it will be rejected.

**Auth:** Requires JWT token (`Authorization: Bearer <token>`).

## Path Parameters

<ParamField path="key_id" type="string" required>
  The API key UUID to revoke
</ParamField>

## Response

<ResponseField name="message" type="string">
  Confirmation message
</ResponseField>

## Example

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.danubeai.com/v1/api-keys/abc123" \
    -H "Authorization: Bearer YOUR_JWT_TOKEN"
  ```

  ```python Python SDK theme={null}
  from danube import DanubeClient

  client = DanubeClient(api_key="dk_...")
  client.api_keys.revoke("abc123")
  ```

  ```typescript TypeScript SDK theme={null}
  import { DanubeClient } from '@danubeai/sdk';

  const client = new DanubeClient({ apiKey: 'dk_...' });
  await client.apiKeys.revoke('abc123');
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "message": "API key revoked successfully"
  }
  ```
</ResponseExample>
