> ## Documentation Index
> Fetch the complete documentation index at: https://docs.payra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Syncing Data

> How to use the historical sync endpoints.

The historical sync endpoints allow you to trigger a manual sync for a specific connection and check the status of a sync job.

### Trigger a Historical Sync

To trigger a historical sync, you need to send a `POST` request to the `/back-office/sync/historical` endpoint. The request body should include the `connectionId` and the date range for the sync.

<Card title="Trigger Historical Sync" icon="sync" href="/api-reference/sync/trigger-historical-sync">
  Learn more about triggering a sync in the API reference.
</Card>

### Get Sync Status

To get the status of a sync job, you need to send a `GET` request to the `/back-office/sync/historical/{connectionId}` endpoint.

<Card title="Get Sync Status" icon="magnifying-glass" href="/api-reference/sync/get-sync-status">
  Learn more about getting the sync status in the API reference.
</Card>
