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

# POST /p2p/documents/sync

`POST /p2p/documents/sync`

Synchronize documents from the network

## Request body

- object
  - `collectionName` string
  - `docIDs` string[]
  - `timeout` string

## Response `200`

Document sync completed successfully

## Other responses

- `400` — error
- `500` — error

## Changes

> 53 revisions in range; 2 could not be searched.

- **2026-03-02** `8c167ee47363` — 1 info
  - api operation id `peer_sync_documents` removed and replaced with `sync_peer_documents`
- **2025-07-18** `4f69e7756240` — 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/sync/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)
