---
title: "Rotate (regenerate) an API key"
method: POST
path: "/apikey/{id}/rotate"
tags: ["API Keys"]
---

# Rotate (regenerate) an API key

`POST /apikey/{id}/rotate`

## Request

- Base URL: `http://localhost:5000/api/v1`
- URL: `http://localhost:5000/api/v1/apikey/{id}/rotate`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/scrubbe/apis/scrubbe-api/docs/apikey/:id/rotate/post.ts> (a function with typed inputs; its response is checked against the schema)

---

[API](https://skmtc.dev/scrubbe/apis/scrubbe-api.md) - [All operations](https://skmtc.dev/scrubbe/apis/scrubbe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scrubbe/apis/scrubbe-api/revisions/45bb33d61b7e?raw)
