Skip to main content

Rotate API key

POST 

/v1/api_keys/:id/rotate

Issues a successor key (same name and settings) and keeps the previous one working for grace_days days (default 7, max 30). Only an active key rotates (409). The new secret is returned ONCE.

Request​

Responses​

The successor key with its secret in key, and previous_key with the grace period of the old one.