Skip to content

DocAuth

You can check the validity of someones documents through our DocAuth API

Authorization

This endpoint requires a API token as Bearer in the Authorization header. Go to Authorization guide for details.

Request

POST https://api.biometrysolutions.com/api-gateway/docauth/check

Headers

  • Authorization* - Your API Token.
Request
curl --location 'https://api.biometrysolutions.com/api-gateway/docauth/check' \
--header 'X-User-Fullname: John Doe' \
--form 'document=@"/Users/john/Desktop/IMG_0001.jpeg"'
Response

The response will contain information extracted from the document and a message indicating the result of the document verification. You can check the validity of the document by looking at the current_result field. In most cases we will return the data even if the document is not valid. Possible values for current_result are:

  • Passed - The document is valid
  • Failed - The document is not valid

It is up to our customers to decide if they care about the validity of the document or not.

{
"data": {
"document_type": "National Identification Card",
"country_code": "KGZ",
"nationality_code": "KGZ",
"nationality_name": "KYRGYZSTANI",
"sex": "MALE",
"first_name": "JOGN",
"father_name": "CERA",
"last_name": "DOE",
"expiry_date": "2028-08-03",
"document_number": "ID0833333",
"birth_date": "2002-04-01",
"portrait_photo": "",
"signature": "",
"document_category": "National Identification Card",
"issuing_state": "Not available",
"front_document_type_id": "",
"contains_rfid": false,
"current_result": "Passed",
"face_image_base64": "RQWW..."
},
"message": "Document uploaded successfully, looks like it's authentic"
}