The SMS API facilitates sending messages, and accessing resources such as SMS Inboxes and Messages (planned).
In order to access this API method, please ensure you have correctly set permissions for the relevant API Key. See Creating a new API Key
Base URI and Endpoint
The API example below is called via standard HTTP GET request, however all parameters can be posted or included in a JSON array.
The API key from My Account Portal
Virtual Mobile Number
Additional Sender ID's can be validated in the My Account portal
AU Mobile Number
A valid 10 digit AU mobile number beginning with 04
|message||URI-Encoded Text||Yes||Check the GSM standard for information on maximum length, and unicode characters. Unicode characters are supported, however they will reduce the allowable maximum length of the message. Multiple message parts will result in an increased cost of the final message.|
The SMS Inbox ID
To get a list of SMS Inboxes on your account, see sms/list. SMS Inboxes allow easier grouping of messages for different business units and help keep messages separate in the My Account portal.
A successful request to the API will result in a HTTP 200 response, with a json object containing status:1
The ID of the message is returned (smsid), as well as the number of message parts and the price charged.
Successful Response - Result
For JSON The following parameters are returned
|smsid||Unique ID of the message|
|parts||Total number of message parts sent and charged|
|price||Price in Dollars|
An unsuccessful request to the API will result in a HTTP response other than a 200 OK, and json with status:0.
Examples of unsuccessful HTTP codes include 401 Unauthorised, 404 Invalid method, a 400 Bad Request/Incomplete request, or 403 Forbidden if the supplied key has insufficient permissions for the method or resource.
An example of a validation error where the destination number was not valid.
As further functionality becomes available, full permissions, functions, and API descriptions will be available in our upcoming developer portal.
For further assistance with any API CDR related queries, please reach out to MaxoTel support.