Getting Started with the SendAfrica SMS API
Learn how to send your first SMS using the SendAfrica API in this step-by-step guide.
Getting Started with the SendAfrica SMS API
SendAfrica provides a powerful SMS API that lets you reach customers across Africa reliably and affordably. In this guide, we'll walk you through setting up your first SMS campaign.
Prerequisites
- A SendAfrica account (sign up here)
- An API token from your dashboard
- A verified phone number for testing
Step 1: Get Your API Token
Log in to your SendAfrica dashboard and navigate to Settings > API Keys. Generate a new token and save it securely.
Step 2: Make Your First API Call
curl -X POST https://api.sendafrica.online/v1/sms/send \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"to": "+255712345678",
"message": "Hello from SendAfrica!"
}'
Step 3: Handle the Response
A successful response looks like:
{
"status": "queued",
"message_id": "msg_abc123",
"credits_used": 1
}
Next Steps
- Explore the full API documentation
- Set up webhook delivery confirmations
- Learn about bulk SMS campaigns
Happy sending!
Comments (0)
No comments yet. Be the first to share your thoughts!