Skip to main content
POST
Document Verification
Verify a customer’s Nigerian National Identification Number slip or card by uploading a photo — no manual NIN entry required. Extraction only; no face match, no liveness check.
This is a two-sided document — supply both document_front and document_back for the most complete extraction.

Endpoint

Request

Headers

Body Parameters

Example

Response

200 OK

400 Bad Request

Returned for invalid input, or when the document fails OCR’s own quality checks (blurry, wrong document type, glare, etc.).

401 Unauthorized

For a full list of error codes, see the Error Codes reference.

Authorizations

x-access-token
string
header
required

Your Adhere API secret key

Body

multipart/form-data
document_type
enum<string>
required

The kind of document being submitted. Which values are valid depends on country — passport works for every supported country; the rest are country-specific.

Available options:
national_id,
passport,
drivers_license,
voters_card,
kenya_id,
cac_certificate,
utility_bill
Example:

"passport"

country
enum<string>
required

Country the document was issued in.

Available options:
nigeria,
kenya,
ghana,
canada,
usa,
cote d'ivoire
Example:

"nigeria"

document_front
file
required

Front of the document. JPG or PNG, max 5MB.

document_back
file

Back of the document. Optional for every type, but recommended for two-sided documents (national_id, kenya_id, drivers_license) — extraction may be less complete without it.

Response

Document details extracted successfully