Video Health Analysis
Response
Web Hook
Errors
Video Health Analysis
This is an API for video and voice analysis based on real-time video records.
Authorization
Authorization: Bearer token
HTTP: bearerAuth
HTTP Authorization Scheme: bearer
Base URL
The base URL for all API requests is:

https://api.bizbaz.tech
    
Endpoints

GET /face-scan/generate-video-token
    
Endpoint to get an iframe URL that has a unique token, and represents a client scoring identifier.
Parameters
Responses
Data Type
Description
showResults
boolean
Determine whether to share the results at the end of the video analysis within the web page or not
clientId
string
(your identifier)
isVoiceAnalysisOn
string
(optional)
voiceAnalysisType
string
(optional)
Response
Returns an endpoint with a special token for the iframe.
Example 
Request:

GET /face-scan/generate-video-token?showResults=true&clientId=478653&isVoiceAnalysisOn=true&voiceAna
lysisType=candidateSuccess

    
Response:

{
success: true,
videoIframeUrl: "https://panel.bizbaz.tech/video-iframe-analysis/{iframeToken}"
}

    
Displaying iframe with {videoIframeUrl} :

iframe src={videoIframeUrl} title="Video Health Analysis"

    
Iframe Messages:

window.addEventListener('message', function (result) {s
if (result.origin === 'https://panel.bizbaz.tech') {
switch (result.data.action){
case 'onAnalysisStart' :{
console.log("started")
break;
}
case 'onAnalysisFinished' :{
if(result.data.analysisData){
// success
console.log(result.data.analysisData)
console.log(result.data.analysisData.scoreId)
}
break;
}
case 'failedToLoadPage':{
break;
}
}
}
});

    
Webhook
You can configure a dedicated endpoint on your server to receive the results of the facial scan in addition to the UI. We will send the following results to the provided endpoint.
Example 

{
"vital_signs": {
"heart_rate": 63.468955622702865,
"respiratory_rate": 14.18705606310129,
"spo2": 95.88756947985104,
"hrv_ibi": 945.3440569697665,
"hrv_sdnn": 91.36019389634924,
"hrv_rmssd": 63,
"stress_score": 50.833333333333336,
"blood_pressure": "111/79",
"blood_pressure_systolic": 111,
"blood_pressure_diastolic": 79,
"stress": 0.8725881351489186
}
},
"health_risks": {
"cvd_risk_general": 0.0619996132364955,
"cvd_risk_CHD": 0.044478522535861875,
"cvd_risk_Stroke": 0.009857938504602785,
"cvd_risk_CHF": 0.007117555599549684,
"cvd_risk_IC": 0.011184730227863789,
"covid_risk": 0.03503647316255275
},
"holistic_health": {
"cardiac_workload": 7045.054074120018,
"pulse_respiratory_quotient": 4.47372276111444,
"general_wellness": 93.72972531624524
},
"userInfo": {
"age": “29~34”,
"gender": “male”
},
clientId: {clientId}
}

    
Errors
This API uses the following error codes:
Error Codes
Description
400 Bad Request:
The request was malformed or missing required parameters.
401 Unauthorized:
The API key provided was invalid or missing.
404 Not Found:
The requested resource was not found.
500 Internal Server Error:
An unexpected error occurred on the server.