eSMS AfricaeSMS Africa
eSMS Voice

eSMS Voice

Programmable outbound voice calls for Africa - voice OTP, notifications, reminders, keypad IVR menus and voice broadcast campaigns, with signed webhooks. Early access.

Early access - contact sales

eSMS Voice is in early access. Live calls are enabled per account and per country after a conversation with our team - contact sales to join. Until then a live call returns 503 voice_disabled or 403 voice_not_enabled. The sandbox works for everyone today with an esms_test_ key: build and test your whole integration now.

eSMS Voice lets your application place phone calls that speak text, play audio and collect keypad input. You describe the call as a short flow, start it with one API call, and receive signed webhooks as the call is queued, rings, is answered, collects key presses and ends. Voice campaigns call a whole list with the same flow, personalised per recipient.

What you can build

  • Voice OTP - read a one-time code out loud, for feature phones or as an SMS fallback.
  • Notifications - payment, fraud, outage or delivery alerts people hear, not skim.
  • Reminders - appointments, payments and renewals with the customer's name filled in.
  • IVR menus with keypad input - "press 1 to confirm, 2 to reschedule", with branches.
  • Voice broadcast campaigns - upload a list, validate it, schedule within calling hours, follow every recipient.

How it works

 Your backend                       eSMS Africa                           Phone
 ------------                       -----------                           -----
 POST /v1/voice/calls  ---------->  checks limits, holds the
 (Idempotency-Key)                  estimated cost, queues the call
       <----------- 202 {id: "call_..."}
                                    dials over our voice network  ------> rings
       <----- webhook call.ringing
                                    runs your flow: say / play /  <-----> answered
       <----- webhook call.answered gather / hangup
       <----- webhook call.gather   (keypad digits)
       <----- webhook call.completed  bills per started minute,
                                    releases the unused hold
  1. Describe the call as a flow: say, play, gather and hangup steps.
  2. Start it with POST /v1/voice/calls. The Idempotency-Key header is required, so a retry never places a second call.
  3. We place the call. eSMS Africa checks your country allow-list, limits and balance, holds the cost of the longest possible call, then dials.
  4. Events come back as signed webhooks. You can also fetch any call and its event history by id.

Coverage

Starting with Uganda, then Kenya, Nigeria, Rwanda, Tanzania, Ghana, Zambia and South Africa. Each country is switched on for your account when it is ready for live traffic. Your account only calls the countries on its allow-list (deny by default); any other destination returns 403 country_not_allowed. GET /v1/voice/pricing lists the countries with an approved price and whether each is live or early_access.

Pricing

Per-minute pricing per country, shown before you launch - early access pricing on request. Calls are billed per started minute from the same USD balance you use for SMS. See Billing.

Authentication

Use the same API keys as the SMS API (Authorization: Bearer esms_live_...), with the voice scope. Read-only endpoints also accept the query scope. Every endpoint is available under both https://sms.esmsafrica.io/v1/... and https://sms.esmsafrica.io/api/....

Sandbox

Calls made with an esms_test_ API key are simulated: no real call is placed, nothing is charged, livemode is false, and the call still moves through the normal states and fires your webhooks. The sandbox works even while live voice is not enabled on your account.

The last four digits of to choose the outcome:

to ends inSimulated outcome
0000Rings, not answered - no_answer
0001Line busy - busy
0002Call fails - failed with error_code: network_error, retryable: true
0003Answered, presses 1 at the first gather, then completed
anything elseAnswered and completed after about 35 seconds

GET /v1/voice/settings returns the same table under sandbox.magic_numbers.

The sandbox skips the early-access and money checks (live voice switch, account enabled, country allow-list, approved price, caller number, daily cap, balance) but still enforces phone number validity, flow rules, idempotency, pause switches and rate limits (at least 5 calls per second and 10 at once). Signed in to the dashboard, you can also send "environment": "test" in the body to make a sandbox call without a test key.

Next steps

On this page