This API function sends an SMS containing text from the specified account and shortcode to a recipient’s mobile number. If the aggregator allows masking longcode/sender with some brand or string, from_mask can be set in the API. from_mask is limited to 11 characters beyond which it will be cut-off. If “Enforce Campaign Check” is turned ON, then this function will require the campaign reference ID of the messaging campaign that the recipient’s phone number is subscribed into to be passed inside the campaignref node.
<REQUEST> <ACTION>sendSMS</ACTION> <API_KEY>apiKey</API_KEY> <OPERATORID>OPERATORID</OPERATORID> <TO>Recipient phone number</TO> <FROM>shortcode</FROM> <FROM_MASK>senderName</FROM_MASK> <CAMPAIGNREF>CampaignReferenceID</CAMPAIGNREF> <TEXT>SMS Text message text</TEXT> </REQUEST>
API_URL?action=sendsms &api_key=API key &operatorid=operator ID &to=recipient phone number &from=shortcode &from_mask=sender name &campaignref=campaign reference ID &text=SMS Text message text
If "Enforce Campaign Check" is NOT enabled: Mandatory: action, api_key, to, from, text Optional: operatorid, from_mask, campaignRef If "Enforce Campaign Check" IS enabled: Mandatory: action, api_key, to, from, campaignRef, text Optional: operatorid, from_mask
status, trackingId, to, errorCode, errorInfo
<REQUEST> <ACTION>sendSMS</ACTION> <API_KEY>Y6r74u6Br4hAVgrolveksjEiiu8yJX</API_KEY> <TO>15551234888</TO> <FROM>60856</FROM> <CAMPAIGNREF>Campaign123</CAMPAIGNREF> <TEXT>Hello Jerry, Greetings from Marc</TEXT> </REQUEST>
https://secure.skycore.com/API/wxml/1.3/index.php?action=sendsms &api_key=Y6r74u6Br4hAVgrolveksjEiiu8yJX &to=15551234888 &from=60856 &campaignref=Campaign123 &text=Hello+Jerry%2C+Greetings+from+Marc
<RESPONSE> <STATUS>Success</STATUS> <TRACKINGID>U01TXzc2Nzg2Nw==</TRACKINGID> <TO>15551234888</TO> </RESPONSE>
<RESPONSE> <STATUS>Failure</STATUS> <ERRORCODE>E713</ERRORCODE> <ERRORINFO>There is billing problem on your account</ERRORINFO> <TO>15551234888</TO> </RESPONSE>
When the SMS is sent we will generate a Postback notification. When we get an SMS delivery receipt we will generate another Postback notification. Not all carriers provide SMS delivery receipts. For more details please visit the SMS MT Delivery Status section of the Delivery Report Postback documentation.