---
title: "Revoke the calling key and return a replacement on the same plan, usage meter and billing mode"
method: POST
path: "/v1/keys/rotate"
---

# Revoke the calling key and return a replacement on the same plan, usage meter and billing mode

`POST /v1/keys/rotate`

## Request

- Base URL: `https://shotkiln.com`
- URL: `https://shotkiln.com/v1/keys/rotate`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Response `200`

New key (shown once)

## Other responses

- `401`: Invalid or revoked API key
- `409`: already_rotated

## Changes

- **2026-10-20** `8123a05b6719`: 3 info
  - the endpoint scheme security `ApiKeyHeader` was added to the API
  - the endpoint scheme security `Bearer` was added to the API
  - added the non-success response with the status `409`

[Operation history](https://skmtc.dev/shotkiln/apis/shotkiln-api/changes/v1/keys/rotate/post.md)

---

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