Skip to main content

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​

POST/verification/face/start Access token

Starts 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· uuidRequired

    Your application ID.

Request bodyapplication/json

  • userIdstringRequired

    User of the operation. For identification, omit it.

Response200 · application/json

  • operationIdstring· uuidOptional

    Identifier 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"
}'
Responses
200OKapplication/json
{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c"
}

Verify a user (face)​

POST/verification/face Access token

Compares 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· uuidRequired

    Your application ID.

  • transactionIdstringOptional

    Your 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· uuidOptional

    Identifier of the operation.

  • userIdstringRequired

    Identifier of the user.

  • groupIdstring[]Optional

    Groups the user must belong to (at least one). Defaults to DEFAULT.

  • samplesfile[]Required

    Face images (JPEG, PNG) or a short video (MP4). Repeat the field to send several.

  • livenessMethodnumberOptional

    Liveness method for presentation attack detection: 1 passive video (the user holds still for a moment), 2 passive image. Omit it to send a single image without liveness.

Response200 · application/json

  • operationIdstringRequired

    Identifier of the verification operation.

  • userIdstringRequired

    Identifier of the verified user. It can be hidden by configuration.

  • groupIdsstring[]Optional

    Groups of the request in which the user is enrolled and has been verified.

  • progressnumberRequired

    Progress of the verification, from 0 to 100. Below 100, send more samples with the same operationId.

  • verifiedbooleanRequired

    true if the user has been verified.

  • scoreobjectRequired
  • detectedFaceobjectRequired

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'
Responses
200OKapplication/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)​

POST/verification/face/template Access token

Compares a face template with the enrolled template of the user. Requires a started operation.

Roles: API · SDK

Headers

  • applicationIdstring· uuidRequired

    Your application ID.

  • transactionIdstringOptional

    Your 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· uuidRequired

    Identifier of the operation.

  • userIdstringRequired

    Identifier of the user.

  • groupIdstring[]Optional

    Groups the user must belong to (at least one). Defaults to DEFAULT.

  • templatestring· base64Required

    Template to verify, in base64.

Response200 · application/json

  • operationIdstringRequired

    Identifier of the verification operation.

  • userIdstringRequired

    Identifier of the verified user. It can be hidden by configuration.

  • groupIdsstring[]Optional

    Groups of the request in which the user is enrolled and has been verified.

  • progressnumberRequired

    Progress of the verification, from 0 to 100. Below 100, send more samples with the same operationId.

  • verifiedbooleanRequired

    true if 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…'
Responses
200OKapplication/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​

POST/verification/voice/start Access token

Starts 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· uuidRequired

    Your application ID.

Request bodyapplication/json

  • userIdstringRequired

    User of the operation. For identification, omit it.

Response200 · application/json

  • operationIdstring· uuidOptional

    Identifier 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"
}'
Responses
200OKapplication/json
{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c"
}

Verify a user (voice)​

POST/verification/voice Access token

Compares 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· uuidRequired

    Your application ID.

  • transactionIdstringOptional

    Your 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· uuidOptional

    Identifier of the operation.

  • userIdstringRequired

    Identifier of the user.

  • groupIdstring[]Optional

    Groups the user must belong to (at least one). Defaults to DEFAULT.

  • samplesfile[]Required

    Voice recordings (OGG, MP3, WAV). Repeat the field to send several.

  • livenessMethodnumberOptional

    Liveness method for voice: 0 (VOICE_PLA) detects replayed recordings and AI-generated voices. Omit it to skip liveness.

Response200 · application/json

  • operationIdstringRequired

    Identifier of the verification operation.

  • userIdstringRequired

    Identifier of the verified user. It can be hidden by configuration.

  • groupIdsstring[]Optional

    Groups of the request in which the user is enrolled and has been verified.

  • progressnumberRequired

    Progress of the verification, from 0 to 100. Below 100, send more samples with the same operationId.

  • verifiedbooleanRequired

    true if 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'
Responses
200OKapplication/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)​

POST/verification/voice/template Access token

Compares a voice template with the enrolled template of the user. Requires a started operation.

Roles: API · SDK

Headers

  • applicationIdstring· uuidRequired

    Your application ID.

  • transactionIdstringOptional

    Your 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· uuidRequired

    Identifier of the operation.

  • userIdstringRequired

    Identifier of the user.

  • groupIdstring[]Optional

    Groups the user must belong to (at least one). Defaults to DEFAULT.

  • templatestring· base64Required

    Template to verify, in base64.

Response200 · application/json

  • operationIdstringRequired

    Identifier of the verification operation.

  • userIdstringRequired

    Identifier of the verified user. It can be hidden by configuration.

  • groupIdsstring[]Optional

    Groups of the request in which the user is enrolled and has been verified.

  • progressnumberRequired

    Progress of the verification, from 0 to 100. Below 100, send more samples with the same operationId.

  • verifiedbooleanRequired

    true if 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…'
Responses
200OKapplication/json
{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c",
"userId": "user-0001",
"progress": 100,
"verified": true,
"score": {
"liveness": 0.96,
"matching": 0.91,
"identityVerification": 0.93
}
}