Enrich Contact
curl --request POST \
--url https://api.example.com/contacts/{contact_id}/enrich \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/contacts/{contact_id}/enrich"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/contacts/{contact_id}/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.example.com/contacts/{contact_id}/enrich",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/contacts/{contact_id}/enrich"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.example.com/contacts/{contact_id}/enrich")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/contacts/{contact_id}/enrich")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Contacts
Start Enrichment
Enqueue a Temporal enrichment workflow for the contact.
Returns 202 with { job_id } immediately. Frontend polls
GET /contacts/{contact_id}/enrich-status for progress.
POST
/
contacts
/
{contact_id}
/
enrich
Enrich Contact
curl --request POST \
--url https://api.example.com/contacts/{contact_id}/enrich \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/contacts/{contact_id}/enrich"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/contacts/{contact_id}/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.example.com/contacts/{contact_id}/enrich",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/contacts/{contact_id}/enrich"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.example.com/contacts/{contact_id}/enrich")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/contacts/{contact_id}/enrich")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Runs a Temporal pipeline (Apollo people-search → Scrapin profile match → Hunter email verification → photo resolution) against a single contact, writing provider-namespaced results into
enrichment_data. It follows the same start/poll shape as CSV import.
Before enqueuing a workflow, checks a same-domain cache: if another contact on the same email domain has fresh (< 30 days old) cached enrichment, that’s returned synchronously as 200 and no workflow runs. Otherwise, resets the contact’s progress tracking (enrichment_data.meta, preserving any prior provider data) and starts ContactEnrichmentWorkflow, returning 202 immediately.
Auth
Requires a CRM manage scope and an active organization on the token. Any*:manage scope qualifies — in practice contacts:manage, deals:manage, companies:manage, or activities:manage.
Response
Either:200(cache hit) —{ "ok": true, "cached": true, "enrichment": <cached enrichment object> }202(workflow started) —{ "job_id": "<temporal workflow id>" }. Poll Get enrichment status with the samecontact_id(the job ID isn’t needed for polling — status is read off the contact row).
Errors
| Status | Cause |
|---|---|
404 | Contact not found. |
502 | Failed to start the Temporal workflow (contact’s enrichment_status is set to failed first). |