Check channel consent for a contact
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/cdp/consent/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_id": "cont_01H9XABC1234",
"channel": "sms",
"policy_template": "gdpr"
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/cdp/consent/check"
payload = {
"contact_id": "cont_01H9XABC1234",
"channel": "sms",
"policy_template": "gdpr"
}
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_01H9XABC1234', channel: 'sms', policy_template: 'gdpr'})
};
fetch('https://api.orbit.devotel.io/api/v1/cdp/consent/check', 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/consent/check",
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_01H9XABC1234',
'channel' => 'sms',
'policy_template' => 'gdpr'
]),
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/cdp/consent/check"
payload := strings.NewReader("{\n \"contact_id\": \"cont_01H9XABC1234\",\n \"channel\": \"sms\",\n \"policy_template\": \"gdpr\"\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/cdp/consent/check")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contact_id\": \"cont_01H9XABC1234\",\n \"channel\": \"sms\",\n \"policy_template\": \"gdpr\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/consent/check")
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_01H9XABC1234\",\n \"channel\": \"sms\",\n \"policy_template\": \"gdpr\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"allowed": true,
"reason": "allowed",
"consent_record_id": "cnst_01H9XGHI9012",
"granted_at": "2026-05-01T09:30:00.000Z",
"valid_until": null
},
"meta": {
"request_id": "req_01H9XREQ0004",
"timestamp": "2026-08-03T12:00:00.000Z"
}
}CDP
Check channel consent for a contact
Return a single allow/block consent verdict for one contact and delivery channel, optionally scoped to a regulatory policy template. This is the high-throughput gate the destination dispatch path calls per send; it reconciles the consent ledger with the contact’s channel-preference profile and never writes an audit row.
POST
/
api
/
v1
/
cdp
/
consent
/
check
Check channel consent for a contact
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/cdp/consent/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_id": "cont_01H9XABC1234",
"channel": "sms",
"policy_template": "gdpr"
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/cdp/consent/check"
payload = {
"contact_id": "cont_01H9XABC1234",
"channel": "sms",
"policy_template": "gdpr"
}
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_01H9XABC1234', channel: 'sms', policy_template: 'gdpr'})
};
fetch('https://api.orbit.devotel.io/api/v1/cdp/consent/check', 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/consent/check",
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_01H9XABC1234',
'channel' => 'sms',
'policy_template' => 'gdpr'
]),
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/cdp/consent/check"
payload := strings.NewReader("{\n \"contact_id\": \"cont_01H9XABC1234\",\n \"channel\": \"sms\",\n \"policy_template\": \"gdpr\"\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/cdp/consent/check")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contact_id\": \"cont_01H9XABC1234\",\n \"channel\": \"sms\",\n \"policy_template\": \"gdpr\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/cdp/consent/check")
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_01H9XABC1234\",\n \"channel\": \"sms\",\n \"policy_template\": \"gdpr\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"allowed": true,
"reason": "allowed",
"consent_record_id": "cnst_01H9XGHI9012",
"granted_at": "2026-05-01T09:30:00.000Z",
"valid_until": null
},
"meta": {
"request_id": "req_01H9XREQ0004",
"timestamp": "2026-08-03T12:00:00.000Z"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Body
application/json
Contact to evaluate consent for.
Required string length:
1 - 120Delivery channel the consent gate applies to.
Available options:
sms, mms, voice, email, push, whatsapp, fax Optional regulatory template the grant must match. other matches any template.
Available options:
gdpr, ccpa, lgpd, cpra, other ⌘I