Phone Number Verification in Uganda
Verify a Ugandan mobile phone number and retrieve the subscriber's name.
Prerequisites
You'll need an API key. See Quickstart or Authentication if you don't have one yet.
Note: Verification endpoints use an API key in the
X-API-Keyheader — not a Bearer token.
Make the verification request
No networkCode is required for Ugandan numbers — the carrier is resolved automatically.
curl -X POST https://api.lira.com/api/v1/verify/phone \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phoneNumber": "0700000000",
"country": "UG"
}'
Request body fields
| Field | Type | Required | Description |
|---|---|---|---|
phoneNumber |
string | Yes | Ugandan phone number. Local format (e.g. 0700000000) or E.164 (e.g. +256700000000). |
country |
string | Yes | Always UG. |
mode |
string | No | sync (default) or async. Use async to receive the result via webhook. |
Read the result
Successful verification
{
"id": "ver_c3d4e5f6-...",
"status": "success",
"verificationType": "PHONE_NUMBER",
"identifier": "0700000000",
"country": "UG",
"verifiedAt": "2026-04-08T10:07:00.000Z",
"verified": true,
"phoneNumber": "0700000000",
"fullName": "Sarah Nakamya"
}
Note: Uganda phone verifications return
fullNameonly. Individual name components (firstName,lastName) anddateOfBirthare not available for Ugandan numbers.
Failed verification
{
"id": "ver_c3d4e5f6-...",
"status": "failed",
"verificationType": "PHONE_NUMBER",
"identifier": "0700000000",
"country": "UG",
"verifiedAt": "2026-04-08T10:07:00.000Z",
"verified": false,
"error": {
"code": "SUBSCRIBER_NOT_FOUND",
"message": "No subscriber found for the provided phone number"
}
}
Note: A
200 OKHTTP response does not mean the verification succeeded. Always check thestatusfield.
Error handling
error.code |
Cause | Action |
|---|---|---|
SUBSCRIBER_NOT_FOUND |
Phone number not registered with the carrier | Ask the user to verify their number is correct and active |
INVALID_PHONE_NUMBER |
Phone number format is invalid | Validate format (local or E.164) before submitting |
PROVIDER_ERROR |
Upstream system returned an error | Retry with exponential backoff |
PROVIDER_TIMEOUT |
Upstream system timed out | Retry — transient error |
For the full error code reference, see Errors.
Next steps
- Supported Countries — full list of supported countries and verification types
- Phone Number Overview — general phone verification guide
- Async Verification with Webhooks — receive results via webhook
- Errors — complete error code reference
