Skip to main content

Biometric validation

POST /veriface/validate HTTP/1.1
HOST: {{api_auco}}
Authorization: {{private_key}}

Service to obtain the similarity between an identity document and a person's photograph using AI algorithms, validating the authenticity of the photos.

Authentication

Include your private key in the Authorization header.

Authorization: prk_xxx...

Query parameters

NameDescription
photo
String
Required.
Image of the person's face in base64 or the public URL to access the image.
The image must be in JPEG or PNG format.
documentImage
String
Required.
Image of the document in base64 or the public URL to access the image.
The image must be in JPEG or PNG format.

📥 Example responses

{
"error": false,
"similarity": 89.46871185302734,
"code": "JPJD42IDWP3Z6RXA"
}

🧪 Usage examples

curl -X POST '{{api_auco}}/veriface/validate' \
-H 'Authorization: {{private_key}}' \
-d '{
"photo": "https://url.com/photo.jpg",
"documentImage": "https://url.com/document.jpg"
}'

⚠️ Error Responses

CodeDescription
400Missing parameters like photo or documentImage.
Incorrect image format.
401Invalid or missing authentication.