Verifications
Verify an identity document with a live selfie
Verify a Ghana Card by matching a live selfie against the cardholder record (liveness + 1:1 face match). Returns the verified identity on a successful match.
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
countrystringrequiredISO 3166-1 alpha-2 country code. Facial verification currently supports: GH.
idTypestringrequiredIdentity document type. Facial verification currently supports: `ghana_card`.
idNumberstringrequiredGhana Card number.
imagesobjectrequiredImage inputs. Provide `selfie` for facial verification.
Show child attributes
selfiestringrequiredBase64-encoded live face photo (data URI or raw base64). Required.
documentFrontstringReserved for future document verification. Not yet supported.
documentBackstringReserved for future document verification. Not yet supported.
modestringFacial verification is synchronous only.
Options: sync
validationobjectOptional fields to cross-check against the matched identity. A mismatch yields status `inconclusive`.
Show child attributes
firstNamestringlastNamestringdateOfBirthstringFormat YYYY-MM-DD
Response
idstringrequiredstatusstringrequiredOptions: pendingsuccessfailederrorinconclusive
verificationTypestringrequiredOptions: GHANA_CARD_FACIAL
idTypestringrequiredcountrystringrequiredidentifierstringrequiredThe Ghana Card number that was verified
verifiedAtstring | nullrequiredverifiedboolean | nullrequiredfacialMatchboolean | nullrequiredTrue when the selfie matched the cardholder (liveness + face match passed)
originstringrequiredWhere this verification was initiated. `api` = Lira API key (machine-to-machine). `dashboard` = logged-in dashboard user.
Options: apidashboard
firstNamestring | nullrequiredlastNamestring | nullrequireddateOfBirthstring | nullrequiredgenderstring | nullrequiredplaceOfBirthstring | nullrequiredvalidationobject | nullrequiredPer-field cross-check results (present only when validation fields were submitted)
Show child attributes
firstNameobjectShow child attributes
valuestringrequiredmatchbooleanrequiredlastNameobjectShow child attributes
valuestringrequiredmatchbooleanrequireddateOfBirthobjectShow child attributes
valuestringrequiredmatchbooleanrequirederrorobject | nullrequiredPopulated only when status is `failed` or `error`
Show child attributes
codestringrequiredmessagestringrequired