---
title: "One-click key rotation — new key, same label, old revoked"
method: POST
path: "/v1/keys/rotate"
---

# One-click key rotation — new key, same label, old revoked

`POST /v1/keys/rotate`

## Request

- Base URL: `https://agent-shield.startekenterprises.com`
- URL: `https://agent-shield.startekenterprises.com/v1/keys/rotate`
- Auth: API key in header `X-API-Key`

## Request body

- object
  - `key` string, required: Full key value to rotate

## Response `200`

Key rotated

- object
  - `api_key` string
  - `label` string
  - `rotated_from` string: Truncated old key

## Other responses

- `404`: Key not found

---

[API](https://skmtc.dev/startekenterprises/apis/agent-shield.md) · [All operations](https://skmtc.dev/startekenterprises/apis/agent-shield/llms.txt) · [OpenAPI document](https://skmtc.dev/startekenterprises/apis/agent-shield/revisions/858e23c6841d?raw)
