Project HermesHermes Docs

Rotate API Key

Rotate an API key (generates a new key, invalidates the old one)

Rotate API Key

  • id (string) (required) — The API key ID
curl -X POST -H "Authorization: Bearer your_jwt_token" \
  https://api.hermes.camie.ai/api/keys/key-uuid/rotate

Response

{
  "success": true,
  "data": {
    "id": "key-uuid",
    "key": "hermes_new_key_value...",
    "previousKeyInvalidated": true
  }
}

On this page