The identity.merged Webhook
When two people a realtime sync has already delivered turn out to be one person, a webhook-style destination can be told, so your own systems merge the two records too. The delivery is called identity.merged.
It is sent by realtime syncs to Webhook, HTTP Request, Zapier, Azure Functions and Google Cloud Functions destinations with Merge people at the destination turned on (see Destination Merges).
The delivery
{
"type": "identity.merged",
"sync_id": "6a0f3c2e-5b1d-4e8a-9c7f-1d2e3f4a5b6c",
"survivor": {
"key": { "family": "user_id", "value": "customer-42" },
"profile_id": "01a1ffc6-9118-77e2-a1c2-495a0a3c6344"
},
"retired": {
"key": { "family": "user_id", "value": "customer-42-old" },
"profile_id": "01a1ffd0-2b47-7c1e-b0a3-8c5d4e2f1a90"
},
"cause": "identity_merged",
"occurred_at": "2026-11-20T10:15:04.112Z",
"op_id": "4f1c9e2a7b6d4c3e"
}| Field | Meaning |
|---|---|
type | Always identity.merged. |
sync_id | The realtime sync that sent it. |
survivor | The record to keep: the key your destination knows it by, and its profile ID. |
retired | The record merged into it. Its key will not be used for this person again. |
cause | Why the two became one. |
occurred_at | When the graph joined them. |
op_id | The same for every retry of this merge. Use it to apply each merge once. |
The delivery carries the same headers and authentication as the destination’s other deliveries.
Handling it
- Look the retired key up in your system. If you have no such record, there is nothing to do: answer with a success.
- Merge the retired record into the survivor’s, then delete or mark the retired one.
- Answer with a 2xx status. An error status is retried, with the same
op_id.
A merge is sent only when the graph’s evidence is trusted: a link from your server, a verified sign-in, an admin, or your warehouse. A link a browser asserted on its own never sends a merge.
Related
Last updated on