Skip to main content

Rotate an API key

POST 

/v1/api-keys/:api_key_id:rotate

Issues a new secret for the same key record (same id, scope and capabilities) and invalidates the previous secret. The new raw key is returned only in this response. Refused for a connected app, like creation: rotation returns a raw secret for a key the caller need never have held, so it reaches the same place by another door.

Request​

Responses​

Rotated. The new raw key value is only returned here.