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

# Revoke an API key

> Revoke a workspace API key immediately.

Requires an authenticated dashboard session.

<ParamField path="workspace_id" type="uuid" required>
  Workspace that owns the key.
</ParamField>

<ParamField path="key_id" type="uuid" required>
  Credential metadata identifier, not the plaintext key.
</ParamField>

## Response

Returns `204 No Content` after the credential is revoked.

<Warning>
  Revocation is immediate and can interrupt active integrations. Deploy a replacement before revoking a key during planned rotation.
</Warning>


## Related topics

- [Rotate an API key](/reference/api-keys/rotate.md)
- [List API keys](/reference/api-keys/list.md)
- [Create an API key](/reference/api-keys/create.md)
- [Authentication](/authentication.md)
- [Security model](/security.md)
