---
title: "Rotate agent keypairs"
method: POST
path: "/v1/agent/rotate-keys"
tags: ["Agent Identity"]
---

# Rotate agent keypairs

`POST /v1/agent/rotate-keys`

Rotate encryption and signing keys. Old messages remain encrypted with old keys. In client-side mode, provide new public keys.

## Request body

- object
  - `signing_public_key` string — New Ed25519 public key (client-side mode)
  - `encryption_public_key` string — New X25519 public key (client-side mode)

## Response `200`

Keys rotated

## Other responses

- `401` — Invalid or missing X-Agent-Key header

---

[API](https://skmtc.net/voidly/apis/voidly-api.md) · [All operations](https://skmtc.net/voidly/apis/voidly-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voidly/voidly-api/revisions/decbe6fd40a8/schema)
