Fetch Records
Retrieves records synced during a given sync run. A primary_identifier can be specified to fetch information about a single record. Additional filters such as operation and status are available as well.
Request schema
Path parameters
ID of the sync run
Query parameters
Filter records by the primary identifier.
Filter records by successfully synced, invalid in source, or rejected by destination.
Filter by whether Census tried to create or update the record (upsert) or delete the record (delete) in the destination.
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.
Header parameters
HTTP: basicAuth
HTTP AuthorizationScheme: basic
GET /api/v1/sync_runs/{sync_run_id}/records?primary_identifier=SOME_STRING_VALUE&status=SOME_STRING_VALUE&operation=SOME_STRING_VALUE&page=SOME_NUMBER_VALUE&per_page=SOME_NUMBER_VALUE HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Host: app.getcensus.com
Responses
200
The outcome of the fetch request.
A JSON representation of the record payload sent to the destination.
The identifier of the record.
When the batch started.
When the batch completed.
The operation performed on the record.
Status of the operation performed on the record. Possible values are:
- succeeded: Operation was successful.
- rejected: Operation was rejected.
- NULL: Record identifier was null.
- DUPLICATE: Record was a duplicate.
- invalid: Record was invalid.
The status message of the operation. Typically used for error messages on rejected records.
404
HTTP status code.
410
The outcome of the fetch request.
{ "status": "success", "data": [ { "record_payload": { "ID": "id_1234", "NAME": "Hello World" }, "identifier": "id_1234", "batch_started_at": "2024-06-28T21:33:54Z", "batch_completed_at": "2024-06-28T21:33:54Z", "operation": "upsert", "status": "succeeded", "status_message": "" } ] }