Verifications
Verify a phone number
Verify a phone number and retrieve the subscriber's details. Ghana requires a networkCode.
Authorization
API key in the X-API-Key header.
Headers
Idempotency-KeystringrequiredRequired for verification mutations. Use a unique printable ASCII key per logical request; retries with the same key return the original response.
Body required
phoneNumberstringrequiredPhone number in local or E.164 format. 10–15 digits, optional leading `+`.
countrystringISO 3166-1 alpha-2 country code. Supported: NG, GH, UG, ZM, SN, CM, BJ, TG, TZ, ET.
Options: NGGHUGZMSNCMBJTGTZET
networkCodestringMobile network operator code. Required for Ghana (GH), Tanzania (TZ), Ethiopia (ET), and other listed countries. For ET: TELEBIRR or MPESA.
modestring`sync` returns the verification result in the response. `async` returns `pending` and delivers the final result via your registered webhooks (configure under `/webhooks`).
Options: syncasync
Response
idstringrequiredstatusstringrequiredOptions: pendingsuccessfailederrorinconclusive
verificationTypestringrequiredOptions: PHONE_NUMBER
identifierstringrequiredThe phone number that was verified
countrystringrequiredverifiedAtstring | nullrequiredverifiedboolean | nullrequiredoriginstringrequiredWhere this verification was initiated. `api` = Lira API key (machine-to-machine). `dashboard` = logged-in dashboard user.
Options: apidashboard
phoneNumberstring | nullrequiredfirstNamestring | nullrequiredlastNamestring | nullrequiredmiddleNamestring | nullrequiredfullNamestring | nullrequireddateOfBirthstring | nullrequiredidentityobjectShow child attributes
idTypestringrequiredIdentity document type returned by the registry
Options: NINTIN
idValuestringrequiredIdentity document value
errorobject | nullrequiredPopulated only when status is `failed` or `error`
Show child attributes
codestringrequiredmessagestringrequired