{
"account_id": "acct_01japd271aeatb7txrzr2xj8sg",
"data": {
"id": "ctc_01ja88cboqffhswjx8zbak3ykk"
},
"timestamp": "2024-10-21T23:29:41Z",
"type": "contact.opted_in"
}Events
contact.opted_in
Fires when a contact opts back in to messaging by sending a keyword like START, YES, or UNSTOP.
WEBHOOK
contactOptedIn
{
"account_id": "acct_01japd271aeatb7txrzr2xj8sg",
"data": {
"id": "ctc_01ja88cboqffhswjx8zbak3ykk"
},
"timestamp": "2024-10-21T23:29:41Z",
"type": "contact.opted_in"
}Fires when a contact who had previously opted out sends an opt-in keyword (START, YES, UNSTOP) to one of your phone numbers. After this event fires, Surge allows messages to the contact again.
Common use case
Usecontact.opted_in to update your records and re-enable messaging features for a contact. Fetch the full contact with GET /contacts/{contact_id} if you need the phone number or other details.Authorizations
Body
application/json
Response
200
Return a 200 status to indicate that the data was received successfully