SMS
Send SMS
You can elect to pass us the recipient numbers from your database each time you make a call, or you can elect to store recipient data in a contact list and submit only the list_id to trigger the send. This is best for large databases. To add a list please refer to the add-list call.
post/send-sms.json
Request
- Base URLhttps://api.transmitsms.com
- AuthHTTP basic
Request body application/x-www-form-urlencoded
Example request
{
"message": "Hello, world!",
"to": "61478038915",
"list_id": 12345,
"countrycode": "US",
"from": "Sender123",
"send_at": "2024-04-24T12:00:00Z",
"validity": 1440,
"replies_to_email": "example@example.com",
"tracked_link_url": "https://example.com",
"link_hits_callback": "https://callback.example.com/linkhit",
"dlr_callback": "https://callback.example.com/delivery",
"reply_callback": "https://callback.example.com/reply"
}Response
OK
Example response
{
"message_id": 339683245,
"send_at": "2020-06-18T02:42:06Z",
"recipients": 1,
"cost": 0.087,
"sms": 1,
"error": {
"code": "SUCCESS",
"description": "OK"
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.