Get notified when a lead opts out of messaging
optOut
webhook event is triggered whenever a lead opts out of receiving further messages from your Apten assistant. This can be used to update your CRM or other systems about the lead’s communication preferences.
Property | Type | Description |
---|---|---|
event | string | The webhook event type (optOut ). |
data.leadId | string | The unique identifier for the lead who opted out. |
data.phone | string | The phone number of the lead who opted out. |
data.channel | string | The communication channel for the opt-out. Can be sms or email . |
data.optOutReason | string | The reason for the opt-out. Only set for email opt-outs, null for SMS. Can be MANUAL , COMPLAINT , BOUNCE , or UNSUBSCRIBE_LINK . |
data.isTwilioOptOut | boolean | Indicates whether the opt-out was processed through Twilio. Will be null for email opt-outs. |
timestamp | string | The ISO 8601 timestamp when the opt-out occurred. |