Get Passthrough Data
curl --request POST \
--url https://api.rootfi.dev/v3/core/passthrough \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 1111,
"data": {
"method": "GET",
"path": "/contacts",
"headers": {},
"data": {},
"params": {}
}
}
'import requests
url = "https://api.rootfi.dev/v3/core/passthrough"
payload = {
"company_id": 1111,
"data": {
"method": "GET",
"path": "/contacts",
"headers": {},
"data": {},
"params": {}
}
}
headers = {
"api_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {api_key: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
company_id: 1111,
data: {method: 'GET', path: '/contacts', headers: {}, data: {}, params: {}}
})
};
fetch('https://api.rootfi.dev/v3/core/passthrough', 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/passthrough",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'company_id' => 1111,
'data' => [
'method' => 'GET',
'path' => '/contacts',
'headers' => [
],
'data' => [
],
'params' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.rootfi.dev/v3/core/passthrough"
payload := strings.NewReader("{\n \"company_id\": 1111,\n \"data\": {\n \"method\": \"GET\",\n \"path\": \"/contacts\",\n \"headers\": {},\n \"data\": {},\n \"params\": {}\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rootfi.dev/v3/core/passthrough")
.header("api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_id\": 1111,\n \"data\": {\n \"method\": \"GET\",\n \"path\": \"/contacts\",\n \"headers\": {},\n \"data\": {},\n \"params\": {}\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rootfi.dev/v3/core/passthrough")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api_key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_id\": 1111,\n \"data\": {\n \"method\": \"GET\",\n \"path\": \"/contacts\",\n \"headers\": {},\n \"data\": {},\n \"params\": {}\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"data": {
"code": 0,
"message": "success",
"contacts": [
{
"contact_id": "3770712000001545104",
"contact_name": "Albert Brown",
"portal_status": "disabled",
"created_time": "2023-10-13T11:44:39+0530",
"created_time_formatted": "13/10/2023",
"last_modified_time": "2023-10-13T11:44:39+0530",
"last_modified_time_formatted": "13/10/2023",
"custom_fields": [],
"custom_field_hash": {},
"ach_supported": false,
"gst_no": "07CEUPK5322M1XX",
"gst_treatment": "business_gst",
"place_of_contact": "DL",
"place_of_contact_formatted": "Delhi",
"has_attachment": false,
"pan_no": "ODSPS1279F"
}
],
"page_context": {
"page": 1,
"per_page": 200,
"has_more_page": false,
"report_name": "Contacts",
"applied_filter": "Status.All",
"custom_fields": [],
"sort_column": "contact_name",
"sort_order": "A"
}
}
}
}{
"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>"
}
}Passthrough
Get Passthrough Data
Retrieve passthrough data from integration platforms.
POST
/
core
/
passthrough
Get Passthrough Data
curl --request POST \
--url https://api.rootfi.dev/v3/core/passthrough \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"company_id": 1111,
"data": {
"method": "GET",
"path": "/contacts",
"headers": {},
"data": {},
"params": {}
}
}
'import requests
url = "https://api.rootfi.dev/v3/core/passthrough"
payload = {
"company_id": 1111,
"data": {
"method": "GET",
"path": "/contacts",
"headers": {},
"data": {},
"params": {}
}
}
headers = {
"api_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {api_key: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
company_id: 1111,
data: {method: 'GET', path: '/contacts', headers: {}, data: {}, params: {}}
})
};
fetch('https://api.rootfi.dev/v3/core/passthrough', 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/passthrough",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'company_id' => 1111,
'data' => [
'method' => 'GET',
'path' => '/contacts',
'headers' => [
],
'data' => [
],
'params' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.rootfi.dev/v3/core/passthrough"
payload := strings.NewReader("{\n \"company_id\": 1111,\n \"data\": {\n \"method\": \"GET\",\n \"path\": \"/contacts\",\n \"headers\": {},\n \"data\": {},\n \"params\": {}\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rootfi.dev/v3/core/passthrough")
.header("api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_id\": 1111,\n \"data\": {\n \"method\": \"GET\",\n \"path\": \"/contacts\",\n \"headers\": {},\n \"data\": {},\n \"params\": {}\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rootfi.dev/v3/core/passthrough")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api_key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_id\": 1111,\n \"data\": {\n \"method\": \"GET\",\n \"path\": \"/contacts\",\n \"headers\": {},\n \"data\": {},\n \"params\": {}\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"data": {
"code": 0,
"message": "success",
"contacts": [
{
"contact_id": "3770712000001545104",
"contact_name": "Albert Brown",
"portal_status": "disabled",
"created_time": "2023-10-13T11:44:39+0530",
"created_time_formatted": "13/10/2023",
"last_modified_time": "2023-10-13T11:44:39+0530",
"last_modified_time_formatted": "13/10/2023",
"custom_fields": [],
"custom_field_hash": {},
"ach_supported": false,
"gst_no": "07CEUPK5322M1XX",
"gst_treatment": "business_gst",
"place_of_contact": "DL",
"place_of_contact_formatted": "Delhi",
"has_attachment": false,
"pan_no": "ODSPS1279F"
}
],
"page_context": {
"page": 1,
"per_page": 200,
"has_more_page": false,
"report_name": "Contacts",
"applied_filter": "Status.All",
"custom_fields": [],
"sort_column": "contact_name",
"sort_order": "A"
}
}
}
}{
"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
Body
application/json
Response
The response object for the getPassthroughData endpoint.
The data returned from the integration platform.
⌘I