Skip to content
API PlatformDevelopers

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.

Payload fields
FieldTypeWhat it is
idrequiredstringEvent id. The same on every retry: use it to skip duplicates.pattern ^evt_[0-9A-HJKMNP-TV-Z]{26}$
typerequiredstringEvent type.always contact.dnd_changed
versionrequiredstringPayload version.always 1
api_versionrequiredstringThe endpoint's API version.
occurred_atrequiredstringWhen it happened.date-time
company_idrequiredintegerYour workspace id.
datarequiredobject
contactrequiredobject
idrequiredintegerContact id.
company_idrequiredintegerWorkspace id.
namestring or nullName.
phone_numberstring or nullPhone number in E.164, e.g. +14155550123.
messenger_psidstring or nullMessenger page-scoped id, for contacts reached on Messenger.
instagram_igsidstring or nullInstagram-scoped id, for contacts reached on Instagram.
custom_identifierstring or nullYour own id, if set.
sourcestring or nullHow the change was made: manual (in the app), api or import.one of: manual, api, import
created_atstring or nullISO 8601.
updated_atstring or nullISO 8601.
dnd_enabledrequiredbooleanThe new value: true when the contact no longer gets business messages.
changerequiredstringopted_out (dnd_enabled is true) or opted_in (dnd_enabled is false).one of: opted_out, opted_in
sourcerequiredstringWhere 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_atrequiredstringISO 8601.
actorobject or nullWho did it, when it can be attributed; absent otherwise.
idinteger or nullId; null for the system.
namestring or nullName.
typerequiredstringstaff, system, bot or contact.one of: staff, system, bot, contact
originstring or nullai_agent when an AI agent made the change.
agent_idstring or nullThe 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 it
  • Webhook-Id (also Webhook-Event-Id): the event id, the same on every retry — skip ones you have handled
  • Webhook-Delivery-Id: this delivery attempt, new on every try