GET
/
syncs
/
{id}
curl --request GET \
  --url https://api.withterminal.com/tsp/v1/syncs/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Connection-Token: <connection-token>'
{
  "id": "sync_01GV12VR4DJP70GD1ZBK0SDWFH",
  "status": "completed",
  "failureReason": "Reason for failure if sync status is 'failed'",
  "issues": [
    "isu_01D8ZQFGHVJ858NBF2Q7DV9MNC"
  ],
  "startFrom": "2021-01-06T03:24:53.000Z",
  "requestedAt": "2021-01-06T03:24:53.000Z",
  "completedAt": "2021-01-06T03:24:53.000Z"
}

Authorizations

Authorization
string
headerrequired

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

Headers

Connection-Token
string
required

The token returned when a user authenticated their account. This authorizes access to a specific account.

Path Parameters

id
string
required

Query Parameters

expand
enum<string>

Expand related resources in the response to reduce requests.

Available options:
issues

Response

200 - application/json
id
string
required
status
enum<string>
required
Available options:
requested,
in_progress,
completed,
failed
failureReason
string

If the sync failed, this will contain the reason

issues
array

Issues are problems encountered with a connection that did not result in a failed sync but may require manual intervention. You can see the issues for a given sync by providing issues to the expand parameter.

startFrom
string

The earliest records to sync for those based on time (ex: historical locations and stats)

requestedAt
string
required
completedAt
string