Flow events#
Flow events reflect the start and the end of the entire verification session. They allow you to track the overall status of the pass and get the final results of all technologies used within the given session. Two events are generated for each session: flow.start
at the beginning of the session and flow.end
at its end.
flow.start#
{
"id": "d45aef15-8949-4812-b873-650615d51d1a",
"event": "flow.start",
"session_id": "70f5e424-07a9-4393-ba31-7f3de8681a72",
"created": 1734597331,
"success": true,
"flow_name": "Liveness Head Position Flow",
"metadata": {},
"data": {
"technologies": ["LDHP"]
}
}
flow.end#
Successful completion#
{
"id": "5665f3c1-adce-4fe7-85f3-1e40e38cc0b7",
"event": "flow.end",
"session_id": "70f5e424-07a9-4393-ba31-7f3de8681a72",
"created": 1734597391,
"success": true,
"flow_name": "Liveness Head Position Flow",
"metadata": {},
"data": {
"session_result": {
"status": "FINISHED",
"session_id": "70f5e424-07a9-4393-ba31-7f3de8681a72",
"technologies": [
{
"code": "LDHP",
"name": "Liveness Head Position",
"description": "Detect liveness by photo and head position"
}
],
"liveness_result": {
"result": true,
"eye_closed": false,
"prediction": "0.9980",
"face_center": true,
"face_direction": "forward"
},
"flow_session_result": true
}
}
}
Unsuccessful completion#
{
"id": "2d891060-3b14-4920-ad0f-d21b70a9c33c",
"event": "flow.end",
"session_id": "3efb1a25-5d94-493d-99cf-043881909820",
"created": 1734597876,
"success": false,
"flow_name": "Liveness Head Position Flow",
"metadata": {},
"data": {
"session_result": {
"status": "FAILED",
"session_id": "3efb1a25-5d94-493d-99cf-043881909820",
"technologies": [
{
"code": "LDHP",
"name": "Liveness Head Position",
"description": "Detect liveness by photo and head position"
}
],
"liveness_result": {
"result": false,
"failure_reason": {
"type": "CALC_RESULT",
"detail": "Low overall prediction"
}
},
"flow_session_result": false
}
}
}