Submit research request
curl --request POST \
--url https://api.rapportapi.com/research \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_data": {
"email": "jane@example.com"
},
"callback_url": "https://yourapp.com/webhooks/rapport",
"callback_secret": "your_webhook_secret"
}
'import requests
url = "https://api.rapportapi.com/research"
payload = {
"contact_data": { "email": "jane@example.com" },
"callback_url": "https://yourapp.com/webhooks/rapport",
"callback_secret": "your_webhook_secret"
}
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({
contact_data: {email: 'jane@example.com'},
callback_url: 'https://yourapp.com/webhooks/rapport',
callback_secret: 'your_webhook_secret'
})
};
fetch('https://api.rapportapi.com/research', 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.rapportapi.com/research",
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([
'contact_data' => [
'email' => 'jane@example.com'
],
'callback_url' => 'https://yourapp.com/webhooks/rapport',
'callback_secret' => 'your_webhook_secret'
]),
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://api.rapportapi.com/research"
payload := strings.NewReader("{\n \"contact_data\": {\n \"email\": \"jane@example.com\"\n },\n \"callback_url\": \"https://yourapp.com/webhooks/rapport\",\n \"callback_secret\": \"your_webhook_secret\"\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://api.rapportapi.com/research")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contact_data\": {\n \"email\": \"jane@example.com\"\n },\n \"callback_url\": \"https://yourapp.com/webhooks/rapport\",\n \"callback_secret\": \"your_webhook_secret\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rapportapi.com/research")
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 \"contact_data\": {\n \"email\": \"jane@example.com\"\n },\n \"callback_url\": \"https://yourapp.com/webhooks/rapport\",\n \"callback_secret\": \"your_webhook_secret\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"prospect_id": null,
"status": "pending"
}{
"detail": "Invalid request body: at least one identifier required (email, linkedin_url, or full_name + company)",
"status_code": 400
}{
"detail": "<string>",
"status_code": 123
}{
"detail": "Insufficient credits. Please purchase more at rapportapi.com.",
"status_code": 402
}Research
Submit Research
Start a new research lookup for a prospect. Requires at least one identifier: email, linkedin_url, or full_name + company. Returns a task_id for polling. Costs 1 credit.
POST
/
research
Submit research request
curl --request POST \
--url https://api.rapportapi.com/research \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_data": {
"email": "jane@example.com"
},
"callback_url": "https://yourapp.com/webhooks/rapport",
"callback_secret": "your_webhook_secret"
}
'import requests
url = "https://api.rapportapi.com/research"
payload = {
"contact_data": { "email": "jane@example.com" },
"callback_url": "https://yourapp.com/webhooks/rapport",
"callback_secret": "your_webhook_secret"
}
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({
contact_data: {email: 'jane@example.com'},
callback_url: 'https://yourapp.com/webhooks/rapport',
callback_secret: 'your_webhook_secret'
})
};
fetch('https://api.rapportapi.com/research', 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.rapportapi.com/research",
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([
'contact_data' => [
'email' => 'jane@example.com'
],
'callback_url' => 'https://yourapp.com/webhooks/rapport',
'callback_secret' => 'your_webhook_secret'
]),
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://api.rapportapi.com/research"
payload := strings.NewReader("{\n \"contact_data\": {\n \"email\": \"jane@example.com\"\n },\n \"callback_url\": \"https://yourapp.com/webhooks/rapport\",\n \"callback_secret\": \"your_webhook_secret\"\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://api.rapportapi.com/research")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contact_data\": {\n \"email\": \"jane@example.com\"\n },\n \"callback_url\": \"https://yourapp.com/webhooks/rapport\",\n \"callback_secret\": \"your_webhook_secret\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rapportapi.com/research")
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 \"contact_data\": {\n \"email\": \"jane@example.com\"\n },\n \"callback_url\": \"https://yourapp.com/webhooks/rapport\",\n \"callback_secret\": \"your_webhook_secret\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"prospect_id": null,
"status": "pending"
}{
"detail": "Invalid request body: at least one identifier required (email, linkedin_url, or full_name + company)",
"status_code": 400
}{
"detail": "<string>",
"status_code": 123
}{
"detail": "Insufficient credits. Please purchase more at rapportapi.com.",
"status_code": 402
}Authorizations
API key with rapi_live_ prefix
Body
application/json
Contact identifiers. At least one of: email, linkedin_url, or full_name + company.
Show child attributes
Show child attributes
Your internal ID for this prospect (echoed back in responses and webhooks)
URL to receive a webhook POST when research completes
Bearer token sent in the Authorization header of webhook callbacks
If true, returns a dummy completed response immediately without using credits. Useful for testing your integration.
⌘I