API ReferenceSMS API
Pricing
GET /api/pricing - SMS price per segment for every destination.
Endpoint
GET https://sms.esmsafrica.io/api/pricingReturns the per-segment price for every active destination. For a live, message-specific quote (segment count + total in your wallet currency), use Check price instead.
Authentication
None - this endpoint is public (no API key needed), so you can show prices on your own site.
Response
[
{
"route_code": "ESMS_KE",
"country_code": "KE",
"country_name": "Kenya",
"currency": "KES",
"price_per_segment": 1.2,
"sender_id": "eSMSAfrica"
}
]| Field | Description |
|---|---|
route_code | Public route code (ESMS_<CC>). |
currency | Currency the price is quoted in. |
price_per_segment | Price for one 160-char GSM-7 (or 70-char Unicode) segment. |
sender_id | The route's default sender ID. It is used when you do not pass one only in the 8 default-sender countries; elsewhere a live send without your own sender ID returns 403 sender_id_required. |
Prices are billed per segment; a long message spans several segments. Your wallet is charged in its own currency, converted from the route currency at send time.
Example
curl https://sms.esmsafrica.io/api/pricing