Send

This endpoint allows you to send a message to a specified group of numbers (can be one number).

post
Authorizations
x-auth-tokenstringRequired
Body
phoneNumbersstring[]Required
messagestringRequired
senderIdstringRequired
Responses
post
/public/sms/send
POST /public/sms/send HTTP/1.1
Host: api.marsol.ly
x-auth-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 60

{
  "phoneNumbers": [
    "text"
  ],
  "message": "text",
  "senderId": "text"
}
201Success
{
  "requestId": "text",
  "accepted": 1,
  "rejected": [
    "text"
  ],
  "duplicates": [
    {
      "number": "text",
      "repeats": "text"
    }
  ]
}

Endpoint: /public/sms/send

Method: POST

Send an SMS message.

Request Body:

  • phoneNumbers (array, array of strings): A list of all the phone numbers to send the message to.

  • message (string): The content of the message that was sent.

  • senderId (string): the unique identifier of the sender.

POST /public/sms/send HTTP/1.1
Host: api.marsol.ly
x-auth-token: your_api_token_here
Content-Type: application/json
{
    "phoneNumbers": [
        "text"
    ],
    "message": "text",
    "senderId": "text"
}

Responses:

  • requestId (string): The unique identifier of the message request.

  • accepted (number): The total count of valid phone numbers.

  • rejected (array, array of string): A list of all rejected phone numbers.

  • duplicates (array, array of objects): A list of all repeated phone numbers with the number of times they occur.

{
  "requestId": "string",
  "accepted": 0,
  "rejected": [
    "string"
  ],
  "duplicates": [
    {
      "number": "string",
      "repeats": "string"
    }
  ]
}

Last updated