Send message
Archived
This command allows you to send one or more SMS messages. To send messages to your database of mobile numbers, you can call this command in a loop.
The server will respond with a unique identifier for each message (referred to as an API message ID). This API message ID can be used to track and monitor the status of your message.
You can also send to multiple handsets in one single HTTP/S request by comma separating mobile numbers (up to 300 numbers with an HTTP GET and 600 with HTTP POST). This is useful if you are sending the same message text to all the handsets.
For high volume messaging, we encourage the use of persistent HTTP/S connections (keep-alive). Multiple concurrent HTTP/S connections may also be used for additional performance.
Command
You can copy and paste the URL below into your web browser. Simply set your authentication details, mobile number and text. Remember to URL encode your parameter values.
https://api.clickatell.com/http/sendmsg?user=xxxx&password=xxxx&api_id=xxxx&to=xxxx&text=xxxxParameters
In addition to authentication parameters, only to and text are required to send a message. It’s important to note that when sending from a two-way number, the from and mo parameters will also be required as stated in the table below.
to
Yes
The mobile number to which the message must be delivered. The number should be in international number format (i.e. no leading zeros or + symbol should be used).
text
Yes
The text content of the message. Note that some characters take up two character spaces due to GSM encoding standards.
msg_callback
No
Enable message delivery status updates to be sent to your server via an HTTP request. See Callback.
from
Only when sending from a two-way number or specifying a custom sender ID
The two-way number that you are sending from. This parameter is only required if you want to send messages using a two-way number OR when a two-way number is a legal requirement to send messages as is the case in the USA, for example.
mo
Only when sending from a two-way number
Must be set to 1 when sending from a two-way number.
Many more parameters are available and listed here.
Examples
Send to two mobile numbers:
Send a Unicode message:
Send a flash message:
Send a binary message:
Use callback and sender id:
Code samples
Single number submission
Bash
PHP
Python
Multiple number submission
HTTP GET URL:
Bash
PHP
Python
API responses
Example response – Single number submission
Successful API response:
Error response:
Example response – Multiple number submission
Successful API response:
Error response:
Format – Single number submission
Successful API response:
Error response:
Format – Multiple number submission
Successful API response:
Error response: