WINSMS
  1. sms
WINSMS
  • credits
    • Get your current WinSMS credit balance
      GET
    • Transfer credits between main and sub accounts.
      POST
  • shortcode
    • Get a list of incoming short/long code messages
      GET
  • sms
    • Get a list of incoming SMS messages
      GET
    • Get a list of incoming opt-out SMS messages
      GET
    • Send SMS messages
      POST
    • Send multiple different SMS messages
      POST
    • Get SMS delivery statuses
      POST
    • Get a list of scheduled SMS messages
      GET
    • Delete scheduled SMS messages and refund credits
      POST
  • subaccounts
    • Get a list of all Sub Accounts.
      GET
  1. sms

Send multiple different SMS messages

POST
/sms/outgoing/sendmulti
Submit multiple different SMS messages to be sent to multiple recipients. Maximum 1000 recipients across all messages.
Each SMS message text can be a maximum of 918 characters long. If you are submitting a message longer than 160 characters, you should change the value of maxSegments.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.winsms.co.za/api/rest/v1/sms/outgoing/sendmulti' \
--header 'Content-Type: application/json' \
--data-raw '{
    "messages": [
        {
            "maxSegments": 3,
            "message": "Happy holidays from all at TelAmeriCorp.",
            "recipients": [
                {
                    "clientMessageId": "clientId-3023",
                    "mobileNumber": "27444444444"
                },
                {
                    "mobileNumber": "27555555555"
                },
                {
                    "clientMessageId": "clientId-3024",
                    "mobileNumber": "276666666666"
                }
            ],
            "scheduledTime": "201712251430"
        },
        {
            "maxSegments": 1,
            "message": "TelAmeriCorp flash sale - call now for details",
            "recipients": [
                {
                    "clientMessageId": "clientId-0015",
                    "mobileNumber": "27333333333"
                },
                {
                    "mobileNumber": "27222222222"
                }
            ],
            "scheduledTime": "201801010900"
        }
    ]
}'
Response Response Example
200 - Example 1
{
    "messages": [
        {
            "message": "Happy holidays from all at TelAmeriCorp.",
            "recipients": [
                {
                    "acceptError": "",
                    "accepted": true,
                    "apiMessageId": 2316,
                    "clientMessageId": "clientId-3023",
                    "creditCost": 1,
                    "mobileNumber": "27444444444",
                    "newCreditBalance": 188.6,
                    "scheduledTime": "201712251430"
                },
                {
                    "acceptError": "",
                    "accepted": true,
                    "apiMessageId": 2317,
                    "clientMessageId": null,
                    "creditCost": 1,
                    "mobileNumber": "27555555555",
                    "newCreditBalance": 187.6,
                    "scheduledTime": "201712251430"
                },
                {
                    "acceptError": "BADDEST",
                    "accepted": false,
                    "apiMessageId": null,
                    "clientMessageId": "clientId-3024",
                    "creditCost": 0,
                    "mobileNumber": "276666666666",
                    "newCreditBalance": 187.6,
                    "scheduledTime": null
                }
            ]
        },
        {
            "message": "TelAmeriCorp flash sale - call now for details",
            "recipients": [
                {
                    "acceptError": "",
                    "accepted": true,
                    "apiMessageId": 2318,
                    "clientMessageId": "clientId-0015",
                    "creditCost": 1,
                    "mobileNumber": "27333333333",
                    "newCreditBalance": 186.6,
                    "scheduledTime": "201801010900"
                },
                {
                    "acceptError": "",
                    "accepted": true,
                    "apiMessageId": 2319,
                    "clientMessageId": null,
                    "creditCost": 1,
                    "mobileNumber": "27222222222",
                    "newCreditBalance": 185.6,
                    "scheduledTime": "201801010900"
                }
            ]
        }
    ],
    "statusCode": 200,
    "timeStamp": "20170117054658978",
    "version": "1.0"
}

Request

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

🟠400Bad Request
🟠401Unauthorized
🟠404Not found
🟠405Method Not Allowed
🟠413Payload Too Large
🟠415Unsupported Media Type
🟠422Unprocessable Entity
🔴500Internal Server Error
Modified at 2023-08-15 09:05:19
Previous
Send SMS messages
Next
Get SMS delivery statuses
Built with