Skip to content
Lira APILira API

Verifications

Verify an identity document

post/verify/identity

Verify an identity document. Supports BVN (NG), NIN (TZ), and Ghana Card / Voter ID / Passport (GH).

Authorization

API key in the X-API-Key header.

Headers

Idempotency-Keystringrequired

Required for verification mutations. Use a unique printable ASCII key per logical request; retries with the same key return the original response.

Body required

countrystringrequired

ISO 3166-1 alpha-2 country code. Currently supported: NG, TZ, GH.

idTypestringrequired

Identity document type. NG: `bvn`. TZ: `nin`. GH: `ghana_card`, `voter_id`, `passport`.

idNumberstringrequired

Identity document number. For BVN: exactly 11 digits.

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

validationobject

Optional fields to cross-check against the registry response. When provided, the verification fails if values do not match.

Show child attributes
firstNamestring
lastNamestring
dateOfBirthstring

Format YYYY-MM-DD

selfiestring

Base64-encoded selfie image for biometric match (data URI or raw base64)

motherFirstNamestring
placeOfBirthstring
sexstring