![]() ![]() If you are not sure about the dialing code of the country you want to send calls or SMS to, check this Wikipedia article on dialing codes.Import java.io.BufferedReader import java.io.IOException import java.io.InputStream import java.io.InputStreamReader import java.io.UnsupportedEncodingException import import import // Uses Apache Common URL utils, download from and put it in CLASSPATH import .binary. Phone numbers in the API need to have an international dialing code.įor example, for a number from the Philippines (with the dialing code 63), 639123456789 would be correct, whereas 9123456789 would be missing the dialing code. To know up to when we’ll keep retrying your message, you can refer to the deliveryDeadline of your POST request. The SMS API automatically re-tries failed messages as often as possible within 24 hours by default. If you are sending more than 5 sms to a single number within a minute, some messages may not get through and will be lost. Note: The API’s response structure will always be the same.įor the Philippines, telcos have a 5 sms per mobile number per minute (5 sms/number/minute) capping rule. Please see the error field in the response body.Ĥ02 – not enough funds in the organization/account.ĥ00 – engageSPARK internal service error. List of Possible HTTP Status CodesĤ00 – there’s something wrong with the request. Note: contactId will always return a 0 for phone number SMS API. For this API, this will always return 0.ĭisplays the phone number of your recipient.Ĭorresponds to the message content in the API request. Empty if no error.ĭisplays the existing contact Id of your recipient. Shows an error message if an error occurrs. Join over 100,000 happy developers who have discovered how easy it is to integrate our SMS API with their website, app, software or CRM application. The content of the message to be sent to the recipient.īelow are the details that will be returned after every SMS API request: Key Connect your application with our SMS API. Otherwise, it will be sent with the local telco’s random sender like INFOSMS, NXSSMS, Info, etc. Click here to know more about sender IDs. If you set an ID here and you receive the message with an ID other than the one you set, you may want to contact us to pre-register one for branding purposes. Most countries require sender IDs to be pre-registered. The organization’s caller/sender ID or organization’s local phone number (virtual number). The phone number of your intended recipient in international format without the “+”. Find it in your organization profile ( ). Request Body Definitionīelow are the only details we need and you need to provide in order for you to successfully send an SMS using the Phone Number SMS API: Key You’ll need to set the following HTTP Headers: The HTTP method is POST using the URL below: We also offer delightful customer support for all of our APIs via live chat, email, and phone.Ĭheck out our SMS rates by country on our pricing page.ĭelivery receipts are available for every message sent via the API. ![]() This SMS API is extremely fast, highly available, and very easy to use. If you want to send an SMS via API to an existing Contact (or have us create a Contact), you can use our Send SMS to Contact API. ![]() We also will not check if a Contact already exists with the phone number, and we will thus not link the message to such a Contact. This API is not connected to our Contacts feature, meaning that when you use this API, we will not create a “Contact” on the engageSPARK platform. This Send SMS API sends a single message to a phone number. ![]()
0 Comments
Leave a Reply. |