---
title: "POST /p2p/documents"
method: POST
path: "/p2p/documents"
tags: ["p2p"]
---

# POST /p2p/documents

`POST /p2p/documents`

Add peer documents

## Request body

- string[]

## Response `200`

ok

## Other responses

- `400` — error

## Changes

- **2026-03-02** `8c167ee47363` — 1 info
  - api operation id `peer_documents_add` removed and replaced with `add_peer_documents`
- **2026-02-18** `81d2174fb82c` — 1 info
  - api operation id `peer_documents_create` removed and replaced with `peer_documents_add`
- **2026-02-04** `aec0a343e55f` — 1 info
  - api operation id `peer_documents_add` removed and replaced with `peer_documents_create`
- **2025-07-16** `46fc37694485` — 1 info
  - endpoint added
- **2025-06-02** `60812f5416c5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/sourcenetwork/apis/defradb-api/changes/p2p/documents/post.md)

---

[API](https://skmtc.dev/sourcenetwork/apis/defradb-api.md) · [All operations](https://skmtc.dev/sourcenetwork/apis/defradb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sourcenetwork/defradb-api/revisions/659e79583f79/schema)
