List sync runs
Request schema
Path parameters
The ID of the sync for which to list runs.
Query parameters
Designates which page of results to return. Always starts at 1. If 0 is specified, it defaults to 1.
Determines the number of results on each page. It can't exceed 100.
Organizes the results based on their creation time, either ascending or descending.
Header parameters
HTTP: basicAuth
HTTP AuthorizationScheme: basic
GET /api/v1/syncs/{sync_id}/sync_runs?page=SOME_NUMBER_VALUE&per_page=SOME_NUMBER_VALUE&order=SOME_STRING_VALUE HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Host: app.getcensus.com
Responses
200
The outcome of the request
An object to help you navigate the list of results.
Total records in the collection.
Records on each page.
The previous page number, or null for the first page.
The current page number.
The next page number, or null if it's the last page.
The number of the last page with records.
The list of results.
ID of this sync run.
When this sync run was created.
When this sync run was updated.
When this sync run was completed.
The error code, if any.
The error message, if any.
Details about the error, if any.
Status of the sync run. Possible values are:
- working: The sync is currently executing.
- completed: The sync finished successfully.
- failed: The sync failed during execution.
- skipped: An earlier instance of the sync is still running, so this run was skipped.
- queued: The sync run is queued for execution.
ID of the sync.
The number of records in the source object at the time of the sync run.
Number of records rejected by the destination.
The number of new or updated records found in the source.
The number of records deleted in the source.
Number of source records skipped by Census because of data quality issues.
Number of source records skipped by Census because of data quality issues (backward compatibility).
Number of records sent to the destination.
Number of records successfully sent to the destination.
When the sync run was scheduled to run.
Whether or not this was a full sync.
A short human-readable description of the trigger for this sync run
A longer human-readable description of the trigger for this sync run. For example, including the email of the user that triggered it
Whether or not this sync run was canceled.
The current step of the sync run. Available if the sync is not completed.
{ "status": "success", "pagination": { "total_records": 14, "per_page": 25, "prev_page": 1, "page": 2, "next_page": 3, "last_page": 10 }, "data": [ { "id": 94, "created_at": "2021-10-20T02:51:07.546Z", "updated_at": "2021-10-20T02:52:29.236Z", "completed_at": "2021-10-20T02:52:29.234Z", "error_code": "JSON_ARRAY_ERROR", "error_message": "The array field being used does not appear to be valid JSON...", "error_detail": "Please make sure the field \"custom_field:Users\" with value \"jim\" is formatted as a JSON Array...", "status": "completed", "sync_id": 52, "source_record_count": 15, "records_failed": 1, "source_record_updates": 12, "source_record_deletes": 2, "source_record_invalids": 1, "records_invalid": 1, "records_processed": 14, "records_updated": 13, "scheduled_execution_time": "2021-10-20T02:52:29.234Z", "full_sync": true, "sync_trigger_reason": { "ui_tag": "Manual", "ui_detail": "Manually triggered by test@getcensus.com" }, "canceled": false, "current_step": "Running Sync" } ] }