GET
/
sync_runs
/
{sync_run_id}
/
records_count
curl --request GET \
  --url https://app.getcensus.com/api/v1/sync_runs/{sync_run_id}/records_count \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "data": [
    {
      "record_count": 25
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token for the current workspace. Can be retrieved from the Workspace's settings page.

Path Parameters

sync_run_id
integer
required

ID of the sync run

Query Parameters

primary_identifier
string

Filter records by the primary identifier of the record.

status
enum<string>

Filter records by successfully synced, invalid in source, or rejected by destination.

Available options:
succeeded,
rejected,
invalid
operation
enum<string>

Filter by whether Census tried to create or update the record (upsert) or delete the record (delete) in the destination.

Available options:
upsert,
delete

Response

200
application/json
Successfully retrieved record counts.
status
enum<string>
required

The outcome of the fetch request.

Available options:
success
Example:

"success"

data
object[]
required