Events
contact.opted_in
Fires when a contact opts back in to messaging by sending a keyword like START, YES, or UNSTOP.
WEBHOOK
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The ID of the account in which this event occurred
The data associated with the event
The timestamp when this event occurred, in ISO8601 format
The type of the event. Always contact.opted_in for this event.
Allowed value:
"contact.opted_in"Response
200
Return a 200 status to indicate that the data was received successfully