SMS developer guides
Copy-paste guides for sending SMS and OTP across Africa - in Node.js, Python and PHP - plus delivery reports, SMPP and choosing between the API and SMPP.
await fetch(
"https://api.esmsafrica.io/v1/sms/send",
{
method: "POST",
headers: {
Authorization: "Bearer " + KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
to: "+254712345678",
from: "MyBrand",
message: "Hello from Node.js",
}),
}
);How to send SMS from Node.js
Send your first SMS from a Node.js app with a single HTTPS request to the eSMS Africa SMS API. No SDK required - just fetch.
Read guideHow to send SMS from Python
Send an SMS from Python with the requests library and the eSMS Africa SMS API.
Read guideHow to send SMS from PHP
Send an SMS from PHP using cURL and the eSMS Africa SMS API.
Read guideHow to send an OTP by SMS
Add phone verification to your app with the managed eSMS Verify API. It generates the code, delivers it, handles retries and checks it - you call two endpoints.
Read guideHow to receive SMS delivery reports (DLR)
Know exactly what happened to every SMS. eSMS Africa calls your webhook with each status change - sent, delivered, failed - in real time.
Read guideHow to connect over SMPP
For high, sustained throughput, bind over SMPP instead of the REST API. Here is how SMPP works with eSMS Africa.
Read guideSMS API vs SMPP: which should you use?
Both send A2P SMS to the same networks on the same routes - the difference is how you connect and how much throughput you need.
Read guideOne platform, every channel
SMS Platform
Bulk SMS, an SMS API and OTP to every African mobile network on direct routes.
eSMS Verify
Managed phone verification and OTP - generate, send, rate-limit and check codes in two API calls.
Two-Way SMS
Dedicated or shared short codes to send and receive SMS, with signed webhooks and replies from your code.
SMPP Gateway
High-throughput A2P SMS over direct SMPP binds with guaranteed TPS and DLRs.
eSMS Mail
Transactional and marketing email with a modern API, delivery reports and analytics.
eSMS Links
Branded short links, QR codes and click analytics for your campaigns.
eSMS Chat
AI plus human customer-support chat you can add to any website.
eSMS Workspace
The desktop app that brings Email, SMS and SMPP into one place.
Ship your first message today.
A clean REST API, official SDKs and a free sandbox - everything in these guides works on a free account. Start building in minutes.