Skip to content

Best SMS API

Enable SMS facility on your internal software

SMS API

If you need to send SMS messages through your own applications without the cost of hosting an in-house SMS server, BestSMS provides several ways to send SMS over the internet.

BestSMS offers APIs for sending SMS messages over the internet, including HTTP, HTTPS, and a REST API interface. Contact us if you need another transfer method.

Why Use SMS API?

Efficient and scalable communication

Automation and Integration

SMS APIs integrate directly with your systems, so you can automate messaging based on triggers and events.

Scalability

APIs handle large volumes of messages, making them suitable for high-frequency messaging without the constraints of manual interfaces.

Efficiency

Automating message sending through an API reduces manual effort and the risk of errors, compared to more labour-intensive methods.

Real-time Reports

APIs provide real-time delivery reports through webhooks, so you can track performance and optimise campaigns.

HTTP/S API

Using your web server or browser, you can send SMS messages via HTTP POST or GET using our HTTP/S API. The essential fields you need are sender, token, number, and message.
An example URL for this purpose would be:
https://api.bestsms.com.au/api/v2.04/HttpApi/SMS?Sender=xxx&Token=xxx&Number=xxx&Message=xxx
For added security, you can use the Authorization header. See the How to Get API Auth Tokens page for step-by-step instructions.
Header:
Authorization: BASIC [[Auth Token]]
URL:
https://api.bestsms.com.au/api/v2.04/HttpApi/SMS?Number=xxx&Message=xxx

RESTful API

With the BestSMS RESTful API, you can send SMS messages from your application using JSON or XML data formats, below is a sample JSON request.
If you're interested in using our REST SMS API, please refer to the How to Get API Auth Tokens page for step by step guide.
Header:
Authorization: BASIC [[Auth Token]]
URL:
https://api.bestsms.com.au/api/v2.04/send/sms
Body:
{
    "MessageData" :
    {
        "Message": "Hi [[Attention]], this is a test message from [[Custom1]]. Thank you.",
        "Destinations" : 
        [
            { "Recipient": "+61431231234", "Attention": "Test Person", "Custom1": "Best SMS" }
        ]
    }
}

Python Library

The BestSMS Python Library lets you integrate SMS sending and receiving into your Python application. Here's a sample code snippet for sending an SMS using Python.
If you're interested in using our Python Library, please refer to the How to Get API Auth Tokens page for step by step guide.
Code Sample:
from bestsms import BestSMS

client = BestSMS(
    AuthToken="[Your Auth Token]" # Auth Token
)

response = client.Messaging.SMS.SendMessage(
    Reference = "Test", # Optional
    MessageText = "Test SMS", # SMS Message
    Recipients = [ # Recipient
        "+61421111111",
        "+61422222222"
    ]
)

print(response)

Node.JS / Javascript Library

Enable SMS sending and receiving in your JavaScript application using the BestSMS Node.js Library. Here's a sample code for sending an SMS using Node.js.
If you're interested in using our Node.JS / Javascript Library, please refer to the How to Get API Auth Tokens page for step by step guide.
Code Sample:
const BestSMS = require('bestsms');

const client = new BestSMS({
    AuthToken: "[Your Auth Token]" // Auth Token
});

var callback = function(data) {
    console.log("Response: ",JSON.stringify(data, null, " "));
};

client.Messaging.SMS.SendMessage({
    Reference: "Test", // Optional
    Message: "Test SMS", // SMS Message
    Destinations: [ // SMS Recipients
        { Recipient: "+61411111111" },
        { Recipient: "+61422222222" }
    ]
}).then(callback); // Send Message

Webhooks

BestSMS lets you set webhook endpoints for status updates and delivery results, so you get real-time notifications about the status of your sent messages.
Webhook Sample:
{
    "Sender": "[email protected]",
    "APIKey": "ta8wr7ymd",
    "Type": "SMSReply",
    "Destination": "+61431231234",
    "MessageID": "js82hn8n",
    "SubAccount": "SubAccount01",
    "Department": "Department01",
    "JobNumber": "10C7B9A0",
    "SentTime": "2024-10-16 13:43:00",
    "Status": "RECEIVED",
    "Result": "RECEIVED",
    "Message": "This is a reply.",
    "Price": "",
    "Detail": "",
    "URL": "https://www.example.com/webhook",
    "RESPONSEMODE": "JSON"
}

FAQs

An SMS API lets your software send SMS messages over the internet directly from your applications. It automates messaging, which improves efficiency and scalability while cutting manual effort, ideal for businesses with high-frequency messaging needs.
BestSMS's APIs integrate directly with your internal systems. You can automate your messaging processes, handle large volumes of messages, and receive real-time delivery reports via webhooks.
BestSMS supports sending SMS via HTTP/S API and RESTful API. Both methods allow you to send messages securely and efficiently. The HTTP/S API is ideal for simpler setups, while the RESTful API provides more flexibility with JSON or XML data formats.
The HTTP/S API allows you to send SMS messages using your web server or browser via HTTP POST or GET requests. You'll need to provide essential fields like the sender, token, number, and message. For added security, you can use the Authorization header.
The RESTful API is a more flexible method for sending SMS, allowing you to use JSON or XML data formats. You can send messages by making a POST request with the required headers and body content, which includes message data and recipient details.
BestSMS charges a competitive 4c / SMS Part for the SMS API, with no hidden fees, so you can scale your messaging without worrying about extra costs.
Yes, BestSMS's APIs are versatile and can integrate with a wide range of software systems, whether you're using a custom-built application or a third-party platform.

Contact Us

Any Questions?
Feel Free to Contact Us

Reach Out for Assistance

Have a question or want to know more about our services? Contact us and we'll get back to you with what you need.

Pricing Plans

Competitive SMS Pricing

Starter

For Small Size Business

4c AUD / SMS $0 / MonthMth
  • Welcome Credits (Free 25 Messages)Included
  • PrepaidIncluded
  • Email SMSIncluded
  • Web SMSIncluded
  • SMS APIIncluded
  • Australian Long CodesNot included

Enterprise

For Large Size Business

P.O.A.
  • Welcome Credits (P.O.A.)Included
  • PrepaidIncluded
  • Email SMSIncluded
  • Web SMSIncluded
  • SMS APIIncluded
  • Australian Long CodesIncluded

Pricing is in Australian Dollars (AUD)