---
title: "Rotate Key Endpoint"
method: POST
path: "/api/v1/account/keys/{key_id}/rotate"
tags: ["account"]
---

# Rotate Key Endpoint

`POST /api/v1/account/keys/{key_id}/rotate`

## Request

- Base URL: `https://api.billcommons.org`
- URL: `https://api.billcommons.org/api/v1/account/keys/{key_id}/rotate`
- Auth: none declared

## Path parameters

- `key_id` string, uuid, required

## Response `200`

Successful Response

- KeyRevealResponse
  - `key` string, required
  - `warning` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/billcommons/apis/bill-commons-api.md) · [All operations](https://skmtc.dev/billcommons/apis/bill-commons-api/llms.txt) · [OpenAPI document](https://skmtc.dev/billcommons/apis/bill-commons-api/revisions/bfb8cd50a317?raw)
