Send messages
Send one or more SMS or MMS messages in a single request. Each message is validated on its
own: valid messages are sent, and any that fail are returned in data.errors with an
error_code and a human-readable error_help that you should log.
Requests must be sent as application/json. To send an MMS, include a single image URL in
media and send from an MMS-enabled dedicated number.
POST
https://app.messageport.com.au/api/v2/smsAuthorization
Request body JSON required
Example requests
{
"messages": [
{
"to": "+61412345678",
"from": "SHARED_NUMBER",
"body": "Hi Sam, your order has shipped.",
"reference": "order-1042",
"metadata": {
"order_id": 1042
}
}
]
}{
"messages": [
{
"to": "+61412345678",
"from": "+61491570159",
"body": "Here is your voucher",
"metadata": {
"mms_subject": "Your voucher"
},
"media": [
"https://example.com/voucher.jpg"
]
}
]
}{
"opt_out_list_name": "Marketing Opt-Outs",
"reject_duplicates_by_recipient": true,
"messages": [
{
"to": "+61412345678",
"from": "SHARED_NUMBER",
"body": "Spring sale starts today."
}
]
}Returns
200
Messages processed. Check data.errors for any messages that were rejected.