Rotate an API key secret
API keys
Rotate an API key secret
Generates a new 32-byte base64url secret for the key and invalidates the old secret immediately; name, expiry, and access are unchanged. The response contains the new plaintext secret exactly once. Revoked or expired keys cannot be rotated (409).
POST
Rotate an API key secret
Authorizations
Cactal API key. Create one in the dashboard or via POST /apiKeys. The plaintext key is shown once at creation.
Path Parameters
Minimum string length:
1Response
The key metadata and the new plaintextKey secret. Store the secret now; it is never shown again.