# Sync a document from its source

URL: /en/docs/api/v1/documents/id/source-sync/post
Last Updated: 2026-07-30T21:15:30.541Z

## Description
No description available.

## Available Actions
- Execute POST request
- View request parameters
- View response schema
- Get code examples
- Navigate to related topics
- View step-by-step instructions
- Get best practices

## Content
### POST /api/v1/documents/{id}/source-sync

**Sync a document from its source**

Re-sync the document content from the connected source provider. If versioning is enabled, a new draft version is created. Supported source vendors: `google-docs` / `notion` / `confluence`.

**Authentication:** Bearer token (`Authorization: Bearer <token>`)

**Path parameters:**

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string (uuid) | Yes | Document ID |

**Request body** (`application/json`):

- `providerConfigKey` (enum: google-docs | notion | confluence): Optional provider configuration key (defaults to the document source). Supported values: `google-docs`, `notion`, `confluence`.

**Responses:**

- `200` - Source sync completed successfully
  - `success` (boolean)
  - `data` (object)
    - `versionId` (string): Draft version ID when versioning is enabled
    - `fileId` (string): File ID created/updated during sync
- `400` - Bad request (for example, unsupported source or invalid Confluence source ID)
  - `error` (string, required)
  - `code` (string)
  - `details` (object)
  - `data` (object)
- `401` - Unauthorized
  - `error` (string, required)
  - `code` (string)
  - `details` (object)
  - `data` (object)
- `403` - Not authorized to sync this document or source asset
  - `error` (string, required)
  - `code` (string)
  - `details` (object)
  - `data` (object)
- `404` - Document, integration, or upstream source not found
  - `error` (string, required)
  - `code` (string)
  - `details` (object)
  - `data` (object)
- `413` - File too large - NotionFileTooLargeError
  - `error` (string, required)
  - `code` (string)
  - `details` (object)
  - `data` (object)
- `502` - Upstream provider failure while syncing source content
  - `error` (string, required)
  - `code` (string)
  - `details` (object)
  - `data` (object)

**Code samples:**

cURL (Confluence):

```bash
curl -X POST "https://app.orbiqhq.com/api/v1/documents/3fa85f64-5717-4562-b3fc-2c963f66afa6/source-sync" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"providerConfigKey":"confluence"}'

```

cURL (Notion):

```bash
curl -X POST "https://app.orbiqhq.com/api/v1/documents/3fa85f64-5717-4562-b3fc-2c963f66afa6/source-sync" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"providerConfigKey":"notion"}'

```

cURL (Google Docs):

```bash
curl -X POST "https://app.orbiqhq.com/api/v1/documents/3fa85f64-5717-4562-b3fc-2c963f66afa6/source-sync" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"providerConfigKey":"google-docs"}'

```

