Loader

Using the HTTP API


What is an SMS API?

An API (Application Programming Interface) acts as an interface between the code you write and our SMS Gateway.

SMS messages are sent by making HTTP or HTTPS calls to the API. You can loop through your list of mobile numbers and make HTTP/S requests to send SMS messages to them. Generally, this API should allow you to submit up to about 100 messages per second on average to our platform (or faster if required).

It’s quick to get started (simply copy and paste a URL directly in your web browser to send a message) and there is no need to understand the additional or advanced features unless you want to use them.

Some more information about this API:
  • Supports HTTP (port 80) and HTTPS (port 443), both GET and POST.
  • You can 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.
  • Supports persistent connections (keep-alive) and the use of multiple concurrent connections.
  • Supports the sending of flash messages.
  • Supports the sending of binary message content.
  • Supports the sending of Unicode messages.

How to use an SMS API

To send your first message you will need:
  1. The first thing you will need is your API ID.
  2. Format the mobile number that you want to send to in international format.
    – The mobile number needs to start with the country code.
    – It must contain no spaces or other non-numeric characters.
    – If the mobile number starts with zero, remove the zero before typing the rest of the number.
  3. Decide on the SMS message text that you want to send. Note that until you make a purchase, we will use pre-defined content for your messages. All URL parameters should be URL encoded.
  4. Add the details into this URL in a web browser https://api.clickatell.com/http/sendmsg?user=xxxxx&password=xxxxx&api_id=xxxxx&to=xxxxx&text=xxxxx and paste it into the URL bar of your browser to send a message.
  5. You should see something like: ID: f7012c1edff2509a19ce1667c7f52b18 in your browser (this is a message tracking ID from the API that you can use later).
  6. If you received an error such as ERR: 101, Authentication failed you may need to double-check the parameters that were specified in the URL.

View the send message page for more information and for examples of how to send flash, Unicode or binary messages.


API Security

For additional security, you can opt to:
  • Use HTTPS for all API requests
  • Use POST instead of GET
  • Enable IP lockdown on your API connection
  • Use session ID for authentication instead of passing username and password for each request

Authenticating an API Call


You can authenticate your requests in one of two ways:

  1. Send a session ID with each request. A session ID can be obtained with the Authentication command.
  2. Send your API username, password and ID with each request,

Channels

Find the most up-to-date information about the channels available to communicate with your clients.

SDKs

Documentation
SMS

Enable any application, website or system to facilitate local or international one- or two-way SMS communication via an easy one-step integration with our HTTP API.

Documentation
One API

Communicate with your mobile customers via multiple communication channels with a single integration. You can send and receive messages on both WhatsApp and SMS without the overhead of programming individual channels.

Documentation
WhatsApp

As an authorized WhatsApp Business Solution Provider, we assist you in applying for a WhatsApp Business account and number. Integrate with other powerful features available on our platform via our One API.

Documentation

Products

Find the most up-to-date information about the products we offer and how to elevate your engagement with customers.

Chat 2 Pay

Send payment requests to customers via chat for secure, contactless payment experiences.

Documentation
Chat Desk

An easy-to-use web-based application that enables real-time communication with your customers via a single web interface.

Documentation
Chat Flow

A web-based application that allows you to quickly and collaboratively design and deploy conversational experiences across multiple chat applications and connect it to your organization's core functional APIs.

Documentation
Campaign Manager

An online tool that allows you to create a custom SMS campaign within minutes - no coding or developers required.

Documentation

Marketplace

Find the most up-to-date information about Clickatell's Marketplace and how you can utilize it for the distribution and payment acceptance of digital products.

Bank Interfaces API

An explanation of the way Clickatell and banks interact with one another when dealing with purchases. 

Documentation
Transact Result API

Initiates the delivery of the transaction result for a purchase that was made through Clickatell after Clickatell facilitated the dispensing of the product.

Documentation
Reserve and Transact API

Initiates a purchase and fund reservation request to Clickatell.

Documentation
Security Service API

Request authentication tokens to use in all other Clickatell API calls.

Documentation
Transact

A cloud-based platform that allows for the distribution and payment acceptance of multiple digital products.

Documentation
Product Lookup API

Confirm a product's configuration and attributes.

Documentation
In-Flight Transaction Check API

Used prior to a purchase instruction to confirm that no similar transaction is in progress.

Documentation
User Transaction Lookup API

Identify if a new transaction is similar to one of the user's recent transactions so the response details can be used to pre-emptively complete the current transaction details.

Documentation
Customer Account Validation API

Validate a customer's bill payment account number prior to submitting the bill payment purchase request to the vendor.

Documentation
MNO Lookup API

Derive the specific mobile network operator (MNO) for the specified MSISDN.

Documentation
Token Lookup API

Look up tokens/vouchers to present back to the buyer/customer who purchased token-related products via Clickatell's platform.

Documentation
Notifications API

Send notifications to buyer/recipient using different channels.

Documentation
Transaction Lookup API

Used after a purchase to confirm the transaction status.

Documentation
Financial Terms Lookup API

Display the correct fee and settlement amounts as per the contractual agreement for the SKU being purchased.

Documentation
Transact API

Initiates a purchase request to Clickatell.

Documentation

Other Resources

Ask the Community

Visit Stack Overflow to join our community of developers and find the answer you need

Contact Support

Contact our support team and one of our agents will be in touch with you to answer any questions you have