New: French documentation now available! Switch to French
English
cURL
curl --request POST \ --url https://api.txcloud.io/v1/identity/liveness \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "image": "aSDinaTvuI8gbWludGxpZnk=", "mode": "passive", "frames": [ "aSDinaTvuI8gbWludGxpZnk=" ] } '
{ "id": "<string>", "object": "identity.liveness", "is_live": true, "confidence": 123, "spoof_probability": 123, "spoof_type": "none", "signals": [ "<string>" ] }
Detects if a selfie image is of a live person or a spoof attempt.
Detection Modes:
passive
active
Spoof Types Detected:
API key as Bearer token
Additional frames for active mode
Liveness check result
identity.liveness
none
photo
screen
mask
deepfake