{
"account_id": "acct_01japd271aeatb7txrzr2xj8sg",
"data": {
"id": "ctc_01ja88cboqffhswjx8zbak3ykk"
},
"timestamp": "2024-10-21T23:29:41Z",
"type": "contact.opted_out"
}Events
contact.opted_out
Fires when a contact opts out of messaging by sending a keyword like STOP, CANCEL, or UNSUBSCRIBE.
WEBHOOK
contactOptedOut
{
"account_id": "acct_01japd271aeatb7txrzr2xj8sg",
"data": {
"id": "ctc_01ja88cboqffhswjx8zbak3ykk"
},
"timestamp": "2024-10-21T23:29:41Z",
"type": "contact.opted_out"
}Fires when a contact sends an opt-out keyword (STOP, CANCEL, UNSUBSCRIBE, END, QUIT) to one of your phone numbers. Surge automatically stops message delivery to opted-out contacts. You should also suppress future sends to this contact in your own system.
Common use case
Usecontact.opted_out to suppress the contact in your own marketing or CRM system. Any attempt to send to an opted-out contact via the Surge API will return an opted_out error.Authorizations
Body
application/json
Response
200
Return a 200 status to indicate that the data was received successfully