Skip to content

Business Entities

This document explains the structure and relationships of key entities in the X-Faces system involved in user verification.


A User undergoes one or more verification attempts (Challenges), each of which contains results of verification steps like face_verification and id_recognition. After successful verification, the user is marked as verified.


{
"created_at": "timestamptz",
"updated_at": "timestamptz",
"u_uuid": "string uuid",
"external_id": "string",
"verified": true,
"verified_at": "timestamptz",
"challenge_id": "string uuid"
}
  • created_at: date and time of creation
  • updated_at: date and time of the last update
  • u_uuid: internal user ID in X-Faces
  • external_id: your internal user ID
  • verified: whether verification was completed
  • challenge_id: UUID of the challenge where the user completed verification

2. Challenge - data on the user’s verification process

Section titled “2. Challenge - data on the user’s verification process”
{
"created_at": "timestamptz",
"completed_at": "timestamptz",
"c_uuid": "string uuid",
"user_id": "string uuid",
"confidence": 0.95,
"face_verification": {
"verified": true,
"verified_confidence": 0.98,
"liveness": true,
"liveness_confidence": 0.96
},
"id_recognition": {
"recognized": true,
"confidence": 0.93,
"cnp": "1234567890123",
"id_seria": "AB",
"id_number": "123456",
"lastname": "Doe",
"firstname": "John",
"valid_until": "2028-12-31"
},
"images": {
"face": ["uuid1", "uuid2"],
"id_card": ["uuid3"]
}
}

Verification steps in the response can be of two types:

  • face_verification
  • id_recognition
{
"verified": true,
"verified_confidence": 0.97,
"liveness": true,
"liveness_confidence": 0.94
}
  • verified: whether the service considers the face on the ID card and selfie identical
  • verified_confidence: service confidence (from 0 to 1, where 0 is absolutely no, 1 is absolutely yes)
  • liveness: whether the service considers the selfie real
  • liveness_confidence: service confidence (from 0 to 1, where 0 is absolutely no, 1 is absolutely yes)
{
"type": 2,
"cnp": "1234567890123",
"last_name": "Doe",
"first_name": "John",
"seria": "AB",
"NR": "123456",
"expire_date": "2028-12-31",
"sex": "M",
"birth_date": "1990-01-01"
}
  • type: document type code (2 - id card, 3 - passport, 6 - driving license)
  • cnp: CNP number
  • last_name: last name
  • first_name: first name
  • seria: series
  • NR: number
  • expire_date: document expiration date (as in document)
  • birth_date: user birth date (as in document)
  • recognized: whether the ID card is recognized by the service
  • confidence: level of confidence in recognition (0 - card not recognized)