Before you start — FaceAuth has two delivery methods.This API is the client-implemented camera method: your app captures the selfie and posts the image file. This method does not support Active Liveness, so it cannot block spoofing attempts such as screen replays or printed photos. If physical-presence (liveness) verification matters, use the Face Auth URL method instead.→ Method comparison and URL setup: Add-on Getting Started · FACE AUTH guide
1. Base URL
POST/faceauth
2. Authentication
Include the API key in the x-api-key header:x-api-key
3. Request Example
POST/faceauth
4. Request Body
The request body must be in JSON format. The following are the field descriptions:Unique identifier for each KYC submission.
FaceAuth can only proceed if the corresponding submission (
FaceAuth can only proceed if the corresponding submission (
submissionId) is approved.Upload the user’s selfie image as a file. If PPE (head/face protective equipment) options are enabled, ensure that all safety equipment is clearly visible in the image for accurate recognition.
A unique identifier for the KYC submitter as defined by the customer.
Custom field 1 value.
Custom field 2 value.
Custom field 3 value.
5. Response
5-1. Success Response
result.json
5-2. Rejection Response
result.json
5-3. Response Data
| Field Name | Data Type | Description |
|---|---|---|
authentication_id | String | Unique ID for the faceAuth submission. |
auth_status | String | The final result of faceAuth, returning either approved (success) or rejected (failure). |
score | Object | Recognition scores based on the selected options. Properties may include face_similarity_score, occluded_score, face_cover_score, and head_cover_score. |
create_time | String | The date and time when faceAuth was submitted (UTC+0). |
fail_code | Array | If the status is rejected, a failure code is returned. |
rejected_comment | Array | If the status is rejected, a detailed reason for the failure is returned. |
6. Error Codes
6-1. Failure Codes
| Failure Code | Rejection Comment | Description |
|---|---|---|
face_compare_underscore | Face compare similarity score is lower than the threshold | Face similarity score is below the threshold. |
Face_Occluded_fail | Face is occluded | The face is obstructed. |
Face_cover_fail | Protection equipment is not found on Face | Face protective equipment is missing. |
Head_cover_fail | Protection equipment is not found on Head | Head protective equipment is missing. |
6-2. Error Codes
| Error Code | Message | Description |
|---|---|---|
invalid_data_format | Data parsing error. Please check input data. | The provided data format is incorrect. Verify the data format. |
required_field_missing | Required field is missing | A required field is missing. Ensure submissionId, faceImage, and API Key are included. |
Invalid_submissionId | Fail to find the submission data | The KYC submission does not exist. |
Invalid_projectId | Fail to find the project data | The FaceAuth project does not exist. |
invalid_submission_status | The submission must be approved to process face authentication | The KYC submission status is not approved. |
image_converting_error | Image converting error | The image format is invalid. Submit the image as form-data (base64 format is not supported). |
image_processing_error | Image processing error | An error occurred while processing the image data. |
detection_server_error | Cannot finish process of detecting face | An error occurred in the face comparison verification module. |
no_face | Face is not detected | No face was detected in the submitted faceImage. |
data_processing_error | Data processing error | An error occurred while retrieving or storing data. |