eSMS AfricaeSMS Africa
API ReferenceSMS API

Pricing

GET /api/sms/pricing — Get SMS pricing per country.

All countries

GET https://app.esmsafrica.io/api/sms/pricing

Specific country

GET https://app.esmsafrica.io/api/sms/pricing/{countryCode}

Authentication

X-Account-ID: your_account_id
X-API-Key: your_api_key

Path parameters

ParameterTypeDescription
countryCodestringISO 3166-1 alpha-2 country code (e.g. KE, NG)

Response

All countries

Returns a map keyed by country code:

{
  "KE": {
    "countryCode": "KE",
    "countryName": "Kenya",
    "currencyCode": "KES",
    "cost": 0.80,
    "senderId": "eSMS"
  },
  "NG": {
    "countryCode": "NG",
    "countryName": "Nigeria",
    "currencyCode": "NGN",
    "cost": 4.00,
    "senderId": "eSMS"
  }
}

Specific country

{
  "countryCode": "KE",
  "countryName": "Kenya",
  "currencyCode": "KES",
  "cost": 0.80,
  "senderId": "eSMS"
}

Example

# All countries
curl https://app.esmsafrica.io/api/sms/pricing \
  -H "X-Account-ID: your_account_id" \
  -H "X-API-Key: your_api_key"

# Specific country
curl https://app.esmsafrica.io/api/sms/pricing/KE \
  -H "X-Account-ID: your_account_id" \
  -H "X-API-Key: your_api_key"

On this page