# API keys

Create, rotate and revoke organisation API keys.

Base URL: https://api.audiobly.com

### POST /v1/api-keys/{key_id}/rotate

Rotate API key

Mint a fresh secret for an existing key: replace its hash + prefix, keep the same id,
scopes and expiry. The previous secret stops working immediately (its hash is gone).

Scope: org_manage

Parameters:

- `key_id` (path, string (uuid), required)

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.
