Skip to main content

Identification

Identification answers "who is this person?": it compares new samples with every user of a group (1:N) and returns the best candidates.

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 identification​

POST/identification/face/start Access token

Starts a face identification 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.

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.
  • 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X POST 'https://{SERVER-URL}/api/v7/identification/face/start' \
-H 'Authorization: Bearer <AUTH_TOKEN>' \
-H 'applicationId: <applicationId>'
Responses
200OKapplication/json
{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c"
}

Identify a user (face)​

POST/identification/face Access token

Searches a group for the person in face images or a short video (1:N) and returns up to 10 candidates, ordered by score. Without groupId, the search covers the DEFAULT group, which contains every enrolled user.

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.

  • groupIdstringOptional

    Group to search in. Defaults to DEFAULT, which contains every enrolled user.

    Default: 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 identification operation.

  • progressnumberRequired

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

  • identifiedbooleanRequired

    true if a user was identified.

  • rankingobject[]Required

    Up to 10 candidates, ordered by identityVerification score (highest first).

  • detectedFaceobjectOptional

Status codes

  • 200Identification finished. Read identified and ranking.
  • 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.
  • 409The operation was not started, or its ID was already used. PROCESS_NOT_STARTED, OPERATION_ALREADY_EXISTS.
  • 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X POST 'https://{SERVER-URL}/api/v7/identification/face' \
-H 'Authorization: Bearer <AUTH_TOKEN>' \
-H 'applicationId: <applicationId>' \
-H 'transactionId: <transactionId>' \
-F 'operationId=3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c' \
-F 'groupId=DEFAULT' \
-F 'livenessMethod=1' \
-F 'samples=@selfie.mp4'
Responses
200OKapplication/json
{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c",
"progress": 100,
"identified": true,
"ranking": [
{
"userId": "user-0001",
"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…"
}
}
}

Identify a user with a template (face)​

POST/identification/face/template Access token

Searches a group for the person of a face template. 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.

  • groupIdstringOptional

    Group to search in. Defaults to DEFAULT.

    Default: DEFAULT
  • templatestring· base64Required

    Template to identify, in base64.

Response200 · application/json

  • operationIdstringRequired

    Identifier of the identification operation.

  • progressnumberRequired

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

  • identifiedbooleanRequired

    true if a user was identified.

  • rankingobject[]Required

    Up to 10 candidates, ordered by identityVerification score (highest first).

Status codes

  • 200Up to 10 candidates, ordered by score.
  • 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.
  • 409The operation was not started. PROCESS_NOT_STARTED.
  • 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X POST 'https://{SERVER-URL}/api/v7/identification/face/template' \
-H 'Authorization: Bearer <AUTH_TOKEN>' \
-H 'applicationId: <applicationId>' \
-H 'transactionId: <transactionId>' \
-F 'operationId=3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c' \
-F 'groupId=DEFAULT' \
-F 'template=CgRGQUNFEhQyMDI2…'
Responses
200OKapplication/json
{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c",
"progress": 100,
"identified": true,
"ranking": [
{
"userId": "user-0001",
"score": {
"liveness": 0.96,
"matching": 0.91,
"identityVerification": 0.93
}
}
]
}

Start a voice identification​

POST/identification/voice/start Access token

Starts a voice identification 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.

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.
  • 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X POST 'https://{SERVER-URL}/api/v7/identification/voice/start' \
-H 'Authorization: Bearer <AUTH_TOKEN>' \
-H 'applicationId: <applicationId>'
Responses
200OKapplication/json
{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c"
}

Identify a user (voice)​

POST/identification/voice Access token

Searches a group for the person in voice recordings (1:N) and returns up to 10 candidates, ordered by score. Without groupId, the search covers the DEFAULT group, which contains every enrolled user.

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.

  • groupIdstringOptional

    Group to search in. Defaults to DEFAULT, which contains every enrolled user.

    Default: 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.

  • userIdsstring[]Optional

    Users to search among, instead of a group.

Response200 · application/json

  • operationIdstringRequired

    Identifier of the identification operation.

  • progressnumberRequired

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

  • identifiedbooleanRequired

    true if a user was identified.

  • rankingobject[]Required

    Up to 10 candidates, ordered by identityVerification score (highest first).

Status codes

  • 200Identification finished. Read identified and ranking.
  • 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.
  • 409The operation was not started, or its ID was already used. PROCESS_NOT_STARTED, OPERATION_ALREADY_EXISTS.
  • 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X POST 'https://{SERVER-URL}/api/v7/identification/voice' \
-H 'Authorization: Bearer <AUTH_TOKEN>' \
-H 'applicationId: <applicationId>' \
-H 'transactionId: <transactionId>' \
-F 'operationId=3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c' \
-F 'groupId=DEFAULT' \
-F 'livenessMethod=0' \
-F 'samples=@voice.wav'
Responses
200OKapplication/json
{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c",
"progress": 100,
"identified": true,
"ranking": [
{
"userId": "user-0001",
"score": {
"liveness": 0.96,
"matching": 0.91,
"identityVerification": 0.93
}
}
]
}

Identify a user with a template (voice)​

POST/identification/voice/template Access token

Searches a group for the person of a voice template. 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.

  • groupIdstringOptional

    Group to search in. Defaults to DEFAULT.

    Default: DEFAULT
  • templatestring· base64Required

    Template to identify, in base64.

Response200 · application/json

  • operationIdstringRequired

    Identifier of the identification operation.

  • progressnumberRequired

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

  • identifiedbooleanRequired

    true if a user was identified.

  • rankingobject[]Required

    Up to 10 candidates, ordered by identityVerification score (highest first).

Status codes

  • 200Up to 10 candidates, ordered by score.
  • 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.
  • 409The operation was not started. PROCESS_NOT_STARTED.
  • 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X POST 'https://{SERVER-URL}/api/v7/identification/voice/template' \
-H 'Authorization: Bearer <AUTH_TOKEN>' \
-H 'applicationId: <applicationId>' \
-H 'transactionId: <transactionId>' \
-F 'operationId=3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c' \
-F 'groupId=DEFAULT' \
-F 'template=CgRGQUNFEhQyMDI2…'
Responses
200OKapplication/json
{
"operationId": "3f2b9c1e-7a4d-4e8b-9c21-5d6e7f8a9b0c",
"progress": 100,
"identified": true,
"ranking": [
{
"userId": "user-0001",
"score": {
"liveness": 0.96,
"matching": 0.91,
"identityVerification": 0.93
}
}
]
}