Directories
Rotate a directory's API key
Changed onGenerates a new API key for the directory and returns it in the api_key field. This is the only way to obtain the key after creation, so make sure to update it in your identity provider. The previous key remains valid for a short grace period before it expires.
post/directories/{directory_id}/rotate_api_key
Request
- Base URLhttps://api.clerk.com/v1
- URLhttps://api.clerk.com/v1/directories/{directory_id}/rotate_api_key
- AuthHTTP bearer
Path parameters
directory_idstring required
The ID of the directory whose API key to rotate
Response
A directory
Changes
- info
added the required property
to the response with the status
- info
- info
added the non-success response with the status
- info