Outbound Messages - Message Submissions JSON
All JSON formatted SMS submissions to the Phonovation SMS Gateway API must be sent to the following endpoint: URL: https://secure.interactsms.com/api/v1/sendmessage This endpoint accepts HTTP POST requests with a JSON-formatted body.
Parameter Name | Value Example | Comment |
Text (Required) | HelloWorld | Specify the text content to be sent in messages of type Text, within 0-160 characters. Replace any newlines in SMS-Content with ¬ (ASCII 172), which will be converted to newlines upon sending. URL encode the Text for best practice. |
To (Required) | 353871111111 | Destination mobile number should be in GSM format (e.g. 353861234567) and can be separated by commas. |
From (Required) | YourCompany or 353877777777 | The Sender's header, up to 11 characters with no spaces (alpha/numeric), appears on top of the SMS. Longcode/Shortcode numbers optional. |
User (Required) | User1 | The assigned username of the customer. |
Password (Required) | Password1 | The assigned password of the customer. |
Api_id | 9876 | This is a unique id supplied to the Customer once they are a registered. |
DeliveryTime (Optional) | 120 | DeliveryTime is the number of minutes a message will be stored before being broadcasted, e.g., 120 minutes means a message will be sent in two hours. |
NotifyID | 321354 | Notification ID for message tracking (max 30 characters). Leave blank to not receive notification messages from SMSC. |
Example: Outbound Messages - Message Submissions
{
"User": "User1",
"Password": "Password1",
"ApiId": 9876,
"To": "353871111111",
"Text": "HelloWorld",
"SenderId": "YourCompany",
"NotifyID": "321354",
"DeliveryTime": 10
}
For additional details on JSON-based submissions and full parameter descriptions, please consult the API Technical Specification.
DLR's and Incoming messages still use key value pairs currently and don't support JSON