Capture
Upload the document and the biometric capture of a process from your own front end. These endpoints authenticate with the onboarding token.
Gateway can respond to a capture or validation failure with HTTP 200 and code: ERROR (or a nonzero numeric code for identity verification). Check the body as well as the HTTP status. See Error responses.
Authentication. Capture endpoints authenticate with the onboarding token returned by Create onboarding process, sent in the onboarding-token header. The token is a UUID (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) and is valid for that process only, so it can be handed to your front end without exposing your API credentials.
Full server-to-server order: Start scan process → Scan document → Identity verification. See the full server-to-server guide.
Start scan process
/mobbscan-agent/scan/start Onboarding tokenStarts the scan process of an onboarding process and sends the client information used to configure it.
Request bodymultipart/form-data
scanIduuidRequiredUnique identifier of the scan process, generated when the onboarding process is created.
clientVersionstringRequiredIdentifier/version of your own client making the request (required by the gateway). Used for logs and troubleshooting; this is not the version of Gateway Front.
Response200 · application/json
codestringResult of starting the scan process.
Values:OKERRORdescriptionstringDetailed result of starting the scan process.
Values:START_SCAN_SUCCESSERROR_START_SCAN_FAILEDscanIduuidUnique identifier of the scan process, generated when the onboarding process is created.
Status codes
- 200Gateway returns HTTP 200 with this JSON body when the request is processed. Check
code: a finished process or a failed scan start can produceERRORinstead ofOK. - 400A required parameter is absent (such as
clientVersion) or a supplied parameter is malformed. An unknownscanIdcan fail elsewhere in the flow. - 401The onboarding token is incorrect or has expired.
- 500Unexpected error on the server while processing the request.
curl -X POST 'https://{GATEWAY-HOST}/mobbscan-agent/scan/start' \
-H 'onboarding-token: <ONBOARDING_TOKEN>' \
-F 'scanId=41191176-cc2b-433f-9950-685bad58fbbc' \
-F 'clientVersion=integrator-web/1.0.0'
application/jsonGateway returns HTTP 200 with this JSON body when the request is processed. Check code: a finished process or a failed scan start can produce ERROR instead of OK.
{
"code": "OK",
"description": "START_SCAN_SUCCESS",
"scanId": "41191176-cc2b-433f-9950-685bad58fbbc"
}
Scan document
/mobbscan-agent/scan Onboarding tokenScans a document and returns the extracted data and validations. This combined endpoint requires back; front is optional, for example when submitting a passport data page as back. Send both sides for two-sided documents.
Request bodymultipart/form-data
scanIduuidRequiredUnique identifier of the scan process, generated when the onboarding process is created.
frontfile· PNG or JPEGOptionalFront side of the document.
backfile· PNG or JPEGRequiredBack side of the document.
isDocumentCroppedbooleanOptionalSet to
trueif the images are already cropped to the document. Recommended: leave itfalseand let the MobbScan server crop the document automatically.Default:false
Response200 · application/json
codestringResult of the scan.
Values:OKERRORdescriptionstringDetailed result of the scan.
Values:SCAN_DOCUMENT_SUCCESSERROR_SCAN_DOCUMENT_FAILEDscanIduuidUnique identifier of the scan process, generated when the onboarding process is created.
documentobjectScanned document data. See The document object.
clientVersionstringClient version sent when the scan process was started.
scanProcessValidationResultobjectResult of the validation matrix. See Validation matrix result.
Status codes
- 200Gateway can return HTTP 200 with extracted data or with
code: ERRORanddescription; do not treat the scan as successful without checkingcode. - 400A required field is missing or has an invalid format, for example an image that is not PNG or JPEG.
- 401The onboarding token is incorrect or has expired.
- 500Unexpected error on the server while processing the request.
curl -X POST 'https://{GATEWAY-HOST}/mobbscan-agent/scan' \
-H 'onboarding-token: <ONBOARDING_TOKEN>' \
-F 'scanId=41191176-cc2b-433f-9950-685bad58fbbc' \
-F 'front=@front.jpg' \
-F 'back=@back.jpg'
application/jsonGateway can return HTTP 200 with extracted data or with code: ERROR and description; do not treat the scan as successful without checking code.
{
"code": "OK",
"description": "SCAN_DOCUMENT_SUCCESS",
"scanId": "41191176-cc2b-433f-9950-685bad58fbbc",
"document": {
"name": "CARMEN",
"surname": "ESPAÑOLA ESPAÑOLA",
"firstSurname": "ESPAÑOLA",
"secondSurname": "ESPAÑOLA",
"gender": "F",
"dateOfBirth": "01/01/1980",
"nationality": "ESP",
"personalNumber": "99999999R",
"parents": "JUAN / CARMEN",
"address": "AVDA DE MADRID S-N",
"city": "MADRID",
"region": "MADRID",
"cityOfBirth": "MADRID",
"regionOfBirth": "MADRID",
"countryOfBirth": "ESPAÑA",
"documentType": "ESPIDCardV3",
"documentNumber": "BAA000431",
"issuingState": "ESP",
"dateOfIssuing": null,
"dateOfExpiry": "01/01/2025",
"mrz": "IDESPBAA000431599999999R<<<<<<8001010F2501018ESP<<<<<<<<<<<6ESPANOLA<ESPANOLA<<CARMEN<<<<<",
"laserMark": null,
"mrzData": {
"dateOfExpiry": "01/01/2025",
"gender": "F",
"nationality": "ESP",
"surname": "ESPANOLA ESPANOLA",
"documentNumber": "BAA000431",
"name": "CARMEN",
"dateOfBirth": "01/01/1980",
"personalNumber": "99999999R"
},
"vizData": {
"dateOfExpiry": "01/01/2025",
"gender": "F",
"nationality": "ESP",
"surname": "ESPAÑOLA ESPAÑOLA",
"documentNumber": "BAA000431",
"name": "CARMEN",
"dateOfBirth": "01/01/1980",
"personalNumber": "99999999R"
},
"validationBothSidesMatch": "VALID",
"validationBothSidesMatchScore": "100",
"validationMRZ": "NOT_VALID",
"validationMRZCheckDocumentNumber": "VALID",
"validationMRZCheckPersonalNumber": "VALID",
"validationMRZCheckDateOfBirth": "NOT_VALID",
"validationMRZCheckDateOfExpiry": "NOT_VALID",
"validationMRZCheckComposite": "VALID",
"validationDocumentNumber": "VALID",
"validationPersonalNumber": "VALID",
"validationMRZNameSurnameSeparator": "VALID",
"validationMRZSurnameSeparator": "VALID",
"validationSex": "VALID",
"validationGender": "VALID",
"validationNationality": "VALID",
"validationDateOfBirth": "VALID",
"validationDateOfExpiry": "VALID",
"validationDocumentNotExpired": "NOT_VALID",
"validationLegalAge": "VALID",
"validationAllowedIssuingState": "NOT_CHECKED",
"validationIssuingState": "VALID",
"validationDateOfIssuing": "NOT_CHECKED",
"validationDatesRelationship": "VALID",
"validationNameBothSidesMatch": "VALID",
"validationSurnameBothSidesMatch": "VALID",
"validationPersonalNumberBothSidesMatch": "VALID",
"validationDocumentNumberBothSidesMatch": "VALID",
"validationDateOfBirthBothSidesMatch": "VALID",
"validationDateOfExpiryBothSidesMatch": "VALID",
"validationSexBothSidesMatch": "VALID",
"validationGenderBothSidesMatch": "VALID",
"validationNationalityBothSidesMatch": "VALID",
"validationPersonalNumberFormat": "VALID",
"validationDocumentNumberFormat": "VALID",
"validationNameNotEmpty": "VALID",
"validationSurnameNotEmpty": "VALID",
"validationNameBothSidesMatchScore": "100",
"validationSurnameBothSidesMatchScore": "100",
"validationFrontAppearance": "NOT_VALID",
"validationFrontAppearanceScore": 0,
"validationBackAppearance": "VALID",
"validationBackAppearanceScore": 100,
"validationFrontNotPhotocopy": "VALID",
"validationFrontPhotocopyScore": 0,
"validationBackNotPhotocopy": "VALID",
"validationBackPhotocopyScore": 0,
"validationDocumentForensics": "NOT_CHECKED",
"validationNotSpecimen": "NOT_VALID",
"validationLaserMark": "NOT_CHECKED",
"validationFaceLaserMarkScore": -1,
"validationFacialMatchingScore": -1,
"validationDocument": "NOT_VALID",
"validationDocumentContent": "NOT_VALID"
},
"clientVersion": "sdk3.0.0_Web_PC_Chrome_111_Mac_10.15.7_Macintosh",
"scanProcessValidationResult": {
"enabledProcess": true,
"scanProcessValidationResult": "NOT_VALID",
"scanProcessFailedValidations": [
"validationDocumentNotSpecimen",
"validationMRZ",
"validationDocumentNotExpired"
]
}
}
Identity verification
/mobbscan-agent/identityVerification Onboarding tokenPerforms the tenant-configured liveness check on a user video and compares the face against the scanned document. In a full server-to-server video flow, send the video after document scanning succeeds.
As with Scan document, a validation matrix can decide whether the identity verification is valid. Contact the MobbScan support team to analyse your use case and configure the matrix with the most suitable validations.
Query parameters
scanIduuidRequiredUnique identifier of the scan process, generated when the onboarding process is created.
livenessMethodintegerOptionalChoose the method configured for your tenant. The gateway defaults to
0if omitted; specify a value explicitly for this integration:-1no liveness,0head movement,1passive liveness,2passive plus random movement.Values:102-1returnFaceImagesbooleanOptionalSet to
trueto receive the face images (faceDocumentandfaceSelfie) in the response.
Request bodymultipart/form-data
videofile· MP4RequiredVideo of the user performing the liveness check.
Response200 · application/json
codeintegerResult of the identity verification:
0if it succeeded, a negative value indicating the error otherwise.descriptionstringDescription of the result.
timestampstring· yyyy-MM-dd HH:mm:ss.SSSTime of the identity verification.
scanIduuidUnique identifier of the scan process, generated when the onboarding process is created.
scoresobjectScores between 0 and 1. The threshold of each one can be configured depending on the use case.
validationsobjectValidation result of each check.
faceDocumentstring· Base64Face extracted from the document, as a Base64-encoded image. Empty unless
returnFaceImagesistrue.faceSelfiestring· Base64Face extracted from the selfie video, as a Base64-encoded image. Empty unless
returnFaceImagesistrue.resultScanProcessValidationobjectResult of the validation matrix. See Validation matrix result.
mobbIdRegistrationobjectResult of the MobbID registration, when it is enabled.
Status codes
- 200Gateway can return HTTP 200 with a nonzero numeric
codefor a failed biometric or validation check; examinecode, the validations and the final process result.
curl -X POST 'https://{GATEWAY-HOST}/mobbscan-agent/identityVerification?scanId=<scanId>' \
-H 'onboarding-token: <ONBOARDING_TOKEN>' \
-F 'video=@video.mp4'
application/jsonGateway can return HTTP 200 with a nonzero numeric code for a failed biometric or validation check; examine code, the validations and the final process result.
{
"code": 0,
"description": "Identity verification transaction finished successfully",
"timestamp": "2025-09-16 16:13:15.063",
"scanId": "22fc6001-ed8f-471f-a013-3ad1254852f0",
"scores": {
"liveness": 1,
"faceMatching": 0.77,
"identityVerification": 0.89
},
"validations": {
"liveness": "VALID",
"faceMatching": "VALID",
"identityVerification": "VALID"
},
"faceDocument": "/9j/4AA...",
"faceSelfie": "/9j/4AAQ...",
"resultScanProcessValidation": {
"enabledProcess": true,
"scanProcessValidationResult": "VALID",
"scanProcessFailedValidations": []
},
"mobbIdRegistration": {
"result": "DISABLED_MOBB_ID_REGISTRATION",
"completed": false
}
}
The document object
Data extracted from the document and the result of every document validation, grouped by purpose. Every validation* field returns VALID, NOT_VALID or NOT_CHECKED. *Score fields return a score: a number, except validationBothSidesMatchScore, validationNameBothSidesMatchScore and validationSurnameBothSidesMatchScore, which are returned as strings (for example "100").
Holder data17
namestringName of the document holder.
surnamestringFull surname of the document holder.
firstSurnamestringFirst surname of the document holder.
secondSurnamestringSecond surname of the document holder.
genderstringGender of the document holder.
Values:MFdateOfBirthstringDate of birth of the document holder.
nationalitystringNationality of the document holder.
personalNumberstringPersonal number of the document holder.
parentsstringParents of the document holder.
addressstringAddress of the document holder.
citystringCity of the document holder.
regionstringRegion of the document holder.
cityOfBirthstringCity of birth of the document holder.
regionOfBirthstringRegion of birth of the document holder.
stateOfBirthNamestringName of the state of birth.
stateOfBirthIsoCodestringISO code of the state of birth.
countryOfBirthstringCountry of birth of the document holder.
Document data9
documentTypestringSpecific type of the document.
documentNumberstringDocument number.
issuingStatestringIssuing state of the document.
dateOfIssuingstringDate of issue of the document.
dateOfExpirystringDate of expiry of the document.
mrzstringMachine-readable zone (MRZ) of the document.
laserMarkstringLaser mark of the document.
nullif the document has no laser mark.mrzDataobjectData read from the MRZ. See MRZ and VIZ data.
vizDataobjectData read from the printed visual zone (VIZ). See MRZ and VIZ data.
Content validations38
validationBothSidesMatchstringWhether the data on both sides of the document match.
validationBothSidesMatchScorestringScore of the both-sides match validation.
validationMRZstringValidation of the MRZ.
validationMRZCheckDocumentNumberstringCheck of the document number in the MRZ.
validationMRZCheckPersonalNumberstringCheck of the personal number in the MRZ.
validationMRZCheckDateOfBirthstringCheck of the date of birth in the MRZ.
validationMRZCheckDateOfExpirystringCheck of the date of expiry in the MRZ.
validationMRZCheckCompositestringComposite check of the MRZ.
validationDocumentNumberstringValidation of the document number.
validationPersonalNumberstringValidation of the personal number.
validationMRZNameSurnameSeparatorstringValidation of the separator between name and surname in the MRZ.
validationMRZSurnameSeparatorstringValidation of the separator between surnames in the MRZ.
validationSexstringValidation of the holder's sex.
validationGenderstringValidation of the holder's gender.
validationNationalitystringValidation of the nationality.
validationDateOfBirthstringValidation of the holder's date of birth.
validationDateOfExpirystringValidation of the document's date of expiry.
validationDocumentNotExpiredstringWhether the document is not expired.
validationLegalAgestringWhether the holder is of legal age.
validationAllowedIssuingStatestringWhether the issuing state is allowed.
validationIssuingStatestringValidation of the issuing state.
validationDateOfIssuingstringValidation of the date of issue.
validationDatesRelationshipstringWhether the dates of the document are consistent with each other.
validationNameBothSidesMatchstringWhether the name matches on both sides of the document.
validationSurnameBothSidesMatchstringWhether the surname matches on both sides of the document.
validationPersonalNumberBothSidesMatchstringWhether the personal number matches on both sides of the document.
validationDocumentNumberBothSidesMatchstringWhether the document number matches on both sides of the document.
validationDateOfBirthBothSidesMatchstringWhether the date of birth matches on both sides of the document.
validationDateOfExpiryBothSidesMatchstringWhether the date of expiry matches on both sides of the document.
validationSexBothSidesMatchstringWhether the sex matches on both sides of the document.
validationGenderBothSidesMatchstringWhether the gender matches on both sides of the document.
validationNationalityBothSidesMatchstringWhether the nationality matches on both sides of the document.
validationPersonalNumberFormatstringValidation of the personal number format.
validationDocumentNumberFormatstringValidation of the document number format.
validationNameNotEmptystringWhether the name is not empty.
validationSurnameNotEmptystringWhether the surname is not empty.
validationNameBothSidesMatchScorestringScore of the name match between both sides.
validationSurnameBothSidesMatchScorestringScore of the surname match between both sides, from 0 to 100.
Appearance validations12
validationFrontAppearancestringValidation of the appearance of the front side.
validationFrontAppearanceScorenumberScore of the front appearance validation.
validationBackAppearancestringValidation of the appearance of the back side.
validationBackAppearanceScorenumberScore of the back appearance validation.
validationFrontNotPhotocopystringWhether the front side is not a photocopy.
validationFrontPhotocopyScorenumberPhotocopy score of the front side.
0if the document is not a photocopy.validationBackNotPhotocopystringWhether the back side is not a photocopy.
validationBackPhotocopyScorenumberPhotocopy score of the back side.
0if the document is not a photocopy.validationDocumentForensicsstringResult of the forensic analysis of the document.
validationNotSpecimenstringWhether the document is not a specimen.
validationLaserMarkstringValidation of the laser mark of the document.
validationFaceLaserMarkScorenumberScore of the face laser mark validation.
-1if there is no face laser mark.
Biometrics3
validationFacialMatchingScorenumberFacial matching score.
-1if facial matching was not performed.facialMatchingScorestringFacial matching score.
facialLivenessScorestringFacial liveness score.
Overall result2
validationDocumentstringOverall validation result of the document.
validationDocumentContentstringOverall validation result of the document content.
MRZ and VIZ data
mrzData and vizData contain the same fields, read respectively from the machine-readable zone and from the printed visual zone. Comparing them is the basis of the VIZ–MRZ coherence checks.
dateOfExpirystringDate of expiry of the document.
genderstringGender of the document holder.
Values:MFnationalitystringNationality of the document holder.
surnamestringFull surname of the document holder.
documentNumberstringDocument number.
namestringName of the document holder.
dateOfBirthstringDate of birth of the document holder.
personalNumberstringPersonal number of the document holder.
Validation matrix result
Mobbeel can configure a validation matrix for your use case. When enabled, scanProcessValidationResult indicates whether the document passed and scanProcessFailedValidations lists failed checks. Retrieve the process data and validations with Get process information; the available fields depend on the configured flow.
enabledProcessbooleanWhether the validation matrix is enabled for the scan process. If it is, check
scanProcessValidationResultto get the result.scanProcessValidationResultstringResult of the validation matrix for the scan process.
Values:VALIDNOT_VALIDNOT_CHECKEDscanProcessFailedValidationsarray<string>Names of the validations that failed. Contains the failed validations when the result is
NOT_VALID; empty when it isVALID.