Skip to content

Get Face Authen ​

Reads the status of a user's face profile. Use it to check whether a user is enrolled before starting an authentication.

Endpoint ​

http
POST /v1/get_face_auth
Content-Type: application/json
json
{
  "user_id": "user_00000001"
}

Parameters:

ParamTypeRequiredDefaultDescription
user_idstringYes—User ID of the customer.

Returns: GetFaceAuthResponse

Sample Request ​

bash
curl -X POST \
  '<BASE_URL>/v1/get_face_auth' \
  -H 'Authorization: ATV <ACCESS_ID>:<SIGNATURE>' \
  -H 'X-TV-Timestamp: <TIMESTAMP>' \
  -H 'Content-Type: application/json' \
  -d '{
    "user_id": "user_00000001"
  }'

Response ​

json
{
  "data": {
    "status": "success",
    "request_id": "cfc7b8d5-f2e2-437b-80e5-d600dfad26e2",
    "face_auth": {
      "user_id": "user_00000001",
      "status": "VERIFIED"
    }
  },
  "errors": [],
  "success": true,
  "code": 0,
  "message": "Success"
}
FieldTypeDescription
data.statusstringsuccess or failure — whether the lookup itself succeeded.
data.request_idstringRequest ID; quote it to CAKE Support when checking logs.
data.face_auth.user_idstringThe user ID the profile belongs to.
data.face_auth.statusstringProfile status, e.g. VERIFIED.

data.status reports the lookup; data.face_auth.status reports the profile. A successful lookup of an unusable profile still returns data.status: "success".

Errors ​

CodeMessage
2001010Access ID not found.
401100You are not authorized to perform the action.
4001000Input parameter violates a constraint.
4001001The X-TV-Timestamp header is expired, need a newer one.
4041001User not found.
5001000Some unexpected error occurs while processing the request.
CodeDescription
access_id_not_foundAccess ID not found.
access_denied_exceptionYou are not authorized to perform the action.
invalid_parameter_exceptionInput parameter violates a constraint.
request_time_too_skewedThe X-TV-Timestamp header is expired, need a newer one.
user_not_found_exceptionUser not found.
internal_server_errorSome unexpected error occurs while processing the request.

Next Steps ​

Developers