Verification
Verification answers "is this person who they claim to be?": it compares new samples with the template of one user (1:1).
Biometric operations take the application in the applicationId header. Each one has three steps: start the operation, send the samples with its operationId and repeat while the response is 202, then read the operation from your backend.
Start a face verification
/verification/face/start Access tokenStarts the face verification of a user and returns the operationId to send with the samples.
Roles: API · SDK
You can skip the start call if Mobbeel has preconfigured your application: then send your own operationId with the samples, or none and MobbID generates one.
Headers
applicationIdstring· uuidRequiredYour application ID.
Request bodyapplication/json
userIdstringRequiredUser of the operation. For identification, omit it.
Response200 · application/json
operationIdstring· uuidOptionalIdentifier of the new operation. Send it with the samples.
Status codes
- 200Operation started.
- 400Missing or invalid parameters.
- 401Invalid or expired auth token.
TOKEN_NOT_VALID. - 403The biometric method is not enabled for the application.
BIOMETRIC_METHOD_NOT_ENABLED. - 404User not found.
USER_NOT_FOUND. - 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X POST 'https://{SERVER-URL}/api/v7/verification/face/start' \
-H 'Authorization: Bearer <AUTH_TOKEN>' \
-H 'applicationId: <applicationId>' \
-H 'Content-Type: application/json' \
-d '{
"userId": "user-0001"
}'
application/json{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c"
}
Verify a user (face)
/verification/face Access tokenCompares face images or a short video with the face template of the user (1:1) and returns whether they are the same person, with the matching and liveness scores. The user must be enrolled in face.
Roles: API · SDK
Headers
applicationIdstring· uuidRequiredYour application ID.
transactionIdstringOptionalYour own identifier of a transaction that groups several operations (for example, detections followed by an enrolment), for monitoring and audit.
Request bodymultipart/form-data
operationIdstring· uuidOptionalIdentifier of the operation.
userIdstringRequiredIdentifier of the user.
groupIdstring[]OptionalGroups the user must belong to (at least one). Defaults to
DEFAULT.samplesfile[]RequiredFace images (JPEG, PNG) or a short video (MP4). Repeat the field to send several.
livenessMethodnumberOptionalLiveness method for presentation attack detection:
1passive video (the user holds still for a moment),2passive image. Omit it to send a single image without liveness.
Response200 · application/json
operationIdstringRequiredIdentifier of the verification operation.
userIdstringRequiredIdentifier of the verified user. It can be hidden by configuration.
groupIdsstring[]OptionalGroups of the request in which the user is enrolled and has been verified.
progressnumberRequiredProgress of the verification, from 0 to 100. Below 100, send more samples with the same
operationId.verifiedbooleanRequiredtrueif the user has been verified.scoreobjectRequireddetectedFaceobjectRequired
Status codes
- 200Verification finished. Read
verified. - 202More samples are needed: send them with the same
operationId. - 400The sample cannot be used.
BAD_SAMPLE_FORMAT,BAD_SAMPLE_QUALITY,NO_SAMPLE_DETECTED,NOT_ENOUGH_SAMPLE_DATA_DETECTED,MULTIPLE_SAMPLES_DETECTED. - 401Invalid or expired auth token.
TOKEN_NOT_VALID. - 403The biometric method is not enabled for the application.
BIOMETRIC_METHOD_NOT_ENABLED. - 404User not found.
USER_NOT_FOUND. - 409The operation was not started, its ID was already used, or the user is not enrolled.
PROCESS_NOT_STARTED,OPERATION_ALREADY_EXISTS,USER_NOT_ENROLLED_IN_BIOMETRIC_METHOD. - 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X POST 'https://{SERVER-URL}/api/v7/verification/face' \
-H 'Authorization: Bearer <AUTH_TOKEN>' \
-H 'applicationId: <applicationId>' \
-H 'transactionId: <transactionId>' \
-F 'operationId=3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c' \
-F 'userId=user-0001' \
-F 'livenessMethod=1' \
-F 'samples=@selfie.mp4'
application/json{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c",
"userId": "user-0001",
"progress": 100,
"verified": true,
"score": {
"liveness": 0.96,
"matching": 0.91,
"identityVerification": 0.93
},
"detectedFace": {
"probe": {
"detected": true,
"box": {
"x": 412,
"y": 236,
"w": 318,
"h": 402
},
"extractedSelfie": "CgRGQUNFEhQyMDI2LTExLTA0VDEwOjE1OjMwWhoE…"
}
}
}
Verify a user with a template (face)
/verification/face/template Access tokenCompares a face template with the enrolled template of the user. Requires a started operation.
Roles: API · SDK
Headers
applicationIdstring· uuidRequiredYour application ID.
transactionIdstringOptionalYour own identifier of a transaction that groups several operations (for example, detections followed by an enrolment), for monitoring and audit.
Request bodymultipart/form-data
operationIdstring· uuidRequiredIdentifier of the operation.
userIdstringRequiredIdentifier of the user.
groupIdstring[]OptionalGroups the user must belong to (at least one). Defaults to
DEFAULT.templatestring· base64RequiredTemplate to verify, in base64.
Response200 · application/json
operationIdstringRequiredIdentifier of the verification operation.
userIdstringRequiredIdentifier of the verified user. It can be hidden by configuration.
groupIdsstring[]OptionalGroups of the request in which the user is enrolled and has been verified.
progressnumberRequiredProgress of the verification, from 0 to 100. Below 100, send more samples with the same
operationId.verifiedbooleanRequiredtrueif the user has been verified.scoreobjectRequired
Status codes
- 200Verification finished. Read
verified. - 400Invalid template.
BAD_TEMPLATE_FORMAT,TEMPLATE_VERSIONS_DO_NOT_MATCH. - 401Invalid or expired auth token.
TOKEN_NOT_VALID. - 403The biometric method is not enabled for the application.
BIOMETRIC_METHOD_NOT_ENABLED. - 404User not found.
USER_NOT_FOUND. - 409The operation was not started, or the user is not enrolled.
PROCESS_NOT_STARTED,USER_NOT_ENROLLED_IN_BIOMETRIC_METHOD. - 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X POST 'https://{SERVER-URL}/api/v7/verification/face/template' \
-H 'Authorization: Bearer <AUTH_TOKEN>' \
-H 'applicationId: <applicationId>' \
-H 'transactionId: <transactionId>' \
-F 'operationId=3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c' \
-F 'userId=user-0001' \
-F 'template=CgRGQUNFEhQyMDI2…'
application/json{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c",
"userId": "user-0001",
"progress": 100,
"verified": true,
"score": {
"liveness": 0.96,
"matching": 0.91,
"identityVerification": 0.93
}
}
Start a voice verification
/verification/voice/start Access tokenStarts the voice verification of a user and returns the operationId to send with the samples.
Roles: API · SDK
You can skip the start call if Mobbeel has preconfigured your application: then send your own operationId with the samples, or none and MobbID generates one.
Headers
applicationIdstring· uuidRequiredYour application ID.
Request bodyapplication/json
userIdstringRequiredUser of the operation. For identification, omit it.
Response200 · application/json
operationIdstring· uuidOptionalIdentifier of the new operation. Send it with the samples.
Status codes
- 200Operation started.
- 400Missing or invalid parameters.
- 401Invalid or expired auth token.
TOKEN_NOT_VALID. - 403The biometric method is not enabled for the application.
BIOMETRIC_METHOD_NOT_ENABLED. - 404User not found.
USER_NOT_FOUND. - 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X POST 'https://{SERVER-URL}/api/v7/verification/voice/start' \
-H 'Authorization: Bearer <AUTH_TOKEN>' \
-H 'applicationId: <applicationId>' \
-H 'Content-Type: application/json' \
-d '{
"userId": "user-0001"
}'
application/json{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c"
}
Verify a user (voice)
/verification/voice Access tokenCompares voice recordings with the voice template of the user (1:1) and returns whether they are the same person, with the matching and liveness scores. The user must be enrolled in voice.
Roles: API · SDK
Headers
applicationIdstring· uuidRequiredYour application ID.
transactionIdstringOptionalYour own identifier of a transaction that groups several operations (for example, detections followed by an enrolment), for monitoring and audit.
Request bodymultipart/form-data
operationIdstring· uuidOptionalIdentifier of the operation.
userIdstringRequiredIdentifier of the user.
groupIdstring[]OptionalGroups the user must belong to (at least one). Defaults to
DEFAULT.samplesfile[]RequiredVoice recordings (OGG, MP3, WAV). Repeat the field to send several.
livenessMethodnumberOptionalLiveness method for voice:
0(VOICE_PLA) detects replayed recordings and AI-generated voices. Omit it to skip liveness.
Response200 · application/json
operationIdstringRequiredIdentifier of the verification operation.
userIdstringRequiredIdentifier of the verified user. It can be hidden by configuration.
groupIdsstring[]OptionalGroups of the request in which the user is enrolled and has been verified.
progressnumberRequiredProgress of the verification, from 0 to 100. Below 100, send more samples with the same
operationId.verifiedbooleanRequiredtrueif the user has been verified.scoreobjectRequired
Status codes
- 200Verification finished. Read
verified. - 202More samples are needed: send them with the same
operationId. - 400The sample cannot be used.
BAD_SAMPLE_FORMAT,BAD_SAMPLE_QUALITY,NO_SAMPLE_DETECTED. - 401Invalid or expired auth token.
TOKEN_NOT_VALID. - 403The biometric method is not enabled for the application.
BIOMETRIC_METHOD_NOT_ENABLED. - 404User not found.
USER_NOT_FOUND. - 409The operation was not started, its ID was already used, or the user is not enrolled.
PROCESS_NOT_STARTED,OPERATION_ALREADY_EXISTS,USER_NOT_ENROLLED_IN_BIOMETRIC_METHOD. - 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X POST 'https://{SERVER-URL}/api/v7/verification/voice' \
-H 'Authorization: Bearer <AUTH_TOKEN>' \
-H 'applicationId: <applicationId>' \
-H 'transactionId: <transactionId>' \
-F 'operationId=3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c' \
-F 'userId=user-0001' \
-F 'livenessMethod=0' \
-F 'samples=@voice.wav'
application/json{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c",
"userId": "user-0001",
"progress": 100,
"verified": true,
"score": {
"liveness": 0.96,
"matching": 0.91,
"identityVerification": 0.93
}
}
Verify a user with a template (voice)
/verification/voice/template Access tokenCompares a voice template with the enrolled template of the user. Requires a started operation.
Roles: API · SDK
Headers
applicationIdstring· uuidRequiredYour application ID.
transactionIdstringOptionalYour own identifier of a transaction that groups several operations (for example, detections followed by an enrolment), for monitoring and audit.
Request bodymultipart/form-data
operationIdstring· uuidRequiredIdentifier of the operation.
userIdstringRequiredIdentifier of the user.
groupIdstring[]OptionalGroups the user must belong to (at least one). Defaults to
DEFAULT.templatestring· base64RequiredTemplate to verify, in base64.
Response200 · application/json
operationIdstringRequiredIdentifier of the verification operation.
userIdstringRequiredIdentifier of the verified user. It can be hidden by configuration.
groupIdsstring[]OptionalGroups of the request in which the user is enrolled and has been verified.
progressnumberRequiredProgress of the verification, from 0 to 100. Below 100, send more samples with the same
operationId.verifiedbooleanRequiredtrueif the user has been verified.scoreobjectRequired
Status codes
- 200Verification finished. Read
verified. - 400Invalid template.
BAD_TEMPLATE_FORMAT,TEMPLATE_VERSIONS_DO_NOT_MATCH. - 401Invalid or expired auth token.
TOKEN_NOT_VALID. - 403The biometric method is not enabled for the application.
BIOMETRIC_METHOD_NOT_ENABLED. - 404User not found.
USER_NOT_FOUND. - 409The operation was not started, or the user is not enrolled.
PROCESS_NOT_STARTED,USER_NOT_ENROLLED_IN_BIOMETRIC_METHOD. - 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X POST 'https://{SERVER-URL}/api/v7/verification/voice/template' \
-H 'Authorization: Bearer <AUTH_TOKEN>' \
-H 'applicationId: <applicationId>' \
-H 'transactionId: <transactionId>' \
-F 'operationId=3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c' \
-F 'userId=user-0001' \
-F 'template=CgRGQUNFEhQyMDI2…'
application/json{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c",
"userId": "user-0001",
"progress": 100,
"verified": true,
"score": {
"liveness": 0.96,
"matching": 0.91,
"identityVerification": 0.93
}
}