Overview
Last updated
Last updated
Send SMS through a single connection for timely and cost-efficient communication using the 9bits SMS API.
Find your API token for each account in Settings => Security on the .
The token is sent in the Authorization
header of each endpoint preceded by Bearer
. It's required for all requests made to the SMS API.
Here is an example of authentication within the header. This example is written in Python.
JSON (appplication/json) is the content type of both requests and responses unless otherwise specified.
Requests with invalid JSON will be rejected.
Only MSISDNs (phone numbers) in international format are accepted by the API.
Phone numbers can be sent with or without a leading +
(for example, +2348020000000 or 2348020000000 are both valid) or with a leading 00
.
All phone numbers returned by the REST API will be without a +
prefix, even if they were sent with one.