Receive a Salesforce webhook event
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/integrations/webhooks/salesforce \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"org_id": "00D5f000000abcdEAA",
"events": [
{
"event_uuid": "8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f",
"event_type": "contact.created",
"occurred_at": "2026-08-09T12:00:00Z",
"object": {
"Id": "0035f00000XYZ12",
"Email": "dana@example.com"
}
}
]
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/integrations/webhooks/salesforce"
payload = {
"org_id": "00D5f000000abcdEAA",
"events": [
{
"event_uuid": "8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f",
"event_type": "contact.created",
"occurred_at": "2026-08-09T12:00:00Z",
"object": {
"Id": "0035f00000XYZ12",
"Email": "dana@example.com"
}
}
]
}
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({
org_id: '00D5f000000abcdEAA',
events: [
{
event_uuid: '8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f',
event_type: 'contact.created',
occurred_at: '2026-08-09T12:00:00Z',
object: {Id: '0035f00000XYZ12', Email: 'dana@example.com'}
}
]
})
};
fetch('https://api.orbit.devotel.io/api/v1/integrations/webhooks/salesforce', 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/integrations/webhooks/salesforce",
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([
'org_id' => '00D5f000000abcdEAA',
'events' => [
[
'event_uuid' => '8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f',
'event_type' => 'contact.created',
'occurred_at' => '2026-08-09T12:00:00Z',
'object' => [
'Id' => '0035f00000XYZ12',
'Email' => 'dana@example.com'
]
]
]
]),
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/integrations/webhooks/salesforce"
payload := strings.NewReader("{\n \"org_id\": \"00D5f000000abcdEAA\",\n \"events\": [\n {\n \"event_uuid\": \"8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f\",\n \"event_type\": \"contact.created\",\n \"occurred_at\": \"2026-08-09T12:00:00Z\",\n \"object\": {\n \"Id\": \"0035f00000XYZ12\",\n \"Email\": \"dana@example.com\"\n }\n }\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/integrations/webhooks/salesforce")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"org_id\": \"00D5f000000abcdEAA\",\n \"events\": [\n {\n \"event_uuid\": \"8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f\",\n \"event_type\": \"contact.created\",\n \"occurred_at\": \"2026-08-09T12:00:00Z\",\n \"object\": {\n \"Id\": \"0035f00000XYZ12\",\n \"Email\": \"dana@example.com\"\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/integrations/webhooks/salesforce")
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 \"org_id\": \"00D5f000000abcdEAA\",\n \"events\": [\n {\n \"event_uuid\": \"8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f\",\n \"event_type\": \"contact.created\",\n \"occurred_at\": \"2026-08-09T12:00:00Z\",\n \"object\": {\n \"Id\": \"0035f00000XYZ12\",\n \"Email\": \"dana@example.com\"\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"received": true,
"org_id": "<string>",
"processed": 123,
"duplicates": 123,
"unrecognised": 123
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Integrations
Receive a Salesforce webhook event
Ingests Salesforce CRM change events (Contact, Lead, Account, Opportunity, Case create/update/delete and Task create) delivered via Outbound Messages, an Apex callout, or a Change-Data-Capture relay, and mirrors them into tenant state so campaign triggers fire in real time. The org_id in the body routes to the connected tenant and the X-Devotel-Sf-Signature HMAC is the authentication — Salesforce calls this endpoint, not your application. Re-deliveries dedupe on event_uuid.
POST
/
api
/
v1
/
integrations
/
webhooks
/
salesforce
Receive a Salesforce webhook event
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/integrations/webhooks/salesforce \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"org_id": "00D5f000000abcdEAA",
"events": [
{
"event_uuid": "8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f",
"event_type": "contact.created",
"occurred_at": "2026-08-09T12:00:00Z",
"object": {
"Id": "0035f00000XYZ12",
"Email": "dana@example.com"
}
}
]
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/integrations/webhooks/salesforce"
payload = {
"org_id": "00D5f000000abcdEAA",
"events": [
{
"event_uuid": "8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f",
"event_type": "contact.created",
"occurred_at": "2026-08-09T12:00:00Z",
"object": {
"Id": "0035f00000XYZ12",
"Email": "dana@example.com"
}
}
]
}
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({
org_id: '00D5f000000abcdEAA',
events: [
{
event_uuid: '8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f',
event_type: 'contact.created',
occurred_at: '2026-08-09T12:00:00Z',
object: {Id: '0035f00000XYZ12', Email: 'dana@example.com'}
}
]
})
};
fetch('https://api.orbit.devotel.io/api/v1/integrations/webhooks/salesforce', 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/integrations/webhooks/salesforce",
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([
'org_id' => '00D5f000000abcdEAA',
'events' => [
[
'event_uuid' => '8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f',
'event_type' => 'contact.created',
'occurred_at' => '2026-08-09T12:00:00Z',
'object' => [
'Id' => '0035f00000XYZ12',
'Email' => 'dana@example.com'
]
]
]
]),
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/integrations/webhooks/salesforce"
payload := strings.NewReader("{\n \"org_id\": \"00D5f000000abcdEAA\",\n \"events\": [\n {\n \"event_uuid\": \"8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f\",\n \"event_type\": \"contact.created\",\n \"occurred_at\": \"2026-08-09T12:00:00Z\",\n \"object\": {\n \"Id\": \"0035f00000XYZ12\",\n \"Email\": \"dana@example.com\"\n }\n }\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/integrations/webhooks/salesforce")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"org_id\": \"00D5f000000abcdEAA\",\n \"events\": [\n {\n \"event_uuid\": \"8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f\",\n \"event_type\": \"contact.created\",\n \"occurred_at\": \"2026-08-09T12:00:00Z\",\n \"object\": {\n \"Id\": \"0035f00000XYZ12\",\n \"Email\": \"dana@example.com\"\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/integrations/webhooks/salesforce")
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 \"org_id\": \"00D5f000000abcdEAA\",\n \"events\": [\n {\n \"event_uuid\": \"8f1d2c34-9b0e-4c1a-b2d3-1a2b3c4d5e6f\",\n \"event_type\": \"contact.created\",\n \"occurred_at\": \"2026-08-09T12:00:00Z\",\n \"object\": {\n \"Id\": \"0035f00000XYZ12\",\n \"Email\": \"dana@example.com\"\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"received": true,
"org_id": "<string>",
"processed": 123,
"duplicates": 123,
"unrecognised": 123
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Body
application/json
⌘I