Record a conversion for a goal
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/analytics/goals/{id}/record \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_id": "cont_5aa9d21f",
"value_cents": 4999,
"metadata": {
"source": "crm",
"order_id": "ord_10482"
}
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/analytics/goals/{id}/record"
payload = {
"contact_id": "cont_5aa9d21f",
"value_cents": 4999,
"metadata": {
"source": "crm",
"order_id": "ord_10482"
}
}
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_id: 'cont_5aa9d21f',
value_cents: 4999,
metadata: {source: 'crm', order_id: 'ord_10482'}
})
};
fetch('https://api.orbit.devotel.io/api/v1/analytics/goals/{id}/record', 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/analytics/goals/{id}/record",
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' => 'cont_5aa9d21f',
'value_cents' => 4999,
'metadata' => [
'source' => 'crm',
'order_id' => 'ord_10482'
]
]),
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.orbit.devotel.io/api/v1/analytics/goals/{id}/record"
payload := strings.NewReader("{\n \"contact_id\": \"cont_5aa9d21f\",\n \"value_cents\": 4999,\n \"metadata\": {\n \"source\": \"crm\",\n \"order_id\": \"ord_10482\"\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.orbit.devotel.io/api/v1/analytics/goals/{id}/record")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contact_id\": \"cont_5aa9d21f\",\n \"value_cents\": 4999,\n \"metadata\": {\n \"source\": \"crm\",\n \"order_id\": \"ord_10482\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/analytics/goals/{id}/record")
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_id\": \"cont_5aa9d21f\",\n \"value_cents\": 4999,\n \"metadata\": {\n \"source\": \"crm\",\n \"order_id\": \"ord_10482\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"written": 1,
"conversions": [
{
"id": "conv_88ab12",
"goal_id": "goal_7Fb2c1a7b",
"contact_id": "cont_5aa9d21f",
"value_cents": 4999,
"attributed_message_id": "msg_71ce90",
"attributed_campaign_id": null,
"attributed_agent_id": null,
"conversion_time": "2026-08-02T12:00:00.000Z",
"metadata": {
"source": "crm",
"order_id": "ord_10482"
}
}
]
},
"meta": {
"request_id": "req_9f2c1a7b",
"timestamp": "2026-08-02T12:00:00.000Z"
}
}Analytics
Record a conversion for a goal
Records one or more conversions against a goal — the manual/server-to-server counterpart to the tracking pixel. Attach a contact_id, an optional value_cents override and free-form metadata. Server-to-server callers may authenticate the contact by sending an Authorization: HMAC <contactId>:<sig> header (sig = HMAC-SHA256 of goalId:contactId with the tenant API secret); an unsigned external contact_id is never accepted. Returns the recorded conversion rows (201).
POST
/
api
/
v1
/
analytics
/
goals
/
{id}
/
record
Record a conversion for a goal
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/analytics/goals/{id}/record \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_id": "cont_5aa9d21f",
"value_cents": 4999,
"metadata": {
"source": "crm",
"order_id": "ord_10482"
}
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/analytics/goals/{id}/record"
payload = {
"contact_id": "cont_5aa9d21f",
"value_cents": 4999,
"metadata": {
"source": "crm",
"order_id": "ord_10482"
}
}
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_id: 'cont_5aa9d21f',
value_cents: 4999,
metadata: {source: 'crm', order_id: 'ord_10482'}
})
};
fetch('https://api.orbit.devotel.io/api/v1/analytics/goals/{id}/record', 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/analytics/goals/{id}/record",
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' => 'cont_5aa9d21f',
'value_cents' => 4999,
'metadata' => [
'source' => 'crm',
'order_id' => 'ord_10482'
]
]),
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.orbit.devotel.io/api/v1/analytics/goals/{id}/record"
payload := strings.NewReader("{\n \"contact_id\": \"cont_5aa9d21f\",\n \"value_cents\": 4999,\n \"metadata\": {\n \"source\": \"crm\",\n \"order_id\": \"ord_10482\"\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.orbit.devotel.io/api/v1/analytics/goals/{id}/record")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contact_id\": \"cont_5aa9d21f\",\n \"value_cents\": 4999,\n \"metadata\": {\n \"source\": \"crm\",\n \"order_id\": \"ord_10482\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/analytics/goals/{id}/record")
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_id\": \"cont_5aa9d21f\",\n \"value_cents\": 4999,\n \"metadata\": {\n \"source\": \"crm\",\n \"order_id\": \"ord_10482\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"written": 1,
"conversions": [
{
"id": "conv_88ab12",
"goal_id": "goal_7Fb2c1a7b",
"contact_id": "cont_5aa9d21f",
"value_cents": 4999,
"attributed_message_id": "msg_71ce90",
"attributed_campaign_id": null,
"attributed_agent_id": null,
"conversion_time": "2026-08-02T12:00:00.000Z",
"metadata": {
"source": "crm",
"order_id": "ord_10482"
}
}
]
},
"meta": {
"request_id": "req_9f2c1a7b",
"timestamp": "2026-08-02T12:00:00.000Z"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Path Parameters
Goal id.
Body
application/json
⌘I