Skip to main content
POST
/
api
/
v1
/
lineage
/
bi
/
hightouch
/
Create a Hightouch integration
curl --request POST \
  --url https://app.datafold.com/api/v1/lineage/bi/hightouch/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bindings": [
    {
      "boundIds": [
        123
      ],
      "remoteId": "<string>"
    }
  ],
  "token": "<string>",
  "indexing_cron": "<string>",
  "name": "<string>",
  "workspace": "<string>"
}
'
import requests

url = "https://app.datafold.com/api/v1/lineage/bi/hightouch/"

payload = {
    "bindings": [
        {
            "boundIds": [123],
            "remoteId": "<string>"
        }
    ],
    "token": "<string>",
    "indexing_cron": "<string>",
    "name": "<string>",
    "workspace": "<string>"
}
headers = {
    "Authorization": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    bindings: [{boundIds: [123], remoteId: '<string>'}],
    token: '<string>',
    indexing_cron: '<string>',
    name: '<string>',
    workspace: '<string>'
  })
};

fetch('https://app.datafold.com/api/v1/lineage/bi/hightouch/', 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://app.datafold.com/api/v1/lineage/bi/hightouch/",
  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([
    'bindings' => [
        [
                'boundIds' => [
                                123
                ],
                'remoteId' => '<string>'
        ]
    ],
    'token' => '<string>',
    'indexing_cron' => '<string>',
    'name' => '<string>',
    'workspace' => '<string>'
  ]),
  CURLOPT_HTTPHEADER => [
    "Authorization: <api-key>",
    "Content-Type: application/json"
  ],
]);

$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://app.datafold.com/api/v1/lineage/bi/hightouch/"

	payload := strings.NewReader("{\n  \"bindings\": [\n    {\n      \"boundIds\": [\n        123\n      ],\n      \"remoteId\": \"<string>\"\n    }\n  ],\n  \"token\": \"<string>\",\n  \"indexing_cron\": \"<string>\",\n  \"name\": \"<string>\",\n  \"workspace\": \"<string>\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "<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://app.datafold.com/api/v1/lineage/bi/hightouch/")
  .header("Authorization", "<api-key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"bindings\": [\n    {\n      \"boundIds\": [\n        123\n      ],\n      \"remoteId\": \"<string>\"\n    }\n  ],\n  \"token\": \"<string>\",\n  \"indexing_cron\": \"<string>\",\n  \"name\": \"<string>\",\n  \"workspace\": \"<string>\"\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://app.datafold.com/api/v1/lineage/bi/hightouch/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"bindings\": [\n    {\n      \"boundIds\": [\n        123\n      ],\n      \"remoteId\": \"<string>\"\n    }\n  ],\n  \"token\": \"<string>\",\n  \"indexing_cron\": \"<string>\",\n  \"name\": \"<string>\",\n  \"workspace\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "ctx": {},
      "input": "<unknown>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use the 'Authorization' header with the format 'Key '

Body

application/json
bindings
DataSourceBinding · object[]
required
token
string<password>
required
write-only
indexing_cron
string | null
name
string | null
workspace
string | null

Response

Successful Response