Communication Preferences
Events that fire when a contact's channel communication preferences change.
Events that fire when a contact's channel communication preferences change.
Events
| Event | When it fires |
|---|---|
communication_preference.updated | A communication preference record is updated. |
communication_preference.opt_out | A contact opts out of a channel (opt_in becomes false). |
Examples
Each example is the full POST body Whippy sends, including the envelope fields data, api_version, event, created_at, and request_id.
communication_preference.updated
communication_preference.updatedA communication preference record is updated.
{
"data": {
"id": "b67993ac-ae2e-4e27-b679-b71f0789aa9f",
"opt_in": true,
"channel_id": "029f876c-e60f-454b-8e51-4c38f0484140",
"contact_id": "c6485e7c-b7ec-41e9-8a2b-fecdba0112d1",
"created_at": "2023-08-25T19:20:50Z",
"updated_at": "2023-08-25T19:20:50Z",
"opt_in_date": "2023-08-25T19:20:50Z",
"opt_out_date": null,
"last_campaign_date": null
},
"api_version": "v1",
"event": "communication_preference.updated",
"created_at": "2025-08-19T06:40:57.416929Z",
"request_id": "f0418976-d5e3-51cb-8b52-62700e0fda2d"
}communication_preference.opt_out
communication_preference.opt_outA contact opts out of a channel (opt_in becomes false).
{
"data": {
"id": "b67993ac-ae2e-4e27-b679-b71f0789aa9f",
"opt_in": false,
"channel_id": "029f876c-e60f-454b-8e51-4c38f0484140",
"contact_id": "c6485e7c-b7ec-41e9-8a2b-fecdba0112d1",
"created_at": "2023-08-25T19:20:50Z",
"updated_at": "2023-08-25T19:20:50Z",
"opt_in_date": null,
"opt_out_date": "2023-08-25T19:20:50Z",
"last_campaign_date": null
},
"api_version": "v1",
"event": "communication_preference.opt_out",
"created_at": "2025-08-19T06:40:57.416929Z",
"request_id": "d9a52d57-1b53-5a88-bd4b-44807ca53df4"
}Updated 17 days ago
Did this page help you?
