API reference

Sessions

The v3 Sessions API.

#Create a session

POST/v3/session/
FieldTypeDescription
workflow_idstringThe workflow to run. Uses your default workflow if left out
vendor_datastringYour user ID. Links sessions to a user
callbackstringWhere to send the user when they finish
metadataobjectYour own data, returned in webhooks. Workflow conditions can read metadata.<key>
contact_detailsobjectemail, phone
expected_detailsobjectfirst_name, last_name, date_of_birth, nationality to compare with the document
send_emailbooleanEmail the link to contact_details.email
ongoing_amlbooleanKeep screening this user after approval
typestringauthentication for biometric re-authentication
flash_checkbooleanAdd the colour-flash liveness check
bash
curl -X POST https://{{HOST}}/v3/session/ -H "x-api-key: sk_test_..." -H "Content-Type: application/json" \
  -d '{"workflow_id":"wf_...","vendor_data":"user-123","callback":"https://yourapp.com/done","metadata":{"plan":"gold"}}'

Returns 201:

json
{ "session_id": "ver_...", "session_number": 1042, "session_token": "vs_...", "url": "https://{{HOST}}/verify/?token=vs_...", "status": "Not Started" }

#Get a session

GET/v3/session/{id}/Summary and status

#Get the decision

GET/v3/session/{id}/decision/

Returns status, risk_score, features[] and an array per check type. Each item has a node_id and its own status: id_verifications[], liveness_checks[], face_matches[], aml_screenings[], poa_verifications[], database_validations[], ip_analyses[], biometric_authentications[], questionnaires[], plus list_matches, reviews[] and workflow_path. Image URLs are signed and expire after 60 minutes.

#List sessions

GET/v3/sessions/?status=Approved&vendor_data=&workflow_id=&limit=&offset=

#Update the status

PATCH/v3/session/{id}/update-status/
FieldDescription
new_statusApproved, Declined or Resubmitted
commentNote for the audit log
nodes_to_resubmitFor Resubmitted: such as ["liveness_1","id_verification_1","face_match_1","poa_1"]. Returns a fresh url

#Decision PDF

GET/v3/session/{id}/generate-pdf

#Session media

GET/v3/media/{fid}Signed image URLs in decisions point here

#Delete

DELETE/v3/session/{id}/delete/Erase one session and its files
POST/v3/sessions/delete/{session_ids: [...]}