Skip to main content
POST
/
client
/
api-keys
/
rotate
Rotate client API key
curl --request POST \
  --url http://localhost:8080/api/v1/client/api-keys/rotate \
  --header 'Authorization: <api-key>'
{
  "data": {
    "enabled": true,
    "id": 123,
    "key": "<string>",
    "masked_key": "<string>"
  },
  "errors": [
    {
      "condition": "format",
      "error": "Invalid email format",
      "key": "email"
    }
  ],
  "message": "Operation successful",
  "meta": {},
  "success": true
}

Authorizations

Authorization
string
header
required

JWT Bearer token or raw API key via Authorization header

Response

API key rotated

data
object
errors
object[]
message
string
Example:

"Operation successful"

meta
object
success
boolean
Example:

true