curl --request POST \
--url https://api.verbose.cx/v1/conversion \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"txn": "order_10482",
"value": 49.99,
"currency": "USD",
"event": "purchase",
"email": "jsmith@example.com",
"phone": "+14155550123",
"external_id": "<string>",
"vid": "<string>",
"vcx": "<string>"
}
'import requests
url = "https://api.verbose.cx/v1/conversion"
payload = {
"txn": "order_10482",
"value": 49.99,
"currency": "USD",
"event": "purchase",
"email": "jsmith@example.com",
"phone": "+14155550123",
"external_id": "<string>",
"vid": "<string>",
"vcx": "<string>"
}
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({
txn: 'order_10482',
value: 49.99,
currency: 'USD',
event: 'purchase',
email: 'jsmith@example.com',
phone: '+14155550123',
external_id: '<string>',
vid: '<string>',
vcx: '<string>'
})
};
fetch('https://api.verbose.cx/v1/conversion', 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.verbose.cx/v1/conversion",
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([
'txn' => 'order_10482',
'value' => 49.99,
'currency' => 'USD',
'event' => 'purchase',
'email' => 'jsmith@example.com',
'phone' => '+14155550123',
'external_id' => '<string>',
'vid' => '<string>',
'vcx' => '<string>'
]),
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.verbose.cx/v1/conversion"
payload := strings.NewReader("{\n \"txn\": \"order_10482\",\n \"value\": 49.99,\n \"currency\": \"USD\",\n \"event\": \"purchase\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"+14155550123\",\n \"external_id\": \"<string>\",\n \"vid\": \"<string>\",\n \"vcx\": \"<string>\"\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.verbose.cx/v1/conversion")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"txn\": \"order_10482\",\n \"value\": 49.99,\n \"currency\": \"USD\",\n \"event\": \"purchase\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"+14155550123\",\n \"external_id\": \"<string>\",\n \"vid\": \"<string>\",\n \"vcx\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbose.cx/v1/conversion")
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 \"txn\": \"order_10482\",\n \"value\": 49.99,\n \"currency\": \"USD\",\n \"event\": \"purchase\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"+14155550123\",\n \"external_id\": \"<string>\",\n \"vid\": \"<string>\",\n \"vcx\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"conversion": {
"recorded": true,
"duplicate": true,
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Record a conversion
Records a conversion from your own backend.
Use this for anything the browser pixel cannot observe: a hosted checkout that does not run your page scripts, a payment captured minutes after the visitor closed the tab, a phone sale, or a deal marked won in your CRM.
The conversion is matched to a contact by the strongest identifier you send — click id, visitor id, external id, phone, then email. If none match a known contact the call is rejected rather than recorded against nobody, because an unattached conversion cannot be attributed and a guessed one would credit the wrong person.
Idempotent on txn. Send the same one on a retry.
curl --request POST \
--url https://api.verbose.cx/v1/conversion \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"txn": "order_10482",
"value": 49.99,
"currency": "USD",
"event": "purchase",
"email": "jsmith@example.com",
"phone": "+14155550123",
"external_id": "<string>",
"vid": "<string>",
"vcx": "<string>"
}
'import requests
url = "https://api.verbose.cx/v1/conversion"
payload = {
"txn": "order_10482",
"value": 49.99,
"currency": "USD",
"event": "purchase",
"email": "jsmith@example.com",
"phone": "+14155550123",
"external_id": "<string>",
"vid": "<string>",
"vcx": "<string>"
}
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({
txn: 'order_10482',
value: 49.99,
currency: 'USD',
event: 'purchase',
email: 'jsmith@example.com',
phone: '+14155550123',
external_id: '<string>',
vid: '<string>',
vcx: '<string>'
})
};
fetch('https://api.verbose.cx/v1/conversion', 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.verbose.cx/v1/conversion",
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([
'txn' => 'order_10482',
'value' => 49.99,
'currency' => 'USD',
'event' => 'purchase',
'email' => 'jsmith@example.com',
'phone' => '+14155550123',
'external_id' => '<string>',
'vid' => '<string>',
'vcx' => '<string>'
]),
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.verbose.cx/v1/conversion"
payload := strings.NewReader("{\n \"txn\": \"order_10482\",\n \"value\": 49.99,\n \"currency\": \"USD\",\n \"event\": \"purchase\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"+14155550123\",\n \"external_id\": \"<string>\",\n \"vid\": \"<string>\",\n \"vcx\": \"<string>\"\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.verbose.cx/v1/conversion")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"txn\": \"order_10482\",\n \"value\": 49.99,\n \"currency\": \"USD\",\n \"event\": \"purchase\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"+14155550123\",\n \"external_id\": \"<string>\",\n \"vid\": \"<string>\",\n \"vcx\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbose.cx/v1/conversion")
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 \"txn\": \"order_10482\",\n \"value\": 49.99,\n \"currency\": \"USD\",\n \"event\": \"purchase\",\n \"email\": \"jsmith@example.com\",\n \"phone\": \"+14155550123\",\n \"external_id\": \"<string>\",\n \"vid\": \"<string>\",\n \"vcx\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"conversion": {
"recorded": true,
"duplicate": true,
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Authorizations
Your API key (as_live_…), created under Settings → API keys.
Body
A conversion that happened where the browser pixel cannot see it — a hosted checkout, a payment captured after the visitor left, a phone sale, or a CRM deal. Send at least one identifier; the strongest one wins.
Your unique id for this conversion. Required: a retried webhook with the same txn is recorded once, never twice.
"order_10482"
Revenue. Omit for a non-sale event.
49.99
"USD"
purchase exits the contact from flows that opted in. Use action or lead for a trackable non-sale.
"purchase"
Identifier. Matched case-insensitively.
Identifier. E.164 preferred; 10- and 11-digit US numbers are normalized.
"+14155550123"
Identifier. Your own id for the person, if you have stored one on the contact.
Identifier. The pixel's visitor id, if your page captured it.
Identifier. The click id from a tracked link.
Response
Recorded, or already recorded.
Show child attributes
Show child attributes
Was this page helpful?