v12

latestOpenAPI 3.0.3raw.githubusercontent.com2026-06-1811583196.1 KB
API Keys

Regenerate API key

Rotate an API key — issues a new secret value and immediately invalidates the previous secret. The key keeps its name, scope, role, and expiration.

The full new secret is returned once in secret. Update your secret store immediately.

post/api/v1/api-keys/{id}/regenerate

Path parameters

idstring uuid required

API key ID (UUID)

Response

API key regenerated (full secret returned once)

successboolean

Example response

{
  "data": {
    "key_prefix": "raff_17d70fcf",
    "secret": "raff_17d70fcf7e7510968a4c19279b25707f088f1cc5ad8b74210341d8e470b5bb7a"
  }
}