---
title: "Rotate agent API key"
method: POST
path: "/v1/agents/{agent_id}/rotate-key"
tags: ["Agents"]
---

# Rotate agent API key

`POST /v1/agents/{agent_id}/rotate-key`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/agents/{agent_id}/rotate-key`
- Auth: HTTP bearer

## Path parameters

- `agent_id` string, uuid, required

## Response `200`

New API key returned

- AgentKeyRotatedResponse
  - `api_key` string

## Other responses

- `404`: Resource not found

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
