T4Face Facial Recognition

Add a face to the system (Enroll)

post
Body
namestringRequired

Person name/identifier

Example: john_doe_123
imagestringRequired

Base64 encoded image (will be converted to file)

Responses
chevron-right
200

Face enrolled successfully

No content

post
/t4face/addface

No content

Verify if an image matches a specific person (1:1)

post
Body
namestringRequired

Person name to verify against

Example: john_doe_123
imagestringRequired

Base64 encoded image to verify

Responses
chevron-right
200

Verification completed

No content

post
/t4face/verify

No content

Identify a person from the entire database (1:N)

post
Body
imagestringRequired

Base64 encoded image to identify

hit_thresholdnumber · max: 100Optional

Hit threshold (default: 81)

Default: 81
Responses
chevron-right
200

Identification completed

No content

post
/t4face/identify

No content

Delete a person's face from the system

post
Body
idnumberRequired

Face record ID to delete

Responses
chevron-right
200

Face deleted successfully

No content

post
/t4face/delete

No content

Get total count of faces in the system

get
Responses
chevron-right
200

Count retrieved successfully

No content

get
/t4face/count

No content

Get latest faces added to the system

get
Path parameters
limitstringRequired
Responses
chevron-right
200

Latest faces retrieved successfully

No content

get
/t4face/latest/{limit}

No content

Get all faces in the system

get
Responses
chevron-right
200

Faces list retrieved successfully

No content

get
/t4face/list

No content

Get a specific face by ID

get
Path parameters
idstringRequired
Responses
chevron-right
200

Face retrieved successfully

No content

get
/t4face/{id}

No content

Sign up with facial recognition

post
Body
usernamestringRequired

Username/Person ID

Example: john_doe
imagestringRequired

Base64 encoded face image

emailstringOptional

Email (optional)

phoneNumberstringOptional

Phone number (optional)

Responses
post
/t4face/auth/signup

No content

Sign in with facial recognition

post
Body
usernamestringRequired

Username/Person ID

Example: john_doe
imagestringRequired

Base64 encoded face image

sessionIdstringOptional

Session ID for tracking authentication flow

Responses
chevron-right
200

Login successful

No content

post
/t4face/auth/signin

No content

Smart login - One-click authentication

post

Intelligent authentication that automatically identifies the user and signs them in or creates an account if new

Body
imagestringRequired

Base64 encoded face image

hit_thresholdnumberOptional

Hit threshold for face identification (default: 81)

sessionIdstringOptional

Session ID for tracking authentication flow

Responses
chevron-right
200

Authentication successful (signin or signup)

No content

post
/t4face/auth/smart-login

No content

Send OTP for two-factor authentication

post
Body
user_idstringRequired

User ID

methodstring · enumRequired

Two-factor method

Possible values:
sessionIdstringOptional

Session ID for tracking authentication flow

Responses
chevron-right
200

OTP sent successfully

No content

post
/t4face/auth/2fa/send-otp

No content

Verify OTP and complete login

post
Body
user_idstringRequired

User ID

otp_codestringRequired

OTP code

sessionIdstringOptional

Session ID for tracking authentication flow

Responses
chevron-right
200

OTP verified, login successful

No content

post
/t4face/auth/2fa/verify-otp

No content

Last updated