---
title: "Activate Key Rotation"
method: POST
path: "/v1/key-rotation/activate"
---

# Activate Key Rotation

`POST /v1/key-rotation/activate`

## Request

- Base URL: `https://api.namailu.cz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.namailu.cz/v1/key-rotation/activate`
- Auth: HTTP bearer

Dokonči pouze dashboardem připravenou rotaci pomocí NOVÉHO tokenu.

Úspěšná autentizace novým tokenem je potvrzení, že ho agent skutečně převzal.
Ve stejné transakci se nejdřív revokuje starý klíč a potom se náhrada aktivuje.
Ztracená odpověď proto nevadí: klient už drží právě ten token, který zůstal platný.

## Response `200`

Successful Response

- KeyRotationActivateResponse
  - `status` string, required
  - `key_prefix` string, required
  - `replaced_prefix` string, required
  - `inbox_id` string, nullable, required

## Other responses

- `401`: Missing, invalid or unproved API credential.
- `403`: Credential lacks the required scope or policy permission.
- `422`: Stable validation or policy rejection.
- `500`: Sanitized internal error.

---

[API](https://skmtc.dev/namailu/apis/domovnik-agent-api.md) · [All operations](https://skmtc.dev/namailu/apis/domovnik-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/namailu/apis/domovnik-agent-api/revisions/6342d1e31643?raw)
