Draft an ask
curl --request POST \
--url https://app.introlink.ai/v1/asks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"person": "p_Qm3vT8yLkR2nWx7HbJ4dPa",
"via": "p_8TzKq2LmW9xRv4NbHc7YsE",
"goal": "Ask how Kestrel prices its freight lanes",
"save": true
}
'import requests
url = "https://app.introlink.ai/v1/asks"
payload = {
"person": "p_Qm3vT8yLkR2nWx7HbJ4dPa",
"via": "p_8TzKq2LmW9xRv4NbHc7YsE",
"goal": "Ask how Kestrel prices its freight lanes",
"save": 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({
person: 'p_Qm3vT8yLkR2nWx7HbJ4dPa',
via: 'p_8TzKq2LmW9xRv4NbHc7YsE',
goal: 'Ask how Kestrel prices its freight lanes',
save: true
})
};
fetch('https://app.introlink.ai/v1/asks', 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/asks",
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([
'person' => 'p_Qm3vT8yLkR2nWx7HbJ4dPa',
'via' => 'p_8TzKq2LmW9xRv4NbHc7YsE',
'goal' => 'Ask how Kestrel prices its freight lanes',
'save' => 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/asks"
payload := strings.NewReader("{\n \"person\": \"p_Qm3vT8yLkR2nWx7HbJ4dPa\",\n \"via\": \"p_8TzKq2LmW9xRv4NbHc7YsE\",\n \"goal\": \"Ask how Kestrel prices its freight lanes\",\n \"save\": 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/asks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"person\": \"p_Qm3vT8yLkR2nWx7HbJ4dPa\",\n \"via\": \"p_8TzKq2LmW9xRv4NbHc7YsE\",\n \"goal\": \"Ask how Kestrel prices its freight lanes\",\n \"save\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.introlink.ai/v1/asks")
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 \"person\": \"p_Qm3vT8yLkR2nWx7HbJ4dPa\",\n \"via\": \"p_8TzKq2LmW9xRv4NbHc7YsE\",\n \"goal\": \"Ask how Kestrel prices its freight lanes\",\n \"save\": true\n}"
response = http.request(request)
puts response.read_body{
"object": "ask_draft",
"saved": true,
"person": {
"id": "p_Qm3vT8yLkR2nWx7HbJ4dPa",
"name": "Priya Raman"
},
"via": {
"id": "p_8TzKq2LmW9xRv4NbHc7YsE",
"name": "Daniel Reyes"
},
"path": "Daniel worked with Priya at Brightwater, 2018 to 2021.",
"subject": "Intro to Priya Raman?",
"body": "Hi Daniel,\n\nCould you introduce me to Priya Raman at Kestrel Logistics? You two worked together at Brightwater. I'd like to ask her how Kestrel prices its freight lanes.\n\nA note you can forward is below.\n\nThanks,\nAsha",
"note": "Priya, Asha Patel runs Fernhill and would like 20 minutes on how Kestrel prices freight lanes. Happy to connect you two.",
"claims": [
{
"status": "checked",
"text": "worked together at Brightwater",
"source": "LinkedIn"
}
],
"unchecked_claims": 0,
"gmail_drafts_url": "https://mail.google.com/mail/#drafts",
"edit_url": "https://app.introlink.ai/open?ask=p_Qm3vT8yLkR2nWx7HbJ4dPa&via=p_8TzKq2LmW9xRv4NbHc7YsE",
"problem": null,
"text": "Saved in your Gmail drafts: an ask to Daniel Reyes for an intro to Priya Raman. Nothing was sent. Every claim in it is checked against IntroLink's evidence."
}{
"object": "ask_draft",
"saved": true,
"person": {
"id": "p_Qm3vT8yLkR2nWx7HbJ4dPa",
"name": "Priya Raman"
},
"via": {
"id": "p_8TzKq2LmW9xRv4NbHc7YsE",
"name": "Daniel Reyes"
},
"path": "Daniel worked with Priya at Brightwater, 2018 to 2021.",
"subject": "Intro to Priya Raman?",
"body": "Hi Daniel,\n\nCould you introduce me to Priya Raman at Kestrel Logistics? You two worked together at Brightwater. I'd like to ask her how Kestrel prices its freight lanes.\n\nA note you can forward is below.\n\nThanks,\nAsha",
"note": "Priya, Asha Patel runs Fernhill and would like 20 minutes on how Kestrel prices freight lanes. Happy to connect you two.",
"claims": [
{
"status": "checked",
"text": "worked together at Brightwater",
"source": "LinkedIn"
}
],
"unchecked_claims": 0,
"gmail_drafts_url": "https://mail.google.com/mail/#drafts",
"edit_url": "https://app.introlink.ai/open?ask=p_Qm3vT8yLkR2nWx7HbJ4dPa&via=p_8TzKq2LmW9xRv4NbHc7YsE",
"problem": null,
"text": "Saved in your Gmail drafts: an ask to Daniel Reyes for an intro to Priya Raman. Nothing was sent. Every claim in it is checked against IntroLink's evidence."
}{
"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": "not_found",
"message": "No person with that id in this key's network."
}
}{
"error": {
"type": "no_path",
"message": "Nobody on your side has a path to Priya Raman that you could ask through yet, so there is no one to write to. You can still write to them yourself in IntroLink: https://app.introlink.ai/open?ask=p_Qm3vT8yLkR2nWx7HbJ4dPa"
}
}{
"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."
}
}Asks
Draft an ask
Drafts an email asking a connector to introduce the key creator to someone, with a note the connector can forward, from IntroLink’s evidence for the path, and checks each claim in it against that evidence. Without save, it only returns the draft. With save: true, it also saves the draft to the creator’s Gmail drafts for them to check and send: nothing is ever sent. The connector’s email address goes into the Gmail draft, never into the answer.
POST
/
asks
Draft an ask
curl --request POST \
--url https://app.introlink.ai/v1/asks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"person": "p_Qm3vT8yLkR2nWx7HbJ4dPa",
"via": "p_8TzKq2LmW9xRv4NbHc7YsE",
"goal": "Ask how Kestrel prices its freight lanes",
"save": true
}
'import requests
url = "https://app.introlink.ai/v1/asks"
payload = {
"person": "p_Qm3vT8yLkR2nWx7HbJ4dPa",
"via": "p_8TzKq2LmW9xRv4NbHc7YsE",
"goal": "Ask how Kestrel prices its freight lanes",
"save": 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({
person: 'p_Qm3vT8yLkR2nWx7HbJ4dPa',
via: 'p_8TzKq2LmW9xRv4NbHc7YsE',
goal: 'Ask how Kestrel prices its freight lanes',
save: true
})
};
fetch('https://app.introlink.ai/v1/asks', 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/asks",
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([
'person' => 'p_Qm3vT8yLkR2nWx7HbJ4dPa',
'via' => 'p_8TzKq2LmW9xRv4NbHc7YsE',
'goal' => 'Ask how Kestrel prices its freight lanes',
'save' => 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/asks"
payload := strings.NewReader("{\n \"person\": \"p_Qm3vT8yLkR2nWx7HbJ4dPa\",\n \"via\": \"p_8TzKq2LmW9xRv4NbHc7YsE\",\n \"goal\": \"Ask how Kestrel prices its freight lanes\",\n \"save\": 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/asks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"person\": \"p_Qm3vT8yLkR2nWx7HbJ4dPa\",\n \"via\": \"p_8TzKq2LmW9xRv4NbHc7YsE\",\n \"goal\": \"Ask how Kestrel prices its freight lanes\",\n \"save\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.introlink.ai/v1/asks")
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 \"person\": \"p_Qm3vT8yLkR2nWx7HbJ4dPa\",\n \"via\": \"p_8TzKq2LmW9xRv4NbHc7YsE\",\n \"goal\": \"Ask how Kestrel prices its freight lanes\",\n \"save\": true\n}"
response = http.request(request)
puts response.read_body{
"object": "ask_draft",
"saved": true,
"person": {
"id": "p_Qm3vT8yLkR2nWx7HbJ4dPa",
"name": "Priya Raman"
},
"via": {
"id": "p_8TzKq2LmW9xRv4NbHc7YsE",
"name": "Daniel Reyes"
},
"path": "Daniel worked with Priya at Brightwater, 2018 to 2021.",
"subject": "Intro to Priya Raman?",
"body": "Hi Daniel,\n\nCould you introduce me to Priya Raman at Kestrel Logistics? You two worked together at Brightwater. I'd like to ask her how Kestrel prices its freight lanes.\n\nA note you can forward is below.\n\nThanks,\nAsha",
"note": "Priya, Asha Patel runs Fernhill and would like 20 minutes on how Kestrel prices freight lanes. Happy to connect you two.",
"claims": [
{
"status": "checked",
"text": "worked together at Brightwater",
"source": "LinkedIn"
}
],
"unchecked_claims": 0,
"gmail_drafts_url": "https://mail.google.com/mail/#drafts",
"edit_url": "https://app.introlink.ai/open?ask=p_Qm3vT8yLkR2nWx7HbJ4dPa&via=p_8TzKq2LmW9xRv4NbHc7YsE",
"problem": null,
"text": "Saved in your Gmail drafts: an ask to Daniel Reyes for an intro to Priya Raman. Nothing was sent. Every claim in it is checked against IntroLink's evidence."
}{
"object": "ask_draft",
"saved": true,
"person": {
"id": "p_Qm3vT8yLkR2nWx7HbJ4dPa",
"name": "Priya Raman"
},
"via": {
"id": "p_8TzKq2LmW9xRv4NbHc7YsE",
"name": "Daniel Reyes"
},
"path": "Daniel worked with Priya at Brightwater, 2018 to 2021.",
"subject": "Intro to Priya Raman?",
"body": "Hi Daniel,\n\nCould you introduce me to Priya Raman at Kestrel Logistics? You two worked together at Brightwater. I'd like to ask her how Kestrel prices its freight lanes.\n\nA note you can forward is below.\n\nThanks,\nAsha",
"note": "Priya, Asha Patel runs Fernhill and would like 20 minutes on how Kestrel prices freight lanes. Happy to connect you two.",
"claims": [
{
"status": "checked",
"text": "worked together at Brightwater",
"source": "LinkedIn"
}
],
"unchecked_claims": 0,
"gmail_drafts_url": "https://mail.google.com/mail/#drafts",
"edit_url": "https://app.introlink.ai/open?ask=p_Qm3vT8yLkR2nWx7HbJ4dPa&via=p_8TzKq2LmW9xRv4NbHc7YsE",
"problem": null,
"text": "Saved in your Gmail drafts: an ask to Daniel Reyes for an intro to Priya Raman. Nothing was sent. Every claim in it is checked against IntroLink's evidence."
}{
"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": "not_found",
"message": "No person with that id in this key's network."
}
}{
"error": {
"type": "no_path",
"message": "Nobody on your side has a path to Priya Raman that you could ask through yet, so there is no one to write to. You can still write to them yourself in IntroLink: https://app.introlink.ai/open?ask=p_Qm3vT8yLkR2nWx7HbJ4dPa"
}
}{
"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
application/json
Response
The draft, not saved.