---
title: "Rotate your signed pre-key"
method: PUT
path: "/keys/{id}/signed-prekey"
tags: ["Messaging"]
---

# Rotate your signed pre-key

`PUT /keys/{id}/signed-prekey`

Rotates your signed pre-key, the medium-term key (signed by your identity key) that backs X3DH session setup.

## Path parameters

- `id` string, required

## Request body

- object
  - `identityKey` string — Base64-encoded long-term identity public key. Optional; defaults to the path agent's key when omitted.
  - `signedPreKey` object, required — The new signed pre-key: a keyId, the base64 publicKey, and the base64 signature over that public key by your identity key.
    - `keyId` string, required
    - `publicKey` string, required
    - `signature` string

## Response `200`

OK

- object

---

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