Get Syncs
curl --request GET \
--url https://api.rootfi.dev/v3/core/syncs \
--header 'api_key: <api-key>'import requests
url = "https://api.rootfi.dev/v3/core/syncs"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://api.rootfi.dev/v3/core/syncs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rootfi.dev/v3/core/syncs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rootfi.dev/v3/core/syncs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rootfi.dev/v3/core/syncs")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rootfi.dev/v3/core/syncs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api_key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"rootfi_id": 1,
"rootfi_created_at": "2021-08-31T18:00:00Z",
"rootfi_updated_at": "2021-08-31T18:00:00Z",
"rootfi_company_id": 1,
"start_time": "2021-08-31T18:00:00Z",
"end_time": "2021-08-31T18:00:00Z",
"integration_type": "XERO",
"full_sync": true,
"sync_type": "AUTO_SYNC",
"config_mode": "READ",
"sync_data_models": [
"ACCOUNTS",
"CONTACTS"
],
"sync_id": "VmaVgKMaiygMzTK1",
"total_count": 100,
"success_count": 100,
"failed_count": 0,
"running_count": 0,
"pending_count": 0,
"status": "SUCCESS"
}
],
"next": "https://api.rootfi.dev/syncs?next=eyJpZCI6MX0%3D"
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}Sync
Get Syncs
Retrieve all syncs from the database.
GET
/
core
/
syncs
Get Syncs
curl --request GET \
--url https://api.rootfi.dev/v3/core/syncs \
--header 'api_key: <api-key>'import requests
url = "https://api.rootfi.dev/v3/core/syncs"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://api.rootfi.dev/v3/core/syncs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rootfi.dev/v3/core/syncs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rootfi.dev/v3/core/syncs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rootfi.dev/v3/core/syncs")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rootfi.dev/v3/core/syncs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api_key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"rootfi_id": 1,
"rootfi_created_at": "2021-08-31T18:00:00Z",
"rootfi_updated_at": "2021-08-31T18:00:00Z",
"rootfi_company_id": 1,
"start_time": "2021-08-31T18:00:00Z",
"end_time": "2021-08-31T18:00:00Z",
"integration_type": "XERO",
"full_sync": true,
"sync_type": "AUTO_SYNC",
"config_mode": "READ",
"sync_data_models": [
"ACCOUNTS",
"CONTACTS"
],
"sync_id": "VmaVgKMaiygMzTK1",
"total_count": 100,
"success_count": 100,
"failed_count": 0,
"running_count": 0,
"pending_count": 0,
"status": "SUCCESS"
}
],
"next": "https://api.rootfi.dev/syncs?next=eyJpZCI6MX0%3D"
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"field": "<string>"
}
}Authorizations
Query Parameters
The number of objects you want to retrieve
The ID of the company
The next page of objects to retrieve
The previous page of objects to retrieve
⌘I