GET
/
sync
curl --request GET \
  --url https://api.rootfi.dev/sync \
  --header 'api_key: <api-key>'

{
  "data": {
    "connection_status": "HEALTHY",
    "data": [
      {
        "config_mode": "READ",
        "created_count": 0,
        "data_models": [
          {
            "data_model": "ACCOUNTS",
            "end_time": "2023-12-01T08:17:43.047+00:00",
            "failed_count": 0,
            "pending_count": 0,
            "running_count": 0,
            "start_time": "2023-12-01T08:17:29+00:00",
            "status": "SUCCESS",
            "success_count": 1,
            "sync_id": "H1HJT1UYdj0qncJ",
            "total_count": 1
          }
        ],
        "end_time": "2021-09-28T15:00:00.000Z",
        "failed_count": 0,
        "full_sync": true,
        "integration_type": "ZOHO_BOOKS",
        "rootfi_company_id": 123456,
        "rootfi_created_at": "2021-09-28T15:00:00.000Z",
        "rootfi_id": 123456,
        "rootfi_integration_type": "ZOHO_BOOKS",
        "rootfi_organisation_id": 1,
        "rootfi_updated_at": "2021-09-28T15:00:00.000Z",
        "running_count": 0,
        "start_time": "2021-09-28T15:00:00.000Z",
        "success_count": 20,
        "sync_from": null,
        "sync_type": "AUTO_SYNC"
      }
    ],
    "sync_status": "IDLE",
    "total_count": 1
  },
  "request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b",
  "request_timestamp": "2021-09-28T15:00:00.000Z",
  "response_timestamp": "2021-09-28T15:00:00.000Z"
}

Authorizations

api_key
string
headerrequired

Query Parameters

limit
integer | null

The number of objects you want to retrieve

offset
integer | null

The index from where you want to start retrieving objects

company_id
integer | null

The ID of the company to retrieve.

job_type
enum<string>

The type of job to retrieve.

Available options:
PULL,
PUSH

Response

200 - application/json
data
object
required
request_id
string
required

The unique ID of the request

request_timestamp
string
required

The time at which the request was received by the server

response_timestamp
string
required

The time at which the response was sent by the server