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
Authorization: Bearer esms_live_your_api_keyResponse
[
{
"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. |
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 \
-H "Authorization: Bearer esms_live_your_api_key"