---
title: "Start a DKIM key rotation"
method: POST
path: "/v1/domains/{id}/dkim/rotate"
tags: ["Domains"]
---

# Start a DKIM key rotation

`POST /v1/domains/{id}/dkim/rotate`

## Request

- Base URL: `https://api.agentboxd.com`
- URL: `https://api.agentboxd.com/v1/domains/{id}/dkim/rotate`
- Auth: HTTP bearer

Starts a DKIM key rotation: a new key on the other selector (`cm1` ⇄ `cm2`), listed in `records` as `dkim_next`. Signing switches as soon as its record is seen. See [Rotating the DKIM key](https://agentboxd.com/docs/custom-domains#rotating-the-dkim-key).

Permission: `domains:manage`.

## Path parameters

- `id` string, uuid, required

## Response `200`

OK

- object

## Other responses

- `4XX`: Error
- `5XX`: Error

---

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