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

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Unique agent identifier

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

Body

application/json

API key rotation parameters

Response

200 - application/json

OK

Rotated API key credentials

apiKey
string
required

Newly generated API key

apiKeyPrefix
string
required

Prefix of the new API key for identification