curl --request POST \
--url https://api.orbit.devotel.io/api/v1/compliance/consent/receipts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_id": "contact_01H8XY",
"consent_manager_id": "cm-acme-prod",
"channel": "sms",
"consent_type": "marketing",
"receipt": {
"receipt_id": "rcpt-2026-07-abc123",
"issued_at": "2026-07-03T10:00:00Z",
"expires_at": "2027-07-03T10:00:00Z",
"purpose": "Promotional SMS about Acme offers",
"fiduciary_id": "acme-in-001",
"signature": "MEUCIQ...base64url...",
"payload": {
"receipt_id": "rcpt-2026-07-abc123",
"purpose": "Promotional SMS about Acme offers"
}
}
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/compliance/consent/receipts"
payload = {
"contact_id": "contact_01H8XY",
"consent_manager_id": "cm-acme-prod",
"channel": "sms",
"consent_type": "marketing",
"receipt": {
"receipt_id": "rcpt-2026-07-abc123",
"issued_at": "2026-07-03T10:00:00Z",
"expires_at": "2027-07-03T10:00:00Z",
"purpose": "Promotional SMS about Acme offers",
"fiduciary_id": "acme-in-001",
"signature": "MEUCIQ...base64url...",
"payload": {
"receipt_id": "rcpt-2026-07-abc123",
"purpose": "Promotional SMS about Acme offers"
}
}
}
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: 'contact_01H8XY',
consent_manager_id: 'cm-acme-prod',
channel: 'sms',
consent_type: 'marketing',
receipt: {
receipt_id: 'rcpt-2026-07-abc123',
issued_at: '2026-07-03T10:00:00Z',
expires_at: '2027-07-03T10:00:00Z',
purpose: 'Promotional SMS about Acme offers',
fiduciary_id: 'acme-in-001',
signature: 'MEUCIQ...base64url...',
payload: {
receipt_id: 'rcpt-2026-07-abc123',
purpose: 'Promotional SMS about Acme offers'
}
}
})
};
fetch('https://api.orbit.devotel.io/api/v1/compliance/consent/receipts', 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/compliance/consent/receipts",
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' => 'contact_01H8XY',
'consent_manager_id' => 'cm-acme-prod',
'channel' => 'sms',
'consent_type' => 'marketing',
'receipt' => [
'receipt_id' => 'rcpt-2026-07-abc123',
'issued_at' => '2026-07-03T10:00:00Z',
'expires_at' => '2027-07-03T10:00:00Z',
'purpose' => 'Promotional SMS about Acme offers',
'fiduciary_id' => 'acme-in-001',
'signature' => 'MEUCIQ...base64url...',
'payload' => [
'receipt_id' => 'rcpt-2026-07-abc123',
'purpose' => 'Promotional SMS about Acme offers'
]
]
]),
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/compliance/consent/receipts"
payload := strings.NewReader("{\n \"contact_id\": \"contact_01H8XY\",\n \"consent_manager_id\": \"cm-acme-prod\",\n \"channel\": \"sms\",\n \"consent_type\": \"marketing\",\n \"receipt\": {\n \"receipt_id\": \"rcpt-2026-07-abc123\",\n \"issued_at\": \"2026-07-03T10:00:00Z\",\n \"expires_at\": \"2027-07-03T10:00:00Z\",\n \"purpose\": \"Promotional SMS about Acme offers\",\n \"fiduciary_id\": \"acme-in-001\",\n \"signature\": \"MEUCIQ...base64url...\",\n \"payload\": {\n \"receipt_id\": \"rcpt-2026-07-abc123\",\n \"purpose\": \"Promotional SMS about Acme offers\"\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/compliance/consent/receipts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contact_id\": \"contact_01H8XY\",\n \"consent_manager_id\": \"cm-acme-prod\",\n \"channel\": \"sms\",\n \"consent_type\": \"marketing\",\n \"receipt\": {\n \"receipt_id\": \"rcpt-2026-07-abc123\",\n \"issued_at\": \"2026-07-03T10:00:00Z\",\n \"expires_at\": \"2027-07-03T10:00:00Z\",\n \"purpose\": \"Promotional SMS about Acme offers\",\n \"fiduciary_id\": \"acme-in-001\",\n \"signature\": \"MEUCIQ...base64url...\",\n \"payload\": {\n \"receipt_id\": \"rcpt-2026-07-abc123\",\n \"purpose\": \"Promotional SMS about Acme offers\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/compliance/consent/receipts")
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\": \"contact_01H8XY\",\n \"consent_manager_id\": \"cm-acme-prod\",\n \"channel\": \"sms\",\n \"consent_type\": \"marketing\",\n \"receipt\": {\n \"receipt_id\": \"rcpt-2026-07-abc123\",\n \"issued_at\": \"2026-07-03T10:00:00Z\",\n \"expires_at\": \"2027-07-03T10:00:00Z\",\n \"purpose\": \"Promotional SMS about Acme offers\",\n \"fiduciary_id\": \"acme-in-001\",\n \"signature\": \"MEUCIQ...base64url...\",\n \"payload\": {\n \"receipt_id\": \"rcpt-2026-07-abc123\",\n \"purpose\": \"Promotional SMS about Acme offers\"\n }\n }\n}"
response = http.request(request)
puts response.read_bodyMint and persist a signed consent receipt
Persist a Consent Manager’s signed receipt as an opt-in consent record for a contact and channel. The receipt envelope is first structurally validated (ISO-8601 timestamps, Base64URL signature, non-empty payload, signed-field consistency), then its ECDSA P-256 signature is verified against the issuing manager’s registered public key before anything is stored — an unknown/inactive manager or a failed signature returns CONSENT_RECEIPT_INVALID and persists nothing. Use it to record confirmed-consent proof captured through a DPDP Consent Manager.
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/compliance/consent/receipts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_id": "contact_01H8XY",
"consent_manager_id": "cm-acme-prod",
"channel": "sms",
"consent_type": "marketing",
"receipt": {
"receipt_id": "rcpt-2026-07-abc123",
"issued_at": "2026-07-03T10:00:00Z",
"expires_at": "2027-07-03T10:00:00Z",
"purpose": "Promotional SMS about Acme offers",
"fiduciary_id": "acme-in-001",
"signature": "MEUCIQ...base64url...",
"payload": {
"receipt_id": "rcpt-2026-07-abc123",
"purpose": "Promotional SMS about Acme offers"
}
}
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/compliance/consent/receipts"
payload = {
"contact_id": "contact_01H8XY",
"consent_manager_id": "cm-acme-prod",
"channel": "sms",
"consent_type": "marketing",
"receipt": {
"receipt_id": "rcpt-2026-07-abc123",
"issued_at": "2026-07-03T10:00:00Z",
"expires_at": "2027-07-03T10:00:00Z",
"purpose": "Promotional SMS about Acme offers",
"fiduciary_id": "acme-in-001",
"signature": "MEUCIQ...base64url...",
"payload": {
"receipt_id": "rcpt-2026-07-abc123",
"purpose": "Promotional SMS about Acme offers"
}
}
}
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: 'contact_01H8XY',
consent_manager_id: 'cm-acme-prod',
channel: 'sms',
consent_type: 'marketing',
receipt: {
receipt_id: 'rcpt-2026-07-abc123',
issued_at: '2026-07-03T10:00:00Z',
expires_at: '2027-07-03T10:00:00Z',
purpose: 'Promotional SMS about Acme offers',
fiduciary_id: 'acme-in-001',
signature: 'MEUCIQ...base64url...',
payload: {
receipt_id: 'rcpt-2026-07-abc123',
purpose: 'Promotional SMS about Acme offers'
}
}
})
};
fetch('https://api.orbit.devotel.io/api/v1/compliance/consent/receipts', 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/compliance/consent/receipts",
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' => 'contact_01H8XY',
'consent_manager_id' => 'cm-acme-prod',
'channel' => 'sms',
'consent_type' => 'marketing',
'receipt' => [
'receipt_id' => 'rcpt-2026-07-abc123',
'issued_at' => '2026-07-03T10:00:00Z',
'expires_at' => '2027-07-03T10:00:00Z',
'purpose' => 'Promotional SMS about Acme offers',
'fiduciary_id' => 'acme-in-001',
'signature' => 'MEUCIQ...base64url...',
'payload' => [
'receipt_id' => 'rcpt-2026-07-abc123',
'purpose' => 'Promotional SMS about Acme offers'
]
]
]),
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/compliance/consent/receipts"
payload := strings.NewReader("{\n \"contact_id\": \"contact_01H8XY\",\n \"consent_manager_id\": \"cm-acme-prod\",\n \"channel\": \"sms\",\n \"consent_type\": \"marketing\",\n \"receipt\": {\n \"receipt_id\": \"rcpt-2026-07-abc123\",\n \"issued_at\": \"2026-07-03T10:00:00Z\",\n \"expires_at\": \"2027-07-03T10:00:00Z\",\n \"purpose\": \"Promotional SMS about Acme offers\",\n \"fiduciary_id\": \"acme-in-001\",\n \"signature\": \"MEUCIQ...base64url...\",\n \"payload\": {\n \"receipt_id\": \"rcpt-2026-07-abc123\",\n \"purpose\": \"Promotional SMS about Acme offers\"\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/compliance/consent/receipts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contact_id\": \"contact_01H8XY\",\n \"consent_manager_id\": \"cm-acme-prod\",\n \"channel\": \"sms\",\n \"consent_type\": \"marketing\",\n \"receipt\": {\n \"receipt_id\": \"rcpt-2026-07-abc123\",\n \"issued_at\": \"2026-07-03T10:00:00Z\",\n \"expires_at\": \"2027-07-03T10:00:00Z\",\n \"purpose\": \"Promotional SMS about Acme offers\",\n \"fiduciary_id\": \"acme-in-001\",\n \"signature\": \"MEUCIQ...base64url...\",\n \"payload\": {\n \"receipt_id\": \"rcpt-2026-07-abc123\",\n \"purpose\": \"Promotional SMS about Acme offers\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/compliance/consent/receipts")
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\": \"contact_01H8XY\",\n \"consent_manager_id\": \"cm-acme-prod\",\n \"channel\": \"sms\",\n \"consent_type\": \"marketing\",\n \"receipt\": {\n \"receipt_id\": \"rcpt-2026-07-abc123\",\n \"issued_at\": \"2026-07-03T10:00:00Z\",\n \"expires_at\": \"2027-07-03T10:00:00Z\",\n \"purpose\": \"Promotional SMS about Acme offers\",\n \"fiduciary_id\": \"acme-in-001\",\n \"signature\": \"MEUCIQ...base64url...\",\n \"payload\": {\n \"receipt_id\": \"rcpt-2026-07-abc123\",\n \"purpose\": \"Promotional SMS about Acme offers\"\n }\n }\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Dashboard JWT token from Clerk
Body
The contact this consent covers.
1 - 64The manager_id of the registered Consent Manager that signed the receipt.
1 - 200The channel the consent applies to (e.g. sms, whatsapp, email).
1 - 40The consent purpose/type recorded on the grant.
1 - 80The Consent Manager's signed receipt envelope.
Show child attributes
Show child attributes
Response
Receipt verified and persisted — returns { id, receipt_id, verified: true }.