USSD — Africa
Getting Started with the Africa's Talking USSD API: 2026 Guide
Start with the Africa's Talking USSD API in 2026. Sessions, shortcodes, pricing, going live with Safaricom & Airtel, and HelloDuty as a no-code alternative.
The Africa's Talking USSD API is one of the most popular ways to build mobile services for feature-phone and smartphone users across Africa. From SACCO loan applications to school fee balances and agritech ordering platforms, USSD is still the most universal channel on the continent. This 2026 guide walks you through the Africa's Talking USSD API end to end, the session lifecycle, shortcode types, billing and revenue share, going live with Safaricom and Airtel, and how HelloDuty acts as a managed alternative for teams that want USSD without writing a single line of code.
Africa's Talking is a pan-African CPaaS that offers USSD, SMS, voice and airtime APIs. Its USSD API lets you provision shared or dedicated shortcodes on Safaricom, Airtel, Telkom Kenya, MTN Uganda, Airtel Uganda, Vodacom Tanzania, Airtel Tanzania, MTN Rwanda, Ethio Telecom and several others. You expose a public callback URL, and Africa's Talking forwards each USSD session step to your endpoint as an HTTP POST.
If you are new to the protocol itself, start with our primers on Unstructured Supplementary Service Data (USSD) and the comprehensive guide to building USSD applications.
A USSD session through Africa's Talking always follows the same four-step lifecycle. Think of it as a long-running HTTP conversation:
The text field is the most important. On the first request it is empty. On subsequent requests it contains every user input separated by an asterisk, so by inspecting the latest token you know what menu the user is on. The session ends after about 180 seconds of inactivity or when you send END.
Here is the non-code walkthrough of how to provision and ship your first USSD service. Each step is a single action in the Africa's Talking and HelloDuty dashboards.
You do not need to copy any code from this article. Mentally, the handler is a switch statement on the latest text token:
In practice you will want to refactor this into a data-driven menu tree: a tree of nodes with handlers, validation and state stored against the sessionId. That keeps your code maintainable as menus grow past 3 or 4 levels.
Africa's Talking offers two shortcode flavours and they behave very differently in production.
For background reading, see the Africa's Talking help centre article on dedicated USSD code pricing and our deeper Kenya breakdown on top USSD providers in Kenya.
Pricing varies by country and shortcode type, but the rough public guide for Kenya is:
Always check the live Africa's Talking pricing page, since MNO rates change.
Once your sandbox app works end to end, the path to production has three checkpoints:
Operationally, you also need to monitor session success rates per MNO, because Safaricom and Airtel have different timeouts and message length limits.
The Africa's Talking USSD API is excellent for development teams. If you do not have engineers, or you want USSD plus voice plus WhatsApp on one dashboard, HelloDuty acts as a managed layer. With HelloDuty you:
See our guide on choosing the right USSD platform for your business for a side-by-side comparison.
Yes. The Sandbox is free for development and testing. You only start paying once you provision a real shortcode and move to live MNO networks.
USSD sessions on Africa's Talking time out after roughly 180 seconds of inactivity, though the exact value can vary slightly by MNO. Each callback must respond within around 10 seconds.
Yes. Your callback receives the networkCode and serviceCode, so you can route logic by country or operator inside the same service.
CON tells the network to keep the session open and show the menu text. END terminates the session and shows the final message to the user.
Not if you use a managed platform like HelloDuty, which provides a visual flow builder, prebuilt integrations and managed shortcode provisioning. For deep custom logic, a developer using the Africa's Talking USSD API directly remains the most flexible option.
Whether you want to script every interaction yourself on the Africa's Talking USSD API or skip the engineering work entirely, HelloDuty has you covered. We provision shortcodes, host menu logic, integrate with M-Pesa, CRMs and databases, and support live operations across Kenya, Uganda, Tanzania and the wider African market. Get started with HelloDuty USSD and have your first menu live this week.

Are you ready to get started? Sign up here for a demo of the HelloDuty CRM and customer engagement automation software now.

Plan, engage, and analyse with ease. Transform your customer relationship with an all-in-one platform.
