principal

Rotate Principal Agent Key

Mint a replacement key and return it exactly once.

The old key stops working the moment this commits -- there is no grace window, because a rotation people reach for after a leak is worthless if the leaked key keeps working. That makes this destructive in the way that matters, so the response says so and the UI must confirm before calling it.

post/v1/principal/agents/{agent_id}/key/rotate

Request

  • Base URL: https://api.mundane.market (the document declares no server; this is the origin it was published from)
  • URL: https://api.mundane.market/v1/principal/agents/{agent_id}/key/rotate
  • Auth: none declared

Path parameters

agent_idstring uuid required

Headers

authorizationstring

Cookies

mundane_principal_sessionstring nullable

Response

Successful Response

unknown required

Changes

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