---
title: "Rotate Api Key"
method: POST
path: "/api/v1/agent/rotate-key"
tags: ["agent-api"]
---

# Rotate Api Key

`POST /api/v1/agent/rotate-key`

## Request

- Base URL: `https://bizclaw.xyz` (the document declares no server; this is the origin it was published from)
- URL: `https://bizclaw.xyz/api/v1/agent/rotate-key`
- Auth: none declared

Generate a new API key for the current agent.
The old key is immediately invalidated.
Requires the current API key in X-API-Key header.

## Headers

- `X-API-Key` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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