/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 any of these 2 types of authorization accesses:

Available access types

Permissions needed

Public access

None

Private access

None

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.

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