Privacy Request Webhooks
Send privacy requests to your own endpoint or automation tool: the signed event Concord sends, how to verify it, and how to answer.
Overview
A webhook method sends a signed event to your endpoint when a verified privacy request needs a data system checked, opted out, or erased. Your endpoint verifies the signature and answers with what it found. Use it for in-house systems, or to hand requests to an automation tool.
Each data system's methods run when a request is verified. An opt-out from your Privacy Center has no email check, so it runs on its own, up to 100 a day for your organization, and past that when a team member clicks Re-check on the request. A webhook method gets one event per request, for the request types it is set up for. The result shows on the request under that data system, and the system's checkbox ticks once every result for it is settled.
Webhook methods are part of request handling on Concord Privacy Premium and Enterprise. See Handling Privacy Requests in Your Data Systems.
Set Up a Webhook
- Open Data Hub > Systems, pick the system, and open its Automations tab.
- On a request type's row under Privacy Requests, click Set Up and choose Send to a Webhook.
- Enter the Webhook URL.
- Pick the Request Types it handles. Opt-outs change data in your system, so they also need the confirmation checkbox. Turn on Include Phone Number to send the person's phone number when they gave one.
- Save, then copy the signing secret. It starts with
whsec_and is shown once. - Choose Send Test from the method's menu (see Test Your Endpoint).
Rotate Secret in the same menu issues a new secret and shows it once. The current secret stops working right away, so update your endpoint as soon as you rotate.
The URL must be a public https:// address with a hostname. Concord refuses localhost and IP addresses, along with hosts that resolve to private, loopback, or link-local addresses, and does not follow redirects.
The Event
Concord sends POST with content-type: application/json.
Headers
| Header | Example | Meaning |
|---|---|---|
x-concord-signature | v1=5f2b… | v1= plus the hex HMAC-SHA256 described below |
x-concord-timestamp | 1794312496 | Unix seconds when Concord signed the event |
x-concord-event-type | privacy_request.lookup | Same as the body's type |
x-concord-delivery-id | 0f6c3c2e-… | Unique per event; a retry keeps it, so you can skip a repeat |
x-concord-test | true | Only on Send Test events |
user-agent | Concord-Webhooks/1.0 |
Body
{
"id": "0f6c3c2e-7c1b-4b4e-9a53-2f6a1c0d9b11",
"type": "privacy_request.lookup",
"createdAt": "2026-11-11T17:20:00.000Z",
"data": {
"requestId": "3e8daa1b-5d0e-4c55-a3c3-6f0d6b0f2a10",
"dataSystemId": "f543cec7-2a4b-4d1f-9f0e-1c9b2e7d4a33",
"operation": "lookup",
"requestType": "view",
"identity": { "email": "emily.johnson@example.com" },
"dueDate": "2026-12-10T00:00:00.000Z",
"callbackUrl": "https://api.concord.tech/privacy-v1/request-callbacks/<token>"
}
}| Field | Notes |
|---|---|
data.requestId | The privacy request. The same request can send more than one event (for example after Re-check). |
data.operation | lookup, opt_out, or erase |
data.requestType | view, delete, do_not_sell, restrict, or object |
data.identity.phone | Sent only when the method has Include Phone Number turned on |
data.dueDate | The legal deadline for the request, when one applies |
data.callbackUrl | Where to send the answer if you reply 202. Use it exactly as given. |
test | true on Send Test events only |
The event carries the person's identity and nothing they typed into the request form.
Operations
| Request type | Operation | What your endpoint does |
|---|---|---|
Get a Copy (view), Delete Data (delete) | lookup | Says whether it holds records for this person |
| Don't Sell or Share, Limit Use of My Data, Object / Opt Out of Profiling | opt_out | Opts the person out, then says so |
| Delete Data, after Review Deletions | erase | Deletes the person's records, then says so |
A Delete Data request starts with a lookup. An erase event goes out only after a team member requests the deletion in Review Deletions and confirms it. Deletion through Concord is in early access; contact your Concord representative to turn it on.
Verify the Signature
The signature is an HMAC-SHA256, keyed with your whole secret (including whsec_), over the timestamp header, a period, and the raw request body:
v1= hex( HMAC_SHA256( secret, "<x-concord-timestamp>.<raw body>" ) )Verify against the raw bytes you received. Parsing the JSON and serializing it again changes the bytes and the signature will not match. Reject events whose timestamp is more than five minutes from your clock, so a captured event can't be replayed later.
Node.js
import crypto from 'node:crypto';
import express from 'express';
const SECRET = process.env.CONCORD_WEBHOOK_SECRET;
const TOLERANCE_SECONDS = 300;
export function verifyConcordSignature(
rawBody,
headers,
secret,
nowMs = Date.now(),
) {
const timestamp = headers['x-concord-timestamp'];
const signature = headers['x-concord-signature'];
if (!/^\d+$/.test(timestamp ?? '') || !signature?.startsWith('v1='))
return false;
if (Math.abs(nowMs / 1000 - Number(timestamp)) > TOLERANCE_SECONDS)
return false;
const expected = crypto
.createHmac('sha256', secret)
.update(`${timestamp}.${rawBody}`)
.digest('hex');
const received = signature.slice(3);
return (
received.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(received), Buffer.from(expected))
);
}
const app = express();
app.post(
'/concord/privacy-requests',
express.raw({ type: 'application/json' }),
async (req, res) => {
const rawBody = req.body.toString('utf8');
if (!verifyConcordSignature(rawBody, req.headers, SECRET)) {
return res.status(401).end();
}
const event = JSON.parse(rawBody);
const { operation, identity } = event.data;
if (operation === 'lookup') {
const count = await countRecordsFor(identity.email);
return res.json(
count > 0 ? { status: 'found', count } : { status: 'not_found' },
);
}
if (operation === 'opt_out') {
await optOut(identity.email);
return res.json({ status: 'opted_out' });
}
if (operation === 'erase') {
// Deletion can take a while: accept now, answer on callbackUrl when done.
queueErase(event.data);
return res.status(202).end();
}
return res.status(400).end();
},
);
app.listen(3000);countRecordsFor, optOut and queueErase stand in for your own code.
Python
import hashlib
import hmac
import json
import os
import time
from flask import Flask, jsonify, request
SECRET = os.environ["CONCORD_WEBHOOK_SECRET"]
TOLERANCE_SECONDS = 300
app = Flask(__name__)
def verify_concord_signature(raw_body: bytes, headers, secret: str, now: float | None = None) -> bool:
timestamp = headers.get("X-Concord-Timestamp", "")
signature = headers.get("X-Concord-Signature", "")
if not timestamp.isdigit() or not signature.startswith("v1="):
return False
now = time.time() if now is None else now
if abs(now - int(timestamp)) > TOLERANCE_SECONDS:
return False
expected = hmac.new(
secret.encode(), timestamp.encode() + b"." + raw_body, hashlib.sha256
).hexdigest()
return hmac.compare_digest(signature[3:], expected)
@app.post("/concord/privacy-requests")
def privacy_request():
raw_body = request.get_data()
if not verify_concord_signature(raw_body, request.headers, SECRET):
return "", 401
event = json.loads(raw_body)
data = event["data"]
if data["operation"] == "lookup":
count = count_records_for(data["identity"]["email"])
return jsonify({"status": "found", "count": count} if count else {"status": "not_found"})
if data["operation"] == "opt_out":
opt_out(data["identity"]["email"])
return jsonify({"status": "opted_out"})
if data["operation"] == "erase":
queue_erase(data)
return "", 202
return "", 400count_records_for, opt_out and queue_erase stand in for your own code.
Answer the Request
The answer is the same JSON object whether you send it in the response or to the callback URL:
| Field | Required | Values |
|---|---|---|
status | Yes | found, not_found, opted_out, or deleted |
count | No | How many records you hold for the person (integer, 0+) |
link | No | An https:// link to the person's records in your system |
Answer Right Away
Reply 200 with the answer as the body:
{
"status": "found",
"count": 2,
"link": "https://app.example.com/customers/8812"
}A 200 without a valid answer is recorded as Failed.
Answer Later
Reply 202 with any body. The system shows Waiting on the request. When you have the result, POST the answer to the event's callbackUrl:
curl -X POST "$CALLBACK_URL" \
-H 'content-type: application/json' \
-d '{ "status": "deleted" }'import requests
requests.post(callback_url, json={"status": "deleted"}, timeout=10)The callback URL needs no sign-in: the token in it is the credential, so keep it out of logs. It answers 200 { "ok": true }. It works for that one request and data system, and stops working when the request is resolved, after which it answers 410.
Timeouts and Retries
- Concord waits up to 10 seconds for a response. Answer
202for anything slower. - A network error, a
5xx, or a429is retried once, about a second later. The retry has the sameidandx-concord-delivery-id, and a fresh timestamp and signature. - Any other status (including
3xx,401and404) is recorded as Failed with the reason, and not retried. - Re-check on the request sends the event again. Make your endpoint safe to call twice for the same
requestId.
Test Your Endpoint
Send Test sends a sample event for person@example.com, with "test": true in the body and an x-concord-test: true header. It uses the first request type the method handles, as a lookup or opt_out. Your endpoint's answer shows as a message on the page and isn't recorded on any request. Its callbackUrl ends in /test and accepts nothing, so test the callback path with a real request.
Troubleshooting
| What you see on the request | Cause and fix |
|---|---|
| The endpoint answered 200 without a valid answer | The body isn't JSON or status isn't one of the four values. Return the answer object. |
| The endpoint answered 401 (or another status) | Your endpoint refused it. For 401, check the signature notes below. |
| The webhook address is not a public host Concord can reach | The URL resolves to a private or loopback address, or doesn't resolve. Use a public https:// host. |
| Waiting, and it never changes | You answered 202 but never posted to callbackUrl, or posted to a different URL. |
Signature never matches:
- Verify the raw body bytes, not re-serialized JSON. In Express use
express.raw, notexpress.json. - Use the timestamp header exactly as sent, as the string before the period.
- Use the whole secret including
whsec_. If someone clicked Rotate Secret, copy the new one. - Check your server clock if every event fails the five-minute window.
Related Articles
Privacy Request Settings
Choose which request types each region offers, who may file for someone else, how due dates are set, and what your request form asks.
Privacy Requests Request Log
The Request Log Report shows extended detail on individual Privacy Requests received during the selected date range.