---
title: "Rotate a public key. Normal rotation requires proof of the current key; compromise recovery rotates first and resumes only from suspended state."
method: POST
path: "/auth/agents/proof/key-rotate"
tags: ["agent_identity"]
---

# Rotate a public key. Normal rotation requires proof of the current key; compromise recovery rotates first and resumes only from suspended state.

`POST /auth/agents/proof/key-rotate`

## Request

- Base URL: `https://obeliskgate.com`
- URL: `https://obeliskgate.com/auth/agents/proof/key-rotate`
- Auth: API key in cookie `obelisk_session`

## Response `200`

Success.

## Other responses

- `default`: Error — { ok:false, reason:<code>, message?:<human> } on failures; HTTP status mirrors it.

---

[API](https://skmtc.dev/obeliskgate/apis/obelisk-api.md) · [All operations](https://skmtc.dev/obeliskgate/apis/obelisk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/obeliskgate/apis/obelisk-api/revisions/b99b2069699b?raw)
