Skip to Content
API ReferenceOverview

API Reference

Base URLs

ServiceURL
SendAfrica APIhttps://api.sendafrica.online/v1
MailAfrica APIhttps://api.mailafrica.online
Agent Servicehttp://localhost:8000

SendAfrica Endpoints

EndpointMethodDescription
/v1/sms/sendPOSTSend a single SMS
/v1/sms/bulkPOSTSend SMS to multiple recipients
/v1/contactsGETList contacts
/v1/campaignsPOSTCreate a campaign
/v1/credits/balanceGETCheck credit balance
/v1/vouchers/initiatePOSTInitiate mobile money top-up

MailAfrica Endpoints

EndpointMethodDescription
/v1/emails/sendPOSTSend transactional email
/v1/emails/inboundGETList inbound emails
/v1/credits/balanceGETCheck email credit balance

Agent Endpoints

EndpointMethodDescription
/v1/agent/chatPOSTDashboard chat endpoint
/v1/agent/sessionsGETList account/user sessions
/v1/agent/sessions/{session_id}GETRead session history
/webhooks/sendafricaPOSTInbound SMS webhook
/healthGETHealth check
/readyGETReadiness check
/sseGETMCP SSE server

Chat and session routes require X-Account-ID and, when caller authentication is enabled, either X-API-Key or Authorization. Chat accepts session_id, message, and optional user_confirmation.

Error Codes

CodeDescription
400Bad Request — Invalid parameters
401Unauthorized — Invalid or missing API key
403Forbidden — Insufficient permissions
404Not Found — Resource does not exist
429Too Many Requests — Rate limit exceeded
500Internal Server Error
Last updated on