This document outlines an API endpoint for extracting passport information from an image. The response includes details such as name, date of birth, nationality, and passport number.
POST
{{URL}}/dikript/api/v1/extract/passport
Request Body
Content-Type: multipart/form-data
Key | Value | Description | Required |
---|---|---|---|
image | file | IForm file | yes |
Response Body
{
"status": true,
"message": "Successful",
"code": "200",
"apiVersion": "v1",
"transactionRef": "N202403310305394104",
"data": {
"firstName": "NAME",
"lastName": "NAME",
"middleName": "NAME",
"dateOfBirth": "01-MAR-28",
"sex": "M",
"nationality": "N****IAN",
"placeOfBirth": "L***S",
"nin": "9********21",
"previousPassportNumber": "A*******8",
"passportNumber": "B*******8",
"dateofIssuance": "",
"dateOfExpiry": "33-JUN-35"
},
"error": null
}
{
"status":false,
"message": "Unsuccessful",
"code": "400",
"apiVersion": "v1",
"transactionRef": "N202401101345487388",
"data": "",
"error": {
"code": 400,
"message": null
}
}