---
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

---

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