Send Single or Multiple
method SendSingleOrMultiple
url https://sms.smartmessagingservices.net/api/SendSingleOrMultiple
Verb POST and GET
Content Type for Post is application/json
Authentication Standard, Username and Password in the body of the message.
Returns text response
Use the method to send to a list of recipients in a single POST request.
Parameters
name | meaning | requirements example |
---|---|---|
username | Intelli Messaging account Username |
|
password | Intelli Messaging account Password |
|
message | Content of the text message. Message with only GSM characters will be sent as standard messages - messages with other characters will be sent in UTF-16, in the case each message can only contain 70 Characters instead of 160. Character set conversion is automatic |
|
from | mobile number international format without the leading + sign. This must be the customers allocated virtual number Assigned by Intelli and that is the Id field of the Sender Record | It can be any mobile number, in international format without a + sign or up to 11 Characters Alpha |
maxspiit | this is the max number of parts for a message. if message is longer than this it will be truncated. string format |
|
delay | Send the message x number of minute from when the message is sent to us. This delays the sending of the message. Field format is string. | eg to delay sending the message 1 hour. value is “60“ etc. |
to | a single string field with a mobile numbers separated by a “,” | International number format is required if country is not defined for your customer record |
ref | id for the message from your system. | string format |
Json Structure
{
"username" : "peter",
"password" : "thing",
"message" : "new message to all",
"from" : "61401002002",
"delay" : "200",
"maxspit" : "1",
"recipients" : "61401000001,61401000111"
} |
C# Model Structure
public class MultipleSMS
{
public string username { get; set; }
public string password { get; set; }
public string message { get; set; }
public string from { get; set; }
public to { get; set; }
public string delay { get; set; }
public string ref { get; set; }
public string maxsplit { get; set; }
}
|
Response
The Method Returns plain text with one line per recipient; the structure of each line is
[status]:[recipient number]:[messageId]
"OK:61401328000:ACDFE983DCFF0CC8E"
"OK:61401328001:ACDFE983DCFF0CC8F"
"BAD:61401328002:ACDFE983DCFF0CC8A"
|
Method SendSingleOrMuliple/BasicAuth.
Used in Zapier method “Sent Many SMS Messages in One Call Action”
url https://sms.smartmessagingservices.net/api/SendSingleOrMultiple/BasicAuth
Verb POST
Data Type for Post is applicationJson
Returns Json response
Authentication Use Basic auth "username:password" converted to Base64
Name | Meaning/Requirements | Notes |
---|---|---|
text | Content of the text message. Message with only GSM characters will be sent as standard messages - messages with other characters will be sent in UTF-16, in the case each message can only contain 70 Characters instead of 160. Character set conversion is automatic. Required
|
|
recipient | mobile number international format without the leading + sign. if country is set against the Customer record then recipient can be in local format. Required, String | Also if recipientCountry is set then number can be in local format |
sender | many mobile numbers international format without the leading + sign. This must be the customers allocated virtual number Assigned by Intelli and that is the Id field of the Sender Record. Required, String. | separate numbers by a “,“ |
validity | Time period that the message will continue to retry if recipient is not immediately available to receive the message, Optional default and max is 48 hours. String | for "dd:HH:mm", max value is 03:00:00, 24 hour format for hours or "00:18:00" . either exclude parameter value or set to "00:00:00" for default gateway default validity. |
scheduled | Time and Date message is to be delivered, Optional, String | specified in format "yyyy-MM-ddTHH:mm:sszzz" or "yyyy-MM-ddTHH:mm:ss" "dd/MM/yyyy HH:mm:ss zzz " "eg "2018-03-01T15:24:16+10:00" or "2018-03-01T15:24:16" or "01/03/2018 15:24:16 +10:00"Hours in 24 hour format time zone in hour:mins format with = or - sign. exclude parameter to send message immediately, or set the currently date time value. if time zone is not specified it will be assumed to be UTC time. |
recipientCountry | Two letter country code - eg Australia = “AU“, Optional, String | used to help validate the recipient address - if specified recipient can be defined in local format. |
eg
Response