---
title: "Rotate Key"
method: POST
path: "/v1/keys/rotate"
---

# Rotate Key

`POST /v1/keys/rotate`

Revoke the current active key (24-hour grace) and issue a new one. Returns the plaintext,
which is also re-revealable later via GET /v1/account (at-rest encrypted).

## Response `200`

Successful Response

- ApiKeyCreatedResponse
  - `result` string
  - `created` boolean, required
  - `org_id` string, required
  - `plaintext` string, nullable, required
  - `key` KeySummary, required
    - `prefix` string, required
    - `plaintext` string, nullable
    - `created_at` string, required
    - `last_used_at` string, nullable

---

[API](https://skmtc.net/exchangerate/apis/exchangerate-dev.md) · [All operations](https://skmtc.net/exchangerate/apis/exchangerate-dev/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/exchangerate/exchangerate-dev/revisions/0fc62e022661/schema)
