- Introdução
- Consumindo a API
- Características da API
- Mensagens de Erro
- Material de Apoio
- Authentication
- Address Parsing
- Billing/DailySummary
- Content Classification
- Content Compare
- Content Extraction
- Content Extraction Async
- Content Extraction Distance
- Content Fullreader
- Enrichment
- Facematch
- Generative Content Extraction
- Image Properties
- Image Reporting - Continuous Improvement
- Invoice Extraction
- License Plate Recognition
- Liveness Detection
- Liveness Streaming
- MultiAddress Parsing
- MultiPage Content Extraction
- Payment Card Extraction
- Vio Extraction
Liveness Detection [application/json]
POST
https://mostqiapi.com/liveness/detect
livenessprova de vidabiometria facial
Last modified:2024-11-28 14:21:48
Request
Header Params
Authorization
string
required
Example:
Bearer {{bearer_token}}
Body Params application/json
fileBase64
string <base64>
optional
fileUrl
string
optional
movements
array[string]
optional
returnFullFace
boolean
optional
Esse parâmetro será falso se não for inserido ou se atribuído false.
Default:
false
Example
{
"fileBase64": "",
"fileUrl": "",
"movements": [
"up",
"left",
"down",
"right",
"smile"
],
"returnFullFace": "true"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mostqiapi.com/liveness/detect' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"fileBase64" : "",
"fileUrl":"",
"movements" : [
"up",
"left",
"down",
"right",
"smile"
],
"returnFullFace" : "true"
}'
Responses
⚪0S100 Success
application/json
Body
result
object
required
globalScore
number <float>
required
movementScore
number <float>
required
livenessScore
number <float>
required
imageScore
number <float>
required
frontalImage
string <base64> | null
required
Match pattern:
RFC3548
requestId
string
required
elapsedMilliseconds
integer
required
status
object
required
code
integer
required
message
string | null
required
errors
object
required
Example
{
"result": {
"globalScore": 1,
"movementScore": 1,
"livenessScore": 1,
"imageScore": 1,
"frontalImage": "base64"
},
"requestId": "xxxxxxxxxxxxxxxxxxxxx",
"elapsedMilliseconds": 1000,
"status": {
"message": "Success",
"code": "S100",
"errors": null
}
}
🟠400R101 A specified parameter is wrong
🟠401R117 Invalid authorization data
🔴500E100 The request could not be processed
Modified at 2024-11-28 14:21:48