Skip to main content
GET
/
api
/
syncs
/
{syncId}
Get Sync Status
curl --request GET \
  --url https://sync.useparagon.com/api/syncs/{syncId} \
  --header 'Authorization: Bearer <token>'
{
  "status": "INITIALIZING",
  "credentialId": "<string>",
  "summary": {
    "totalRecords": 123,
    "syncedRecordsCount": 123,
    "lastSyncedAt": "2023-11-07T05:31:56Z",
    "latestCursor": "<string>"
  },
  "reason": "Credential ID [id] is no longer valid or has been deleted."
}
Once you have a Sync enabled for a particular Connected User, you can start to poll its status. You will receive fields for:
  • status — This tells you the current state of Sync activity.
    • INITIALIZING: The Sync has just been created and is pending its first run.
    • ACTIVE: The Sync is actively fetching new data.
    • IDLE: The Sync has completed and is watching for updates to synced data.
      • Check summary.lastSyncedAt to see if the sync has successfully completed.
    • DISABLED: The Sync has been paused temporarily by the Disable a Sync endpoint.
    • ERRORED: The Sync has been suspended due to an error. Check Webhook Events for additional error details.
  • summary — Metrics on the sync progress and last seen record timestamps.

Authorizations

Authorization
string
header
required

Paragon User Token. Add to the Authorization header of your requests.

Path Parameters

syncId
string
required

ID of the sync to get the status of

Response

Sync status

status
enum<string>

Current state of Sync activity. Possible values:

  • INITIALIZING: The Sync has just been created and is pending its first run.
  • ACTIVE: The Sync is actively fetching new data.
  • IDLE: The Sync has completed and is watching for updates to synced data.
    • Check summary.lastSyncedAt to see if the sync has successfully completed.
  • DISABLED: The Sync has been paused temporarily by the Disable a Sync endpoint.
  • ERRORED: The Sync has been suspended due to an error. Check Webhook Events for additional error details.
Available options:
INITIALIZING,
ACTIVE,
IDLE,
DISABLED,
ERRORED
credentialId
string

The ID of the credential used to authenticate this Sync

summary
object

Metrics on the sync progress and last seen record timestamps

reason
string

If the sync status is ERRORED, this field will be populated with a message explaining why the sync failed.

Example:

"Credential ID [id] is no longer valid or has been deleted."