Menu

SDK steps (session token)

Start liveness

POST/v1/sessions/{id}/liveness/start

Starts the liveness step. The server picks 3–4 random head movements (head_left · head_right · head_up · head_down, each at most once, always at least one left/right), which is what blocks replayed videos.

Authorization: Bearer JWT (session token, SDK)

In a liveness_mode: "passive" session challenges is an empty list: capture only the selfie. Submit within expires_in_seconds. After a retry the old challenge is void: call Start liveness again. Outside liveness_pending the call returns 409.

Request
curl -X POST https://api.idotta.com/v1/sessions/{id}/liveness/start \
  -H "Authorization: Bearer <access_token>"
JSON
// Response 200
{ "challenge_id": "…", "challenges": ["head_up", "head_right", "head_left"], "expires_in_seconds": 300 }