---
title: "Regenerate Key"
method: POST
path: "/v1/auth/regenerate-key"
tags: ["Authentication", "auth"]
---

# Regenerate Key

`POST /v1/auth/regenerate-key`

## Request

- Base URL: `https://api.candlefeed.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.candlefeed.ai/v1/auth/regenerate-key`
- Auth: none declared

Replace the current user's API key. One transaction holds the user row (FOR UPDATE), so concurrent
rotations run one after another and exactly one dashboard key stays active; the revoked keys' cached auth
records are then replaced with tombstones, so they stop working at once. Needs a session issued after the
email was verified.

## Response `200`

Successful Response

- unknown

---

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