Webhook events · contacts
contact.dnd_changed/1
Contact DND changed. A contact opted out of business messages (DND on) or opted back in (DND off). Sent only on a real change, alongside contact.updated, and not per row during a bulk import (contact.import.completed covers that). Carries the new value, the direction, where the change came from and, when it can be attributed, who made it.
Payload
We POST this JSON to your endpoint. Answer any 2xx within 30 seconds. The same id arrives again on a retry — skip ones you have handled.
| Field | Type | What it is |
|---|---|---|
| idrequired | string | Event id. The same on every retry: use it to skip duplicates.pattern ^evt_[0-9A-HJKMNP-TV-Z]{26}$ |
| typerequired | string | Event type.always contact.dnd_changed |
| versionrequired | string | Payload version.always 1 |
| api_versionrequired | string | The endpoint's API version. |
| occurred_atrequired | string | When it happened.date-time |
| company_idrequired | integer | Your workspace id. |
| datarequired | object | |
| contactrequired | object | |
| idrequired | integer | Contact id. |
| company_idrequired | integer | Workspace id. |
| name | string or null | Name. |
| phone_number | string or null | Phone number in E.164, e.g. +14155550123. |
| messenger_psid | string or null | Messenger page-scoped id, for contacts reached on Messenger. |
| instagram_igsid | string or null | Instagram-scoped id, for contacts reached on Instagram. |
| custom_identifier | string or null | Your own id, if set. |
| source | string or null | How the change was made: manual (in the app), api or import.one of: manual, api, import |
| created_at | string or null | ISO 8601. |
| updated_at | string or null | ISO 8601. |
| dnd_enabledrequired | boolean | The new value: true when the contact no longer gets business messages. |
| changerequired | string | opted_out (dnd_enabled is true) or opted_in (dnd_enabled is false).one of: opted_out, opted_in |
| sourcerequired | string | Where it came from: keyword (the customer typed STOP, STOP PROMOTIONS or START), api (a write through this API) or manual (everything else: staff in the app, and bots or AI agents acting in it).one of: keyword, manual, api |
| changed_atrequired | string | ISO 8601. |
| actor | object or null | Who did it, when it can be attributed; absent otherwise. |
| id | integer or null | Id; null for the system. |
| name | string or null | Name. |
| typerequired | string | staff, system, bot or contact.one of: staff, system, bot, contact |
| origin | string or null | ai_agent when an AI agent made the change. |
| agent_id | string or null | The AI agent id, with origin ai_agent. |
Example
{
"id": "evt_01J8Z7BZQ4F6G8J2K5N7Q9S1VC",
"type": "contact.dnd_changed",
"version": "1",
"api_version": "2026-10-01",
"occurred_at": "2026-09-24T09:20:00Z",
"company_id": 1001,
"data": {
"change": "opted_out",
"source": "keyword",
"contact": {
"id": 12345,
"name": "Jane Doe",
"source": null,
"company_id": 42,
"created_at": "2026-05-01T10:15:00+00:00",
"updated_at": "2026-05-02T09:30:00+00:00",
"phone_number": "+14155550123",
"messenger_psid": null,
"instagram_igsid": null,
"custom_identifier": "crm-9001"
},
"changed_at": "2026-05-02T09:30:00+00:00",
"dnd_enabled": true
}
}Headers
Webhook-Signature:t=…,v1=…— how to check itWebhook-Id(alsoWebhook-Event-Id): the event id, the same on every retry — skip ones you have handledWebhook-Delivery-Id: this delivery attempt, new on every try