Org

Rotate a grant key (owner-only)

Owner-only. Revokes this key and mints a fresh one against the same grant with the same kind/scope/cap/expiry. The new key.token (run402_agent_key) is returned ONCE.

post/projects/v1/{project_id}/grant-keys/{key_id}/rotate

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/projects/v1/{project_id}/grant-keys/{key_id}/rotate
  • Auth: API key in header SIGN-IN-WITH-X

Path parameters

project_idstring required
key_idstring uuid required

Headers

SIGN-IN-WITH-Xstring required

SIWX auth header — base64-encoded JSON payload containing a signed CAIP-122 (EIP-4361) message. See https://docs.x402.org/extensions/sign-in-with-x.

Response

Grant key rotated

status'rotated'
replaced_key_idstring uuid
grant_idstring uuid

Changes

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