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
complimentarybooleanrequiredTrue when this live verification was consumed from your complimentary test allowance instead of being charged to your wallet.
firstNamestring | nullrequiredlastNamestring | nullrequiredmiddleNamestring | nulldateOfBirthstring | nullrequiredgenderstring | nullrequiredplaceOfBirthstring | nullrequirednationalIdstring | nullNational identity number recorded by the registry.
cardIdstring | nullThe Ghana Card document (card) number.
cardValidFromstring | nullcardValidTostring | nullnationalitystring | nulladdressesarray | nullAddresses on file (Hometown and/or Residence).
contactobject | nullContact details on file.
Show child attributes
emailstring | nullphoneNumbersobject[]Show child attributes
typestring | nullphoneNumberstring | nullnetworkstring | nulloccupationsarray | nullOccupations recorded by the registry.
imagestring | nullThe cardholder's photo on file, as a base64 data URI. May be `null`.
validationobject | 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