Session ID is needed for all two-step processes. Asking MachineSense server for Session-ID and providing it to your client-side application is necessary for those processes.
Session ID is a unique identifier of a session. It is used to identify a session in all subsequent calls to MachineSense API. It is necessary to identify and connect the data sent at a later stage with the initial request for a process. Also, response to certain webhook, specified by you, will be possible on the basis of this.
POST auth/v1/create_session_id
Parameters / body:
{
"api_key": "string",
"ref": "string",
"method": "enroll",
"client_origin": "own",
"receive_bitmaps": [array of strings],
"images": [array of strings],
"liveness_method": "string"
}
Parameters explained:
Code: 200
Default response:
{
"result": "Ok",
"code": 0,
"message": "string",
"data": {
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ms_url": "string"
}
}
Response explained: