The Opt-in Postback API notifies you of an opt-in or opt-out status change for each number subscribed to your campaigns.
This postback notification triggers when a mobile phone number subscribes to a specific campaign. We send the notification again even if someone who is already opted-in triggers the opt-in process a second time.
<?xml version='1.0'?> <POSTBACK> <ORIGIN>SUB</ORIGIN> <CODE>N301</CODE> <MOBILE>16501112222</MOBILE> <CAMPAIGNREF>1478</CAMPAIGNREF> <TIMESTAMP>2014-07-02T14:32:23-04</TIMESTAMP> <SHORTCODE>123456</SHORTCODE> <CAMPAIGNTITLE>My Campaign Name</CAMPAIGNTITLE> <BRANDNAME>My Brand Name</BRANDNAME> <SOURCE>API</SOURCE> </POSTBACK>
This postback notification triggers when a mobile phone number unsubscribes to a specific campaign.
<?xml version='1.0'?> <POSTBACK> <ORIGIN>SUB</ORIGIN> <CODE>N302</CODE> <MOBILE>16502424956</MOBILE> <CAMPAIGNREF>1478</CAMPAIGNREF> <TIMESTAMP>2014-07-02T14:32:23-04</TIMESTAMP> <SHORTCODE>123456</SHORTCODE> <CAMPAIGNTITLE>My Campaign Name</CAMPAIGNTITLE> <BRANDNAME>My Brand Name</BRANDNAME> <SOURCE>API</SOURCE> </POSTBACK>