Privacy Requests

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

  1. Open Data Hub > Systems, pick the system, and open its Automations tab.
  2. On a request type's row under Privacy Requests, click Set Up and choose Send to a Webhook.
  3. Enter the Webhook URL.
  4. 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.
  5. Save, then copy the signing secret. It starts with whsec_ and is shown once.
  6. 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

HeaderExampleMeaning
x-concord-signaturev1=5f2b…v1= plus the hex HMAC-SHA256 described below
x-concord-timestamp1794312496Unix seconds when Concord signed the event
x-concord-event-typeprivacy_request.lookupSame as the body's type
x-concord-delivery-id0f6c3c2e-…Unique per event; a retry keeps it, so you can skip a repeat
x-concord-testtrueOnly on Send Test events
user-agentConcord-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>"
  }
}
FieldNotes
data.requestIdThe privacy request. The same request can send more than one event (for example after Re-check).
data.operationlookup, opt_out, or erase
data.requestTypeview, delete, do_not_sell, restrict, or object
data.identity.phoneSent only when the method has Include Phone Number turned on
data.dueDateThe legal deadline for the request, when one applies
data.callbackUrlWhere to send the answer if you reply 202. Use it exactly as given.
testtrue on Send Test events only

The event carries the person's identity and nothing they typed into the request form.

Operations

Request typeOperationWhat your endpoint does
Get a Copy (view), Delete Data (delete)lookupSays whether it holds records for this person
Don't Sell or Share, Limit Use of My Data, Object / Opt Out of Profilingopt_outOpts the person out, then says so
Delete Data, after Review DeletionseraseDeletes 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 "", 400

count_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:

FieldRequiredValues
statusYesfound, not_found, opted_out, or deleted
countNoHow many records you hold for the person (integer, 0+)
linkNoAn 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 202 for anything slower.
  • A network error, a 5xx, or a 429 is retried once, about a second later. The retry has the same id and x-concord-delivery-id, and a fresh timestamp and signature.
  • Any other status (including 3xx, 401 and 404) 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 requestCause and fix
The endpoint answered 200 without a valid answerThe 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 reachThe URL resolves to a private or loopback address, or doesn't resolve. Use a public https:// host.
Waiting, and it never changesYou 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, not express.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.