API Reference
The SDKs are thin, fully-typed wrappers around the SendAfrica REST API. Every SDK method maps to an HTTP endpoint and returns the same response envelope.
Base URL
https://api.sendafrica.online/v1Core endpoints
| Endpoint | Method | SDK pages |
|---|---|---|
/v1/sms/ | POST — send one SMS | Go · Python · TypeScript |
/v1/sms/bulk | POST — send one message to many | Go · Python · TypeScript |
/v1/sms/logs | GET — message logs | Go · Python · TypeScript |
/v1/credits/balance | GET | Go · Python · TypeScript |
/v1/credits/history | GET | Go · Python · TypeScript |
/v1/rates · /v1/rates/{country} | GET — public rate card | Go · Python · TypeScript |
/v1/sender-ids + /v1/sender-ids/{id} | GET/POST/PUT | Go · Python · TypeScript |
/v1/vouchers · /v1/vouchers/rate | GET/POST — top up credits | Go · Python · TypeScript |
Authentication
API keys are sent as X-API-Key (and Authorization: Bearer) on every request automatically. See Authentication.
Response envelope
Every response wraps in a standard shape:
{
"success": true,
"data": { },
"request_id": "dfffa252-4781-43ff-8e1a-bf01a754d66a"
}Errors use "success": false, an error object with code and message, and the same request_id for tracing — see Error Handling.
Full REST documentation
For the complete OpenAPI contract, machine-readable openapi.json, and additional API-only endpoints (webhook management, voucher OTP, rate-card metadata), see the main developer documentation .
Last updated on