---
title: "Rotate the current operator-issued bearer token."
method: POST
path: "/api/agent/key/rotate"
---

# Rotate the current operator-issued bearer token.

`POST /api/agent/key/rotate`

## Request

- Base URL: `https://api.coveragecat.com`
- URL: `https://api.coveragecat.com/api/agent/key/rotate`
- Auth: HTTP bearer

Invalidates the caller's current operator bearer token and returns a fresh replacement for the same operator profile without changing any registration metadata.

## Headers

- `Coverage-Cat-API-Version` 'v1'
- `Idempotency-Key` string

## Response `200`

Key rotated successfully.

- AgentKeyResponse
  - `api_key` string
  - `expires_at` string, date-time
  - `key_prefix` string
  - `message` string
  - `status` string

## Other responses

- `401`: Missing or invalid bearer token.
- `403`: Shared environment keys are not supported here.
- `429`: Too many failed authentication attempts or delegated-agent requests. Honor the Retry-After header before retrying.

---

[API](https://skmtc.dev/coveragecat/apis/coverage-cat-delegated-insurance-purchase-apis.md) · [All operations](https://skmtc.dev/coveragecat/apis/coverage-cat-delegated-insurance-purchase-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/coveragecat/apis/coverage-cat-delegated-insurance-purchase-apis/revisions/b80fe29790dc?raw)
