Ingest a group event
curl --request POST \
--url https://api.orbit.devotel.io/cdp/v1/{ingest_id}/group \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-orbit-cdp-nonce: <x-orbit-cdp-nonce>' \
--header 'x-orbit-cdp-signature: <x-orbit-cdp-signature>' \
--header 'x-orbit-cdp-timestamp: <x-orbit-cdp-timestamp>' \
--data '
{
"userId": "user_9f2a",
"groupId": "acct_acme",
"traits": {
"name": "Acme, Inc.",
"plan": "enterprise"
}
}
'import requests
url = "https://api.orbit.devotel.io/cdp/v1/{ingest_id}/group"
payload = {
"userId": "user_9f2a",
"groupId": "acct_acme",
"traits": {
"name": "Acme, Inc.",
"plan": "enterprise"
}
}
headers = {
"x-orbit-cdp-signature": "<x-orbit-cdp-signature>",
"x-orbit-cdp-timestamp": "<x-orbit-cdp-timestamp>",
"x-orbit-cdp-nonce": "<x-orbit-cdp-nonce>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-orbit-cdp-signature': '<x-orbit-cdp-signature>',
'x-orbit-cdp-timestamp': '<x-orbit-cdp-timestamp>',
'x-orbit-cdp-nonce': '<x-orbit-cdp-nonce>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
userId: 'user_9f2a',
groupId: 'acct_acme',
traits: {name: 'Acme, Inc.', plan: 'enterprise'}
})
};
fetch('https://api.orbit.devotel.io/cdp/v1/{ingest_id}/group', 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/cdp/v1/{ingest_id}/group",
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([
'userId' => 'user_9f2a',
'groupId' => 'acct_acme',
'traits' => [
'name' => 'Acme, Inc.',
'plan' => 'enterprise'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-orbit-cdp-nonce: <x-orbit-cdp-nonce>",
"x-orbit-cdp-signature: <x-orbit-cdp-signature>",
"x-orbit-cdp-timestamp: <x-orbit-cdp-timestamp>"
],
]);
$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/cdp/v1/{ingest_id}/group"
payload := strings.NewReader("{\n \"userId\": \"user_9f2a\",\n \"groupId\": \"acct_acme\",\n \"traits\": {\n \"name\": \"Acme, Inc.\",\n \"plan\": \"enterprise\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-orbit-cdp-signature", "<x-orbit-cdp-signature>")
req.Header.Add("x-orbit-cdp-timestamp", "<x-orbit-cdp-timestamp>")
req.Header.Add("x-orbit-cdp-nonce", "<x-orbit-cdp-nonce>")
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/cdp/v1/{ingest_id}/group")
.header("x-orbit-cdp-signature", "<x-orbit-cdp-signature>")
.header("x-orbit-cdp-timestamp", "<x-orbit-cdp-timestamp>")
.header("x-orbit-cdp-nonce", "<x-orbit-cdp-nonce>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"userId\": \"user_9f2a\",\n \"groupId\": \"acct_acme\",\n \"traits\": {\n \"name\": \"Acme, Inc.\",\n \"plan\": \"enterprise\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/cdp/v1/{ingest_id}/group")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-orbit-cdp-signature"] = '<x-orbit-cdp-signature>'
request["x-orbit-cdp-timestamp"] = '<x-orbit-cdp-timestamp>'
request["x-orbit-cdp-nonce"] = '<x-orbit-cdp-nonce>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userId\": \"user_9f2a\",\n \"groupId\": \"acct_acme\",\n \"traits\": {\n \"name\": \"Acme, Inc.\",\n \"plan\": \"enterprise\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"received": true,
"event_id": "<string>",
"contact_id": "<string>"
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}CDP
Ingest a group event
Segment-compatible group call — associates a user with an account, organization or team identified by groupId, carrying optional account traits. Powers B2B account hierarchies read by the account-360 surface. Sign the raw body with your tenant ingest secret (x-orbit-cdp-* headers) and supply either userId or anonymousId.
POST
/
cdp
/
v1
/
{ingest_id}
/
group
Ingest a group event
curl --request POST \
--url https://api.orbit.devotel.io/cdp/v1/{ingest_id}/group \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-orbit-cdp-nonce: <x-orbit-cdp-nonce>' \
--header 'x-orbit-cdp-signature: <x-orbit-cdp-signature>' \
--header 'x-orbit-cdp-timestamp: <x-orbit-cdp-timestamp>' \
--data '
{
"userId": "user_9f2a",
"groupId": "acct_acme",
"traits": {
"name": "Acme, Inc.",
"plan": "enterprise"
}
}
'import requests
url = "https://api.orbit.devotel.io/cdp/v1/{ingest_id}/group"
payload = {
"userId": "user_9f2a",
"groupId": "acct_acme",
"traits": {
"name": "Acme, Inc.",
"plan": "enterprise"
}
}
headers = {
"x-orbit-cdp-signature": "<x-orbit-cdp-signature>",
"x-orbit-cdp-timestamp": "<x-orbit-cdp-timestamp>",
"x-orbit-cdp-nonce": "<x-orbit-cdp-nonce>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-orbit-cdp-signature': '<x-orbit-cdp-signature>',
'x-orbit-cdp-timestamp': '<x-orbit-cdp-timestamp>',
'x-orbit-cdp-nonce': '<x-orbit-cdp-nonce>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
userId: 'user_9f2a',
groupId: 'acct_acme',
traits: {name: 'Acme, Inc.', plan: 'enterprise'}
})
};
fetch('https://api.orbit.devotel.io/cdp/v1/{ingest_id}/group', 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/cdp/v1/{ingest_id}/group",
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([
'userId' => 'user_9f2a',
'groupId' => 'acct_acme',
'traits' => [
'name' => 'Acme, Inc.',
'plan' => 'enterprise'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-orbit-cdp-nonce: <x-orbit-cdp-nonce>",
"x-orbit-cdp-signature: <x-orbit-cdp-signature>",
"x-orbit-cdp-timestamp: <x-orbit-cdp-timestamp>"
],
]);
$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/cdp/v1/{ingest_id}/group"
payload := strings.NewReader("{\n \"userId\": \"user_9f2a\",\n \"groupId\": \"acct_acme\",\n \"traits\": {\n \"name\": \"Acme, Inc.\",\n \"plan\": \"enterprise\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-orbit-cdp-signature", "<x-orbit-cdp-signature>")
req.Header.Add("x-orbit-cdp-timestamp", "<x-orbit-cdp-timestamp>")
req.Header.Add("x-orbit-cdp-nonce", "<x-orbit-cdp-nonce>")
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/cdp/v1/{ingest_id}/group")
.header("x-orbit-cdp-signature", "<x-orbit-cdp-signature>")
.header("x-orbit-cdp-timestamp", "<x-orbit-cdp-timestamp>")
.header("x-orbit-cdp-nonce", "<x-orbit-cdp-nonce>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"userId\": \"user_9f2a\",\n \"groupId\": \"acct_acme\",\n \"traits\": {\n \"name\": \"Acme, Inc.\",\n \"plan\": \"enterprise\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/cdp/v1/{ingest_id}/group")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-orbit-cdp-signature"] = '<x-orbit-cdp-signature>'
request["x-orbit-cdp-timestamp"] = '<x-orbit-cdp-timestamp>'
request["x-orbit-cdp-nonce"] = '<x-orbit-cdp-nonce>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userId\": \"user_9f2a\",\n \"groupId\": \"acct_acme\",\n \"traits\": {\n \"name\": \"Acme, Inc.\",\n \"plan\": \"enterprise\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"received": true,
"event_id": "<string>",
"contact_id": "<string>"
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Headers
HMAC-SHA256 of the raw request body, keyed by the tenant ingest secret.
Unix-epoch seconds the payload was signed; rejected outside the replay window.
Unique per-request nonce used to reject replays.
Path Parameters
Public, tenant-bound ingest identifier from your CDP source config.
Body
application/json
⌘I