API Keys

Rotate Api Key

Rotate an API key: invalidate the old secret and issue a new one atomically, preserving the key's id, name, and scopes.

The new plaintext key is returned once in this response.

post/api/v1/api-keys/{key_id}/rotate

Request

  • Base URL
    https://api.neosapien.xyz (the document declares no server; this is the origin it was published from)
  • URL
    https://api.neosapien.xyz/api/v1/api-keys/{key_id}/rotate
  • Auth
    HTTP bearer

Path parameters

key_idstring required

Response

Successful Response

api_keystring required
messagestring

Changes

No recorded changes to this operation across all 17 revisions of this API.