User

Rotate User Api Key

Rotate a user API key

Generates a new API key for the specified key_id. The old key will be invalidated. Returns the new API key - save it immediately as it won't be shown again.

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

Request

  • Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
  • URL: https://api.agentstack.tech/api/user/api-keys/{key_id}/rotate
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

key_idstring required

Headers

Idempotency-Keystring

Client-generated key to make mutating requests idempotent.

Response

Successful Response

object required

Changes

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