Rotate API Secret

/data/v2/projects/{projectToken}/access-keys/rotate

Rotate the API Secret.

Use to generate a new API Secret. Note that after rotating, the old API Secret is still accepted for the next 24 hours. During this grace period, both old and new secrets are accepted for authentication, to track data and access API.

Definition

Authorization

In this API call you can use this type of authorization accesses:

Available access typePermissions needed
Private accessNone

Please bear in mind that public access cannot be used. Private access will rotate the secret that was used for the request only.

Read more about:

Path parameters

ParameterTypeDescriptionRequired
projectTokenstringThe ID of your project.required

Headers

ParameterTypeDescriptionRequired
authorizationstringUsed for authentication. Read more in the Authentication section.required
content-typestringapplication/jsonrequired

🚧

Rotating API Secret twice

Please note that it is not possible to have more than two API Secrets for one API Key ID. This means that during the grace period when both the old and new API Secret are working, rotating the newly created one will result in revoking the old API Secret right away. Rotating the old key twice will result in an error.

Language
Click Try It! to start a request and see the response here!