/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 type | Permissions needed |
---|---|
Private access | None |
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
Parameter | Type | Description | Required |
---|---|---|---|
projectToken | string | The ID of your project. | required |
Headers
Parameter | Type | Description | Required |
---|---|---|---|
authorization | string | Used for authentication. Read more in the Authentication section. | required |
content-type | string | application/json | required |
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.