v1
latestOpenAPI 3.0.22026-08-062794201004.1 KBApi Keys
Rotate API Key
Rotate the secret of a given API key under an organization.
Organization Owners can rotate any API key inside the Organization.
To learn more, see Organization, Project, and Database Access Overview.
post/v4/organizations/{organizationId}/apikeys/{ApiKeyId}/rotate
Request body
Example request
{
"secret": "jawuXxSXYaWdr@uSSphmV1aJ4siKKcHHXnhhtbE8h8H!O2nbIQJ62M40stDATiBp"
}Response
Successfully rotated the API key.
Example response
{
"secretKey": "<YOUR_SECRET_KEY_HERE>",
"token": "QktxVUtFU1dKV1FlMmxwbzJBYXdnTVlRemFZdlRDZTg6eFh4dzU4JUYjekJVYWZPY3lqdUwwYkJoTjZSTmlzRWFIRHF0b1h4a08yazBpQjJ1bms1OW4yTUhAenRib3IhVQ=="
}