curl --request POST \
--url https://api.preceptai.co.uk/v1/leads/enrich \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Q3 Lead List",
"webhookUrl": "https://your-site.com/webhook",
"leads": [
{
"linkedinUrl": "https://linkedin.com/in/johndoe",
"enrichType": [
"emails",
"phones"
],
"customData": {
"contact_id": "lead_123"
}
},
{
"firstName": "Jane",
"lastName": "Smith",
"companyName": "Precept AI",
"enrichType": [
"emails"
],
"customData": {
"contact_id": "lead_456"
}
}
],
"includeContactDetails": true,
"interests": [
"Banking",
"Insurance"
],
"generateMessage": [
"email",
"linkedin"
]
}
'import requests
url = "https://api.preceptai.co.uk/v1/leads/enrich"
payload = {
"name": "Q3 Lead List",
"webhookUrl": "https://your-site.com/webhook",
"leads": [
{
"linkedinUrl": "https://linkedin.com/in/johndoe",
"enrichType": ["emails", "phones"],
"customData": { "contact_id": "lead_123" }
},
{
"firstName": "Jane",
"lastName": "Smith",
"companyName": "Precept AI",
"enrichType": ["emails"],
"customData": { "contact_id": "lead_456" }
}
],
"includeContactDetails": True,
"interests": ["Banking", "Insurance"],
"generateMessage": ["email", "linkedin"]
}
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({
name: 'Q3 Lead List',
webhookUrl: 'https://your-site.com/webhook',
leads: [
{
linkedinUrl: 'https://linkedin.com/in/johndoe',
enrichType: ['emails', 'phones'],
customData: {contact_id: 'lead_123'}
},
{
firstName: 'Jane',
lastName: 'Smith',
companyName: 'Precept AI',
enrichType: ['emails'],
customData: {contact_id: 'lead_456'}
}
],
includeContactDetails: true,
interests: ['Banking', 'Insurance'],
generateMessage: ['email', 'linkedin']
})
};
fetch('https://api.preceptai.co.uk/v1/leads/enrich', 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.preceptai.co.uk/v1/leads/enrich",
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([
'name' => 'Q3 Lead List',
'webhookUrl' => 'https://your-site.com/webhook',
'leads' => [
[
'linkedinUrl' => 'https://linkedin.com/in/johndoe',
'enrichType' => [
'emails',
'phones'
],
'customData' => [
'contact_id' => 'lead_123'
]
],
[
'firstName' => 'Jane',
'lastName' => 'Smith',
'companyName' => 'Precept AI',
'enrichType' => [
'emails'
],
'customData' => [
'contact_id' => 'lead_456'
]
]
],
'includeContactDetails' => true,
'interests' => [
'Banking',
'Insurance'
],
'generateMessage' => [
'email',
'linkedin'
]
]),
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.preceptai.co.uk/v1/leads/enrich"
payload := strings.NewReader("{\n \"name\": \"Q3 Lead List\",\n \"webhookUrl\": \"https://your-site.com/webhook\",\n \"leads\": [\n {\n \"linkedinUrl\": \"https://linkedin.com/in/johndoe\",\n \"enrichType\": [\n \"emails\",\n \"phones\"\n ],\n \"customData\": {\n \"contact_id\": \"lead_123\"\n }\n },\n {\n \"firstName\": \"Jane\",\n \"lastName\": \"Smith\",\n \"companyName\": \"Precept AI\",\n \"enrichType\": [\n \"emails\"\n ],\n \"customData\": {\n \"contact_id\": \"lead_456\"\n }\n }\n ],\n \"includeContactDetails\": true,\n \"interests\": [\n \"Banking\",\n \"Insurance\"\n ],\n \"generateMessage\": [\n \"email\",\n \"linkedin\"\n ]\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.preceptai.co.uk/v1/leads/enrich")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Q3 Lead List\",\n \"webhookUrl\": \"https://your-site.com/webhook\",\n \"leads\": [\n {\n \"linkedinUrl\": \"https://linkedin.com/in/johndoe\",\n \"enrichType\": [\n \"emails\",\n \"phones\"\n ],\n \"customData\": {\n \"contact_id\": \"lead_123\"\n }\n },\n {\n \"firstName\": \"Jane\",\n \"lastName\": \"Smith\",\n \"companyName\": \"Precept AI\",\n \"enrichType\": [\n \"emails\"\n ],\n \"customData\": {\n \"contact_id\": \"lead_456\"\n }\n }\n ],\n \"includeContactDetails\": true,\n \"interests\": [\n \"Banking\",\n \"Insurance\"\n ],\n \"generateMessage\": [\n \"email\",\n \"linkedin\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.preceptai.co.uk/v1/leads/enrich")
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 \"name\": \"Q3 Lead List\",\n \"webhookUrl\": \"https://your-site.com/webhook\",\n \"leads\": [\n {\n \"linkedinUrl\": \"https://linkedin.com/in/johndoe\",\n \"enrichType\": [\n \"emails\",\n \"phones\"\n ],\n \"customData\": {\n \"contact_id\": \"lead_123\"\n }\n },\n {\n \"firstName\": \"Jane\",\n \"lastName\": \"Smith\",\n \"companyName\": \"Precept AI\",\n \"enrichType\": [\n \"emails\"\n ],\n \"customData\": {\n \"contact_id\": \"lead_456\"\n }\n }\n ],\n \"includeContactDetails\": true,\n \"interests\": [\n \"Banking\",\n \"Insurance\"\n ],\n \"generateMessage\": [\n \"email\",\n \"linkedin\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Enrichment job successfully created and batches are being processed.",
"enrichment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Start Contacts Enrichment
Enrich your contacts using this endpoint.
This endpoint enriches a list of contacts with contact details and Personalized AI insights:
- Verified email addresses.
- Verified phone numbers.
- Professional summary.
- Top problems.
- Internal strategic initiatives.
- Public appearances.
- Tailored outreach messages for email (PIPE framework) and LinkedIn (SHIP framework) via
generateMessage.
To enrich a contact, you can provide either their LinkedIn profile URL or a combination of their first name, last name, and company name/domain. You can process up to 1,000 contacts in a single request.
To associate your own internal identifiers with each lead, use the customData field. This data will be returned to you in the webhook response, allowing you to easily map the enrichment results back to your system.
To receive the results, you must provide a webhookUrl.
curl --request POST \
--url https://api.preceptai.co.uk/v1/leads/enrich \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Q3 Lead List",
"webhookUrl": "https://your-site.com/webhook",
"leads": [
{
"linkedinUrl": "https://linkedin.com/in/johndoe",
"enrichType": [
"emails",
"phones"
],
"customData": {
"contact_id": "lead_123"
}
},
{
"firstName": "Jane",
"lastName": "Smith",
"companyName": "Precept AI",
"enrichType": [
"emails"
],
"customData": {
"contact_id": "lead_456"
}
}
],
"includeContactDetails": true,
"interests": [
"Banking",
"Insurance"
],
"generateMessage": [
"email",
"linkedin"
]
}
'import requests
url = "https://api.preceptai.co.uk/v1/leads/enrich"
payload = {
"name": "Q3 Lead List",
"webhookUrl": "https://your-site.com/webhook",
"leads": [
{
"linkedinUrl": "https://linkedin.com/in/johndoe",
"enrichType": ["emails", "phones"],
"customData": { "contact_id": "lead_123" }
},
{
"firstName": "Jane",
"lastName": "Smith",
"companyName": "Precept AI",
"enrichType": ["emails"],
"customData": { "contact_id": "lead_456" }
}
],
"includeContactDetails": True,
"interests": ["Banking", "Insurance"],
"generateMessage": ["email", "linkedin"]
}
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({
name: 'Q3 Lead List',
webhookUrl: 'https://your-site.com/webhook',
leads: [
{
linkedinUrl: 'https://linkedin.com/in/johndoe',
enrichType: ['emails', 'phones'],
customData: {contact_id: 'lead_123'}
},
{
firstName: 'Jane',
lastName: 'Smith',
companyName: 'Precept AI',
enrichType: ['emails'],
customData: {contact_id: 'lead_456'}
}
],
includeContactDetails: true,
interests: ['Banking', 'Insurance'],
generateMessage: ['email', 'linkedin']
})
};
fetch('https://api.preceptai.co.uk/v1/leads/enrich', 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.preceptai.co.uk/v1/leads/enrich",
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([
'name' => 'Q3 Lead List',
'webhookUrl' => 'https://your-site.com/webhook',
'leads' => [
[
'linkedinUrl' => 'https://linkedin.com/in/johndoe',
'enrichType' => [
'emails',
'phones'
],
'customData' => [
'contact_id' => 'lead_123'
]
],
[
'firstName' => 'Jane',
'lastName' => 'Smith',
'companyName' => 'Precept AI',
'enrichType' => [
'emails'
],
'customData' => [
'contact_id' => 'lead_456'
]
]
],
'includeContactDetails' => true,
'interests' => [
'Banking',
'Insurance'
],
'generateMessage' => [
'email',
'linkedin'
]
]),
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.preceptai.co.uk/v1/leads/enrich"
payload := strings.NewReader("{\n \"name\": \"Q3 Lead List\",\n \"webhookUrl\": \"https://your-site.com/webhook\",\n \"leads\": [\n {\n \"linkedinUrl\": \"https://linkedin.com/in/johndoe\",\n \"enrichType\": [\n \"emails\",\n \"phones\"\n ],\n \"customData\": {\n \"contact_id\": \"lead_123\"\n }\n },\n {\n \"firstName\": \"Jane\",\n \"lastName\": \"Smith\",\n \"companyName\": \"Precept AI\",\n \"enrichType\": [\n \"emails\"\n ],\n \"customData\": {\n \"contact_id\": \"lead_456\"\n }\n }\n ],\n \"includeContactDetails\": true,\n \"interests\": [\n \"Banking\",\n \"Insurance\"\n ],\n \"generateMessage\": [\n \"email\",\n \"linkedin\"\n ]\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.preceptai.co.uk/v1/leads/enrich")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Q3 Lead List\",\n \"webhookUrl\": \"https://your-site.com/webhook\",\n \"leads\": [\n {\n \"linkedinUrl\": \"https://linkedin.com/in/johndoe\",\n \"enrichType\": [\n \"emails\",\n \"phones\"\n ],\n \"customData\": {\n \"contact_id\": \"lead_123\"\n }\n },\n {\n \"firstName\": \"Jane\",\n \"lastName\": \"Smith\",\n \"companyName\": \"Precept AI\",\n \"enrichType\": [\n \"emails\"\n ],\n \"customData\": {\n \"contact_id\": \"lead_456\"\n }\n }\n ],\n \"includeContactDetails\": true,\n \"interests\": [\n \"Banking\",\n \"Insurance\"\n ],\n \"generateMessage\": [\n \"email\",\n \"linkedin\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.preceptai.co.uk/v1/leads/enrich")
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 \"name\": \"Q3 Lead List\",\n \"webhookUrl\": \"https://your-site.com/webhook\",\n \"leads\": [\n {\n \"linkedinUrl\": \"https://linkedin.com/in/johndoe\",\n \"enrichType\": [\n \"emails\",\n \"phones\"\n ],\n \"customData\": {\n \"contact_id\": \"lead_123\"\n }\n },\n {\n \"firstName\": \"Jane\",\n \"lastName\": \"Smith\",\n \"companyName\": \"Precept AI\",\n \"enrichType\": [\n \"emails\"\n ],\n \"customData\": {\n \"contact_id\": \"lead_456\"\n }\n }\n ],\n \"includeContactDetails\": true,\n \"interests\": [\n \"Banking\",\n \"Insurance\"\n ],\n \"generateMessage\": [\n \"email\",\n \"linkedin\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Enrichment job successfully created and batches are being processed.",
"enrichment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Authorizations
Body
Optional array of outreach channels to generate tailored messages for (e.g. ['email'], ['linkedin'], or ['email', 'linkedin']). Precept generates high-converting, personalized outreach copy using the PIPE framework for email (< 70 words, concise subject) and the SHIP framework for LinkedIn. Messages are returned in the webhook results or polling response.
email, linkedin 