Skip to main content

Sending SMS


Deprecated API

Although, this API is still supported, we suggest using a more modern and feature-rich Omnichannel API for sending SMS messages.

Sending SMS to the handset using Messente HTTP SMS Messaging API​

You can deliver SMS to any handset using Messente's HTTP SMS API and later use the returned MessageID to check Delivery Report for this message. You can send SMS to any number by making a HTTP GET or HTTP POST call to Messente API.

Messaging API endpoints​

Main API endpoint:

https://api2.messente.com/send_sms

Backup API endpoint:

https://api3.messente.com/send_sms

Examples​

import messente

api = messente.Messente(username="YOUR_API_USERNAME", password="YOUR_API_PASSWORD")

# Send SMS
response = api.sms.send({
"from": "MyDelivery",
"to": "+44000000000",
"text": "Your parcel will be delivered at 10AM"
})

if response.is_ok():
print("Message sent:", response.get_sms_id())
else:
print("Message failed:", response.error_code)

API Reference​

For a full list of response codes and HTTPI API request parameters, refer to the API Reference.

Libraries​

Messente has HTTP API libraries for various languages including PHP, Python, Java and C#. Check out the Messente Libraries section in our documentation.