For developers
SMS API in Tanzania
Send SMS and OTPs straight from your app, website, or backend. A simple REST SMS gateway with API-key authentication, delivery reports, sender IDs, and mobile-money top-ups — built for Tanzanian businesses and developers.
Everything you need to send SMS from code
Integrate from any language that can make an HTTPS request.
API-key authentication
Generate keys from your dashboard and send them in the x-api-key header. Revoke or rotate any key independently.
Single & bulk sending
Send to one number or an array of recipients in a single request, each with your approved sender ID.
Delivery status
Store the returned message ID and poll the status endpoint to see sent, delivered, failed, or pending.
Buy credits from code
Top up your wallet over the API with a mobile-money push — perfect for a scheduled job that keeps your balance ready.
Built for OTP & alerts
Low-latency HTTPS calls for one-time passwords, order updates, and time-sensitive transactional messages.
Secure by design
Keys over HTTPS, per-key usage logs, and rate limiting so you can integrate with confidence.
Send your first SMS
Generate an API key from the API Keys section of your dashboard, then call the send endpoint with your approved sender ID. The response returns a message ID you can store and use to check delivery status.
- Register or log in, then create an API key.
- Register a sender ID so customers see your brand name.
- POST to the send endpoint and store the returned message ID.
curl -X POST https://api.darsms.co.tz/api/v1/integrations/sms/send \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"senderId": "YOUR_SENDER_ID",
"to": "2557XXXXXXXX",
"message": "Hello from the DARSMS SMS API"
}'Core API endpoints
All endpoints authenticate with your x-api-key header over HTTPS. See the full API documentation for request and response details.
| Method | Endpoint | Purpose |
|---|---|---|
| POST | /integrations/sms/send | Send a single or bulk SMS |
| GET | /integrations/sms/status/:messageId | Check delivery status |
| GET | /integrations/balance | Check your SMS credit balance |
| GET | /integrations/sender-ids | List your approved sender IDs |
| POST | /integrations/purchases | Buy SMS credits (mobile money) |
Start sending SMS from your app today
Create a free account, generate an API key, and get 5 free SMS credits to test your integration.
