Lodge a message with given text to be sent to a given recipient. A From header can be defined as well as a scheduled send time.
Authentication: In order to use this method you must be authenticated using one of the supported methods.
Content will contain
POST /v2/message/simple_send HTTP/1.1
Host: api.messagenet.com.au
Authorization: Bearer 12345
Content-Type: application/json
Accept: application/json
{
"SendAt":"2015-12-24T12:00:00+10:00",
"Message": "Have you been good this year?",
"Recipient":"61400111222",
"From":"Santa"
}
And an example response
{
"Data": {
"Message": {
"PhoneNumber": "61400111222",
"MessageId": "20151224130000812923",
"Status": "ACTIVE"
}
},
"Status": "Success",
"StatusCode": 200
}
Lodges one or more messages to be sent to recipients.
If a single message to a single recipient is lodged, the message will be created immediately. If multiple recipients are lodged, the creation of the messages will be batched and a batch code will be returned.
Authentication: In order to use this method you must be authenticated using one of the supported methods.
If an ExternalSystemId is provided in batch of messages, it will be applied to all messages. If you need to apply an ExternalSystemId to individual messages you must send them one by one.
Content will contain:
To set what the recipient sees at the sender of the message, set the value of reply_type to HEADER and put the sender value in reply_path.
If more than one message is provided is provided, a batch file will be created and background loaded by the MessageNet system and messages lodged to be sent. The progress of the batch file can be queried using Message/Status
Sending a single message
POST /v2/message/send HTTP/1.1
Host: api.messagenet.com.au
Authorization: Bearer 12345
Content-Type: application/json
Accept: application/json
{
"SendAt":"2015-12-24T12:00:00+10:00",
"Message": "Have you been good this year?",
"Recipients":["61400111222"],
"Source": "ENTER YOUR PHONE NUMBER HERE",
"ExternalSystemId":"1001",
"Tags":"query,dasher"
}
And an example response
{
"Data": {
"Message": {
"PhoneNumber": "61400111222",
"MessageId": "20151224130000812923",
"Status": "ACTIVE",
"ExternalSystemId": "1001",
"Tags": "query,dasher"
}
},
"Status": "Success",
"StatusCode": 200
}
Sending multiple messages
POST /v2/message/send HTTP/1.1
Host: api.messagenet.com.au
Authorization: Bearer 12345
Content-Type: application/json
Accept: application/json
{
"SendAt":"2015-12-24T12:00:00+10:00",
"Message": "Have you been good this year?",
"Recipients":["61400111222","61400111333"],
"ReplyType": "HEADER",
"ReplyPath":"Santa"
}
And an example response
{
"Data": {
"BatchCode": "batchFile1"
},
"Status": "Success",
"StatusCode": 200
}
This is used to query the status of a message or batch file.
Authentication: In order to use this method you must be authenticated using one of the supported methods.
Only one parameter can be passed in a single request. If multiple are sent the request will fail.
Content will contain an array of
GET /v2/message/status?message_id=20200101130000113313 HTTP/1.1 Host: api.messagenet.com.au Authorization: Bearer 12345
And an example response
[
{
"PhoneNumber": "61400111222",
"MessageId": "20200101130000113313",
"Status": "ACTIVE",
"ExternalSystemId": "1001",
"Tags": "alert,system1"
}
]
Retrieves details of messges sent by the account.
Authentication: In order to use this method you must be authenticated using one of the supported methods.
Only one parameter can be passed in a single request. If multiple are sent the request will fail.
Content returned will be the total number of records that fit the search results, and array of objects with the following properties.
GET /v2/message/logs Host: api.messagenet.com.au Authorization: Bearer 12346
And an example response
{
"totalRecords": 1,
"messages": [
{
"messageId": "20180413125213VjnRO8",
"status": "ACTIVE",
"dateSent": "2018-04-13T12:52:13+10:00",
"dateLodged": "2018-04-13T12:52:13+10:00",
"deliveryReceiptReceived": null,
"sender": "Hello World",
"costcentre": "",
"from": "61400111333",
"to": "61400111222",
"subject": null,
"message": "Helloooo World...!!!",
"parts": 1,
"type": "SMS",
"senderid": 1,
"senderserviceid": 101,
"replytype": "WWW",
"replypath": "helloworld",
"trackingId": "6a7db3ae-bd6c-4df3-892a-3b5d91b5a8f8",
"batchTrackingId": null
}
]
}