Skip to main content
POST
/
orgs
/
{id}
/
rotate-key
cURL
curl --request POST \
  --url https://api.useanima.sh/v1/orgs/{id}/rotate-key \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "masterKey": "<string>"
}

Authorizations

Authorization
string
header
required

JWT Bearer token obtained from authentication. Pass as: Authorization: Bearer

Path Parameters

id
string
required

Unique organization identifier

Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$

Body

application/json

Master key rotation parameters

Response

200 - application/json

OK

Rotated master key credentials

masterKey
string
required

Newly generated master API key