Skip to content

Unlock Profile ​

Clears the lock on a face profile after repeated failed authentications. A locked profile rejects every attempt with 2002206 User profile is locked until this endpoint is called.

Endpoint ​

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

Parameters:

ParamTypeRequiredDefaultDescription
user_idstringYes—User ID of the customer.

Returns: UnlockProfileResponse

When a Profile Locks ​

Verify Face Authen enforces two limits. Exceeding the brute-force limit locks the profile:

FieldTypeDescription
face_auth_rate_limit_exceeded2001016Too many attempts in the window. Transient — the user can retry later.
face_auth_brute_force_limit_exceeded2001017Too many failed attempts. The profile locks.
user_profile_locked2002206Returned by every subsequent call until unlocked.

A lock also blocks Create Transaction, so a locked user cannot even start a new authentication.

Sample Request ​

bash
curl -X POST \
  '<BASE_URL>/v1/unlock_profile' \
  -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"
  },
  "errors": [],
  "success": true,
  "code": 0,
  "message": "Success"
}
FieldTypeDescription
data.statusstringsuccess or failure.
data.request_idstringRequest ID; quote it to CAKE Support when checking logs.

WARNING

The lock is an anti-brute-force control, so unlocking removes a fraud defence. Require an independent identity check — a support callback or a separate authentication factor — before calling this, and record who authorized each unlock.

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