Getting started with the REST-SMPP Bridge API
Service page: https://melroselabs.com/services/smpp-sms-gateway/rest-smpp-bridge/
To send a message to mobiles, you make a REST API call to the service endpoint to submit your message. In this API call, you include the SMPP account details of the SMS gateway or SMSC, set options for controlling message submission, the message to be sent (including source address, flags, validity, scheduled delivery time and data coding), and the list of destination mobiles. The list of destination mobiles can contain up to 250,000 numbers.
Multiple SMS messages will be sent for a message that is greater than the size of a single SMS. A message ID will be returned for each SMS message.
If a message is rejected when submitted, an empty message ID will be returned.
Send a message to a single mobile number
Use the SMS Submit API call to send a message to a single mobile number.
Request payload:
{
"account": {
"system_id": "SYSTEMID",
"password": "PASSWORD"
},
"message": {
"source_addr": "MelroseLabs",
"short_message": {
"text": "Melrose Labs engineer great communication services."
}
},
"destinations": [
"447892000000"
]
}
Response payload:
{"transactionID": "39aca5bf-2c5f-4886-bb1f-95ffe4398257", "messageID": ["10a2"]}
Send a message to multiple mobiles
Use the SMS Submit API call to send a message to a single mobile number.
Request payload:
{
"smpp_account_config": {
"host": "HOST",
"port": 2775,
"system_id": "SYSTEMID",
"password": "PASSWORD"
},
"message": {
"source_addr": "MelroseLabs",
"short_message": {
"text": "Melrose Labs engineer great communication services."
}
},
"destinations": [
"447892000000",
"44",
"447892000002",
"44",
"44",
"447892000003"
]
}
Response payload:
{"transactionID": "39aca5bf-2c5f-4886-bb1f-95ffe4398257", "messageID": ["10a2", "", "10a3", "", "", "10a4"]}