Verify a phone number
Verify a phone number and retrieve the subscriber's details. Ghana requires a networkCode.
Headers
- Type: stringIdempotency
- Key min length:1max length:255requiredRequired for verification mutations. Use a unique printable ASCII key per logical request; retries with the same key return the original response.
Body·
required
application/json
- Type: stringphone
Number min length:10max length:15Pattern: ^\+?\d+$requiredPhone number in local or E.164 format. 10–15 digits, optional leading
+. - Type: stringenumcountry
ISO 3166-1 alpha-2 country code. Supported: NG, GH, UG, ZM, SN, CM, BJ, TG, TZ.
values- N
G - G
H - U
G - Z
M - S
N - C
M - B
J - T
G - T
Z
- Type: stringenummode
syncreturns the verification result in the response.asyncreturnspendingand delivers the final result via your registered webhooks (configure under/webhooks).values- sync
- async
- Type: stringnetwork
Code min length:2max length:10Mobile network operator code. Required for Ghana (GH); accepted values: MTN, Vodafone, AirtelTigo.
Responses
- application/json
- application/json
- application/json
- application/json
Request Example for post/verify/phone
curl https://api.lira.com/api/v1/verify/phone \
--request POST \
--header 'Idempotency-Key: verify-request-20260504-001' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_SECRET_TOKEN' \
--data '{
"phoneNumber": "08012345678",
"country": "NG",
"networkCode": "MTN",
"mode": "sync"
}'
{
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"status": "success",
"verificationType": "PHONE_NUMBER",
"identifier": "08012345678",
"country": "NG",
"verifiedAt": "2026-04-22T10:15:30.000Z",
"verified": true,
"origin": "api",
"phoneNumber": "08012345678",
"firstName": "Jane",
"lastName": "Doe",
"middleName": "Adaeze",
"fullName": "Jane Adaeze Doe",
"dateOfBirth": "1990-03-15",
"identity": {
"idType": "NIN",
"idValue": "12345678901"
},
"error": {
"code": "PHONE_NOT_FOUND",
"message": "Phone number not registered with any operator"
}
}