Capture progressive-profiling answers + return the next fields
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture \
--header 'Content-Type: application/json' \
--data '
{
"contact_id": "cnt_01J8XF3T4W5Q6N7V8R9M0K1P",
"values": {
"company_size": 250,
"billing_pref": "email"
},
"max": 3
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture"
payload = {
"contact_id": "cnt_01J8XF3T4W5Q6N7V8R9M0K1P",
"values": {
"company_size": 250,
"billing_pref": "email"
},
"max": 3
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
contact_id: 'cnt_01J8XF3T4W5Q6N7V8R9M0K1P',
values: {company_size: 250, billing_pref: 'email'},
max: 3
})
};
fetch('https://api.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture', 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.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture",
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_id' => 'cnt_01J8XF3T4W5Q6N7V8R9M0K1P',
'values' => [
'company_size' => 250,
'billing_pref' => 'email'
],
'max' => 3
]),
CURLOPT_HTTPHEADER => [
"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.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture"
payload := strings.NewReader("{\n \"contact_id\": \"cnt_01J8XF3T4W5Q6N7V8R9M0K1P\",\n \"values\": {\n \"company_size\": 250,\n \"billing_pref\": \"email\"\n },\n \"max\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
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.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture")
.header("Content-Type", "application/json")
.body("{\n \"contact_id\": \"cnt_01J8XF3T4W5Q6N7V8R9M0K1P\",\n \"values\": {\n \"company_size\": 250,\n \"billing_pref\": \"email\"\n },\n \"max\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"contact_id\": \"cnt_01J8XF3T4W5Q6N7V8R9M0K1P\",\n \"values\": {\n \"company_size\": 250,\n \"billing_pref\": \"email\"\n },\n \"max\": 3\n}"
response = http.request(request)
puts response.read_body{
"data": {
"contact_id": "cnt_01J8XF3T4W5Q6N7V8R9M0K1P",
"applied": [
"company_size",
"billing_pref"
],
"skipped": [],
"fields": [
{
"key": "industry",
"name": "Industry",
"type": "text",
"options": null,
"required": false,
"description": null
}
],
"known_count": 6,
"total_candidates": 7,
"remaining": 1,
"complete": false
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-19T12:00:00.000Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "<string>",
"status": 429,
"retry_after": 2
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}CDP
Capture progressive-profiling answers + return the next fields
Persists the answers a visitor just supplied onto the contact’s custom attributes, then returns the next unanswered fields so the widget can chain sessions without a second round-trip. Values are validated against the tenant’s custom-field definitions — keys with no definition are reported in skipped (never silently written) and an out-of-type value is a 422. Requires owner/admin/developer.
POST
/
api
/
v1
/
cdp
/
progressive-profiling
/
capture
Capture progressive-profiling answers + return the next fields
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture \
--header 'Content-Type: application/json' \
--data '
{
"contact_id": "cnt_01J8XF3T4W5Q6N7V8R9M0K1P",
"values": {
"company_size": 250,
"billing_pref": "email"
},
"max": 3
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture"
payload = {
"contact_id": "cnt_01J8XF3T4W5Q6N7V8R9M0K1P",
"values": {
"company_size": 250,
"billing_pref": "email"
},
"max": 3
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
contact_id: 'cnt_01J8XF3T4W5Q6N7V8R9M0K1P',
values: {company_size: 250, billing_pref: 'email'},
max: 3
})
};
fetch('https://api.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture', 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.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture",
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_id' => 'cnt_01J8XF3T4W5Q6N7V8R9M0K1P',
'values' => [
'company_size' => 250,
'billing_pref' => 'email'
],
'max' => 3
]),
CURLOPT_HTTPHEADER => [
"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.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture"
payload := strings.NewReader("{\n \"contact_id\": \"cnt_01J8XF3T4W5Q6N7V8R9M0K1P\",\n \"values\": {\n \"company_size\": 250,\n \"billing_pref\": \"email\"\n },\n \"max\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
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.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture")
.header("Content-Type", "application/json")
.body("{\n \"contact_id\": \"cnt_01J8XF3T4W5Q6N7V8R9M0K1P\",\n \"values\": {\n \"company_size\": 250,\n \"billing_pref\": \"email\"\n },\n \"max\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/progressive-profiling/capture")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"contact_id\": \"cnt_01J8XF3T4W5Q6N7V8R9M0K1P\",\n \"values\": {\n \"company_size\": 250,\n \"billing_pref\": \"email\"\n },\n \"max\": 3\n}"
response = http.request(request)
puts response.read_body{
"data": {
"contact_id": "cnt_01J8XF3T4W5Q6N7V8R9M0K1P",
"applied": [
"company_size",
"billing_pref"
],
"skipped": [],
"fields": [
{
"key": "industry",
"name": "Industry",
"type": "text",
"options": null,
"required": false,
"description": null
}
],
"known_count": 6,
"total_candidates": 7,
"remaining": 1,
"complete": false
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-19T12:00:00.000Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "<string>",
"status": 429,
"retry_after": 2
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Body
application/json
Response
Which answers landed, which were skipped (no definition), and the next fields to ask.
Which answers landed, which were skipped (no definition), and the next fields to ask.