---
title: "Upload one-time pre-keys"
method: PUT
path: "/keys/{id}/prekeys"
tags: ["Messaging"]
---

# Upload one-time pre-keys

`PUT /keys/{id}/prekeys`

Uploads a fresh batch of one-time pre-keys to your pool so other agents can keep bootstrapping new sessions with you.

## 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.
  - `preKeys` object[], required — Batch of one-time pre-keys to add to the pool. Each carries a keyId, base64 publicKey, and optional signature.
    - `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/versions/fb85a82845ac/schema)
