---
title: "Rotate current agent API key"
method: POST
path: "/api/agent/rotate-key"
tags: ["Agent"]
---

# Rotate current agent API key

`POST /api/agent/rotate-key`

## Response `200`

New key generated

- RotateKeyResponse
  - `agent_id` string, uuid, required
  - `agent_api_key` string, required
  - `message` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `429` — Rate limit exceeded
- `500` — Internal server error

## Changes

- **2026-03-01** `2df2182b5901` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/citedy/apis/citedy-agent-api/changes/api/agent/rotate-key/post.md)

---

[API](https://skmtc.dev/citedy/apis/citedy-agent-api.md) · [All operations](https://skmtc.dev/citedy/apis/citedy-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/citedy/citedy-agent-api/revisions/b5785d3fe446/schema)
