curl --request POST \
--url https://app.introlink.ai/v1/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"companies": [
"kestrel.com",
"atlas.com"
],
"customer": true
}
'import requests
url = "https://app.introlink.ai/v1/customers"
payload = {
"companies": ["kestrel.com", "atlas.com"],
"customer": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({companies: ['kestrel.com', 'atlas.com'], customer: true})
};
fetch('https://app.introlink.ai/v1/customers', 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.introlink.ai/v1/customers",
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([
'companies' => [
'kestrel.com',
'atlas.com'
],
'customer' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.introlink.ai/v1/customers"
payload := strings.NewReader("{\n \"companies\": [\n \"kestrel.com\",\n \"atlas.com\"\n ],\n \"customer\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.introlink.ai/v1/customers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"companies\": [\n \"kestrel.com\",\n \"atlas.com\"\n ],\n \"customer\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.introlink.ai/v1/customers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"companies\": [\n \"kestrel.com\",\n \"atlas.com\"\n ],\n \"customer\": true\n}"
response = http.request(request)
puts response.read_body{
"object": "customer_change",
"customer": true,
"changed": 2,
"data": [
{
"id": "kestrellogistics",
"name": "Kestrel Logistics",
"domain": "kestrel.com",
"url": "https://app.introlink.ai/companies/kestrel.com",
"was": null,
"is_customer": true,
"source": "manual"
},
{
"id": "atlasfreight",
"name": "Atlas Freight",
"domain": "atlas.com",
"url": "https://app.introlink.ai/companies/atlas.com",
"was": false,
"is_customer": true,
"source": "manual"
}
],
"skipped": [],
"text": "Marked 2 companies as customers. To undo, send each company's `was` back as `customer`."
}{
"error": {
"type": "invalid_request",
"message": "The body is not valid JSON."
}
}{
"error": {
"type": "invalid_key",
"message": "That API key is not valid. It may have been revoked: create a new one in IntroLink, under Settings, API."
}
}{
"error": {
"type": "plan_required",
"message": "The API comes with Individual, Team and Business, and this workspace is on the Free trial. Pick a plan under Settings, Billing to use it."
}
}{
"error": {
"type": "rate_limited",
"message": "Too many requests with this key. Wait a minute and try again."
}
}{
"error": {
"type": "server_error",
"message": "IntroLink could not answer that just now. Try again in a minute."
}
}Mark customers
The company page’s Customer switch, for many companies: true makes each a customer whatever HubSpot says, false says it is not one, and null forgets the switch so HubSpot’s answer counts again. Nothing is written to HubSpot. Champions follow at once. Each changed company says what its switch was: send that back to undo. A company already so, or that IntroLink can’t find among the creator’s companies, is returned in skipped.
curl --request POST \
--url https://app.introlink.ai/v1/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"companies": [
"kestrel.com",
"atlas.com"
],
"customer": true
}
'import requests
url = "https://app.introlink.ai/v1/customers"
payload = {
"companies": ["kestrel.com", "atlas.com"],
"customer": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({companies: ['kestrel.com', 'atlas.com'], customer: true})
};
fetch('https://app.introlink.ai/v1/customers', 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.introlink.ai/v1/customers",
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([
'companies' => [
'kestrel.com',
'atlas.com'
],
'customer' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.introlink.ai/v1/customers"
payload := strings.NewReader("{\n \"companies\": [\n \"kestrel.com\",\n \"atlas.com\"\n ],\n \"customer\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.introlink.ai/v1/customers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"companies\": [\n \"kestrel.com\",\n \"atlas.com\"\n ],\n \"customer\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.introlink.ai/v1/customers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"companies\": [\n \"kestrel.com\",\n \"atlas.com\"\n ],\n \"customer\": true\n}"
response = http.request(request)
puts response.read_body{
"object": "customer_change",
"customer": true,
"changed": 2,
"data": [
{
"id": "kestrellogistics",
"name": "Kestrel Logistics",
"domain": "kestrel.com",
"url": "https://app.introlink.ai/companies/kestrel.com",
"was": null,
"is_customer": true,
"source": "manual"
},
{
"id": "atlasfreight",
"name": "Atlas Freight",
"domain": "atlas.com",
"url": "https://app.introlink.ai/companies/atlas.com",
"was": false,
"is_customer": true,
"source": "manual"
}
],
"skipped": [],
"text": "Marked 2 companies as customers. To undo, send each company's `was` back as `customer`."
}{
"error": {
"type": "invalid_request",
"message": "The body is not valid JSON."
}
}{
"error": {
"type": "invalid_key",
"message": "That API key is not valid. It may have been revoked: create a new one in IntroLink, under Settings, API."
}
}{
"error": {
"type": "plan_required",
"message": "The API comes with Individual, Team and Business, and this workspace is on the Free trial. Pick a plan under Settings, Billing to use it."
}
}{
"error": {
"type": "rate_limited",
"message": "Too many requests with this key. Wait a minute and try again."
}
}{
"error": {
"type": "server_error",
"message": "IntroLink could not answer that just now. Try again in a minute."
}
}Authorizations
Body
Companies: each its web domain (kestrel.com), its IntroLink id (id from GET /watches or POST /customers, e.g. kestrellogistics), or its exact name (Kestrel Logistics). A name is matched as IntroLink spells company names (case, punctuation and Inc./Ltd. aside), never loosely.
1 - 100 elements1 - 300Response
The companies this request changed, each with what it was and what it is now.