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

# Revoke API Key

> Permanently revoke an API key

Permanently revokes an API key. Any requests made with this key after revocation will receive a `401` response. This action cannot be undone.

## Auth

<Note>Requires a valid Bearer token. User must be a member of the organization.</Note>

## Path Parameters

<ParamField path="orgId" type="string" required>
  Organization identifier.
</ParamField>

<ParamField path="id" type="string" required>
  API key identifier.
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Always `true` on success.
</ResponseField>

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

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

## Example

```bash theme={null}
curl -X DELETE https://api.bunship.com/api/v1/organizations/org_cld2abc123def456/api-keys/key_abc123 \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."
```
