GET
/
api
/
v1
/
syncs
/
{sync_id}
/
sync_runs
curl --request GET \
  --url https://api.squared.ai/api/v1/syncs/{sync_id}/sync_runs \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "type": "<string>",
      "attributes": {
        "sync_id": 123,
        "status": "<string>",
        "started_at": "2023-11-07T05:31:56Z",
        "finished_at": "2023-11-07T05:31:56Z",
        "duration": 123,
        "total_query_rows": 123,
        "skipped_rows": 123,
        "total_rows": 123,
        "successful_rows": 123,
        "failed_rows": 123,
        "error": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    }
  ],
  "links": {
    "self": "<string>",
    "first": "<string>",
    "prev": "<string>",
    "next": "<string>",
    "last": "<string>"
  }
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

sync_id
integer
required

The ID of the sync to list runs for.

Query Parameters

status
string

Optional status to filter the sync runs by.

page
integer

Page number for pagination.

Response

200 - application/json
data
object[]
links
object