Ghana ๐Ÿ‡ฌ๐Ÿ‡ญ

Verify if a Ghanaian ID document is legit through OCR

How It Works

Appruve's OCR API allows you to extract the Personally identifiable information from a Ghana ID document including the ID face photo. The endpoint is constructed as follows.{id_type}

id_type should be replaced with the specific ID type. Supported ID types include passport, voter, driver_license, and ssnit.

The request is a multipart POST request as shown in the example below. The id_image parameter is required and the value could be a File Object or a web URL.

curl --location --request POST '' \
--header 'Authorization: Bearer TOKEN' \
--form '[email protected]"/path/gh_driver_license_1.jpg"'

An example response is given below.

"id_details": {
"full_name": "John Doe",
"date_of_birth": "1900-02-25",
"date_of_issue": "2018-11-11",
"date_of_expiry": "2024-11-10",
"certificate_date": "",
"certificate_of_competence": "12345678",
"class_of_licence": "B",
"id_photo": "Signed URL of the extracted id face photo"
"transaction_reference": "91cb3447-9437-409e-a62b-c7f5a2492d6e",
"face_sharpness": 92,
"face_brightness": 92,
"is_reenrollment": true

The returned transaction_reference value should be used for the Upload Selfie endpoint.