Skip to main content
POST
Document Verification
Verify a customer’s UK passport by uploading a photo of the data page — no manual passport number entry required. OCR extraction plus a required face match against a selfie — no liveness check (no video, no blink/motion challenge).
Passport is single-sided — only document_front is needed.
selfie_image is required — the face extracted from the document is compared against it. This is a still-image comparison (not liveness).
UK document verification currently supports passports only — national ID, driver’s license, and other UK document types are not yet available.

Endpoint

Request

Headers

Body Parameters

Example

Response

200 OK

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

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.

selfie_image
file

A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required for every document_type except cac_certificate and utility_bill, which never carry a face photo and reject the request with 400 if selfie_image is missing for any other type. Still-image comparison only, not liveness.

Response

Document details extracted successfully

status
string
Example:

"success"

data
object
message
string
Example:

"Document details retrieved successfully"