POST /v1/admin/keys/rotate revokes all existing tenant keys for the organization and issues a new one.
Key rotation is immediate. All previous keys (sk_ prefix) stop working as soon as the rotation completes. Update your integrations before rotating.
No request body is required.
200)| Field | Description |
|---|---|
tenantKey |
The new secret key. Save it immediately — it cannot be retrieved later. |
| Status | Error | Cause |
|---|---|---|
401 |
Missing x-tenant-key |
Header not provided |
401 |
Invalid tenant key |
Key is revoked or does not exist |
organization_api_keys for the organization have their revoked_at set to the current timestamp:::tip Key Prefixes
sk_ — Secret tenant key for admin API authenticationpk_ — Public form key for the ingestion endpoint (not affected by key rotation)
:::