Menu

SDK steps (session token)

Submit liveness

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

Uploads one frame per challenge, in the order of challenges, plus a final neutral selfie. multipart/form-data; repeated fields use the same name (frames, not frames[]).

Authorization: Bearer JWT (session token, SDK)

409 before Start liveness or outside liveness_pending. 422: wrong challenge_id, the challenge expired, the frame count does not match, frames[] used instead of frames, or more than 8 burst frames. A burst that fails the motion analysis sends the session to review. The decision combines the per-frame movement checks, frame consistency, passive anti-spoofing and (with a document) the selfie ↔ document face match; it arrives by webhook.

Request
curl -X POST https://api.idotta.com/v1/sessions/{id}/liveness/submit \
  -H "Authorization: Bearer <access_token>" \
  -F "challenge_id=abc123" \
  -F "frames=@frame1.jpg" \
  -F "frames=@frame2.jpg" \
  -F "frames=@frame3.jpg" \
  -F "selfie=@selfie.jpg"
JSON
// multipart/form-data
challenge_id: "…"
frames:       <image>, <image>, <image>   // one per challenge, same order (none in passive mode)
selfie:       <image>                      // neutral face after the challenges
burst:        <image>, …                   // optional, at most 8 frames ~150 ms apart (motion analysis)

// Response 202
{ "status": "liveness_processing" }