Skip to main content

Document Verification

Ensure the authenticity of end-users’ identity documents with a secure and reliable solution. Facia’s robust ID verification system is designed to safeguard against fraud, forgery, data manipulation, and unauthorized alterations. The solution strengthens protection against potential fraudulent activities while ensuring a seamless experience and maintaining high end-user conversion rates.

Generate Document Verification Request

This endpoint initiates a transaction request for document verification and returns response accordingly if the request includes proper authentication and valid fields, as mentioned below in the request parameters, using the POST method.

Endpoint

POSThttps://api.facia.ai/document-verification

Authorization:

Token Type: Client-Secret/Bearer Token
Description:

This API utilizes Access token or Client-Secret key in header for authentication.

You can use your client_id and client_secret key when using the "/request-access-token" endpoint to obtain a Bearer token for authorization while connecting to this API. For additional details on Authorization, click Here

Run in Postman

Request Body Samples:

//POST /document-verification HTTP/1.1
//Host: https://api.facia.ai
//Content-Type: application/json
//Headers: client-secret <client_secret_here>

{
"additional_file": "data:image/png;base64,your_image_base64_here",
"file": "data:image/png;base64,your_image_base64_here",
"type": "document_verification"
}

Request Parameters

ParametersDescription
typeRequired: Yes
Type: string
Example: type=document_verification
The service type being used.
fileRequired: Yes
Type: string (Base64 encoded image)
Example: file=data:image/png;base64,your_image_base64_here
additional_fileRequired: No
Type: string (Base64 encoded image)
Example: additional_file=data:image/png;base64,your_image_base64_here

Response Sample


{
"status": true,
"message": "success",
"result": {
"data": {
"reference_id": "ABC12345678",
"event": "verification_declined",
"ocr_results": {
"name": {
"first_name": John,
"middle_name": null,
"last_name": Doe,
"full_name": "John Doe"
},
"dob": "1999-01-01",
"expiry_date": "2020-01-01",
"issue_date": "2020-01-10",
"document_number": "1234567892345",
"gender": "M",
"full_address": "123, Street, City, Country",
"age": 25,
"selected_type": [
"id_card"
]
},
"decline_reason": "Uploaded image is found on the internet."
}
}
}


Response Parameters

ParametersDescription
reference_idType: string
Example: reference_id=ABC12345678
The unique identifier associated with each transaction.
ocr_resultsType: object
The object will include the extracted data from the provided card.
eventType: string
Indicates the final decision of the transaction.
Example: verification_accepted/declined
decline_reasonType: string
Returns the reason based on which the case was declined.