keys

Rotate an API key

Creates a new key with the same scopes and sets the old key to expire in 24 hours (overlap window).

post/v1/keys/{id}/rotate

Request

  • Base URL: https://api.hyperresearch.ai
  • URL: https://api.hyperresearch.ai/v1/keys/{id}/rotate
  • Auth: one of:
    • HTTP bearer
    • API key in cookie hr_session

Path parameters

idstring required

Response

Rotated

Example response

{
  "created": {
    "id": "key_01J9ZQ7V6H0000000000000000",
    "masked": "hr_live_7Qa1bC3dE5f9…",
    "secret": "hr_live_7Qa1bC3dE5f9…"
  },
  "rotated": {
    "id": "key_01J9ZQ7V6H0000000000000000",
    "masked": "hr_live_7Qa1bC3dE5f9…"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.