/ocr_passport

Endpoint

https://be.progeny.tech/api/v3/services/ocr_passport/

Purpose

Allows you to connect to the OCR_Card service, using the provider configured in the Progeny Console, to extract an image from a passport.

Please refer to the section on images for guidance before posting. For the best results, we recommend a maximum height of 1080px.

Sample request and response

Get a task Id

POST https://be.progeny.tech/api/v3/services/ocr_passport/

Request Body

{
    "id": "efe46711-b1d8-43f1-9d02-7a54c43b79a2"
}

Extract an image from a passport

GET https://be.progeny.tech/api/v3/services/task/?id={{task_id}}

Path Parameters

{
    "id": 2188,
    "status": "SUCCESS",
    "result": {
        "status": 200,
        "data": {
            "document": {
                "is_valid": true,
                "is_expired": false,
                "dateOfBirth": "1991-9-24",
                "age": 30,
                "firstName": "VALERIA",
                "lastName": "PERFILOVA",
                "dateOfIssue": "None-None-None",
                "dateOfExpiry": "2023-9-25",
                "documentNumber": "XX008080",
                "sex": "F",
                "nationality": "UKRAINIAN",
                "portrait": "images/services/ocr_passport/9456633680.jpg",
                "portrait_url": "https://dev.progeny.tech/media/images/services/ocr_passport/9456633680.jpg"
            },
            "compare": true,
            "liveness": true
        }
    }
}

Last updated