Skip to main content
POST
Document Verification — Nigeria Driver's License
Verify a customer’s Nigerian driver’s license by uploading a photo — no manual license number entry required. We read the details and compare the face on the document with a selfie. No liveness check is needed.
This is a two-sided document — supply both document_front and document_back for the most complete extraction.
selfie_image is required — the face extracted from the document is compared against it. This is a still-image comparison (not liveness).

Endpoint

Request

Headers

Body Parameters

A scanned document can be uploaded as a single-page PDF, for example -F "document_front=@/path/to/scan.pdf".

Example

Response

200 OK

Extra Fields — extra_fields carries every other field the license actually printed that doesn’t have its own dedicated field above. Nigerian licenses print more of these than other countries’ — expect anywhere from a few fields to the full set shown here, and expect null/absent fields to be dropped rather than sent as null, since a field that wasn’t printed on the document isn’t guessed at.
Face Match Notes — if the comparison service itself fails, attempted reflects whether a comparison was actually run and verified comes back null with a reason field explaining why — this is different from verified: false, which means the comparison ran and the faces didn’t match. A face-match problem never blocks the underlying document data — the rest of data is still returned.

400 Bad Request

Expired documents

An expired document fails the check. The extracted details are still returned in data, with is_expired: true:

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_front
file
required

Front of the driver's license. JPG, PNG or single-page PDF, max 10MB.

document_back
file

Back of the license. Optional, but recommended — extraction may be less complete without it. JPG, PNG or single-page PDF, max 10MB.

selfie_image
file

A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required.

Response

Document details extracted successfully

status
string
Example:

"success"

data
object
message
string
Example:

"Document details retrieved successfully"