Onboarding processes
Create onboarding processes, read their data and status, and delete them.
Create onboarding process
/onboarding/token Access tokenCreates an onboarding process and returns its scanId and process-specific token. For Gateway Front tenants it also returns an onboardingUrl to open for the user by iframe or redirect; other integration platforms may not receive this URL.
Gateway Front: countryId and docType can be omitted when the configured flow lets the user choose the document. For a specific document, agree the values with Mobbeel. Full server-to-server capture has different prerequisites and is outside this guide.
Request bodyapplication/json
countryIdstring· ISO 3166-1 alpha-3OptionalCountry of the document (ESP, FRA, PRT, etc.).
docTypestringOptionalDocument type.
Values:IDCardPassportDrivingLicensedocSpecificTypestringOptionalSpecific document type, using MobbScan's nomenclature. Lets you set the document type directly, without sending
countryIdanddocType.redirectUrlstring· URLOptionalURL the user is redirected to after completing the process.
scanIduuidOptionalOptional identifier for the process. Prefer omitting it and using the
scanIdreturned by the API; only provide your own if Mobbeel has agreed this with you. If omitted, the system generates one.userIdstringOptionalUnique user identifier, for the enrolment in MobbID.
groupIdstringOptionalIdentifier of the MobbID group the user is added to on enrolment.
includeCuebooleanOptionalIncludes the CUE in the process. The CUE (EU Citizen Registration Certificate) is an official document issued in Spain to citizens of the EU, the EEA or Switzerland who will live in Spain for more than 90 days; it confirms their legal residence and includes their personal details and NIE (Foreigner Identification Number). Only for specific use cases: contact Mobbeel support for more information.
verificationExtraDataobjectOptionalYour own key–value data (string values) associated with the process.
Response200 · application/json
tokenuuidProcess-specific onboarding token. The Gateway URL contains it; attachment uploads use it in the
onboarding-tokenheader.scanIduuidUnique identifier of the onboarding process.
onboardingUrlstring· URLURL to open for the user when the tenant is configured for Gateway Front. The host may be tenant-specific.
Status codes
- 200The process was created. Returns its identifier and onboarding token;
onboardingUrlis present for Gateway Front tenants. - 400A supplied field is invalid (for example,
scanIdexceeds 36 characters). Gateway validation errors return a JSON body; the request body may be omitted. - 401The access token is missing, invalid or expired.
curl -X POST 'https://{GATEWAY-HOST}/onboarding/token' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"countryId": "ESP",
"docType": "IDCard",
"redirectUrl": "https://example.com/redirect",
"userId": "mobbid-example-id",
"groupId": "mobbid-example-group",
"verificationExtraData": {
"customerId": "123456789",
"email": "test@test.test"
}
}'
application/jsonThe process was created. Returns its identifier and onboarding token; onboardingUrl is present for Gateway Front tenants.
{
"token": "9f1c2b7e-0a4d-4c55-8e3f-2b6d7c1a9e40",
"scanId": "0e76e708-1dff-47d8-80fe-12b40043f86d",
"onboardingUrl": "https://{GATEWAY-HOST}/ui/start?onboardingToken=9f1c2b7e-0a4d-4c55-8e3f-2b6d7c1a9e40"
}
Get process information
/mobbscan-agent/getVerificationProcessData/{verificationId} Access tokenReturns the full data of an onboarding process: status and dates, the review decision (agent, comment, rejection reason), the data extracted from the document, the validations performed, the URLs of the evidence and any additional data.
Path parameters
verificationIduuidRequiredUnique identifier of the onboarding process (its
scanId).
Response200 · application/json
Returns the Process dataStatus codes
- 200The process data, grouped as described in Process data.
- 400The supplied
verificationIdis malformed or exceeds 36 characters. - 401HTTP
401is returned if the access token is rejected. This endpoint can also return401with a JSON body containingmessage: Bad credentials.when process data is unavailable. The response body can vary; use the HTTP status and the fields returned by your request. - 404Gateway returns HTTP 404 with its JSON error if the process is missing or has been deleted.
curl -X GET 'https://{GATEWAY-HOST}/mobbscan-agent/getVerificationProcessData/{verificationId}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
application/jsonThe process data, grouped as described in Process data.
{
"scanId": "d80a9694-3250-4a4c-9169-385fd95e06fb",
"verificationResult": "NOT_VERIFIED",
"creationTime": "2025-02-07T09:54:28",
"verificationTime": "2025-02-07T10:12:03",
"licenseId": "a7366484-303f-4218-85bb-fec743f72011",
"clientInfo": "sdk3.0.0_Web_PC_Chrome_111_Mac_10.15.7_Macintosh",
"agent": "reviewer@example.com",
"rejectionReason": "The document photo does not match the selfie.",
"comment": "The document photo does not match the selfie.",
"document": {
"name": "CARMEN",
"surname": "ESPAÑOLA ESPAÑOLA",
"documentType": "ESPIDCardV3",
"documentNumber": "BAA000431",
"dateOfExpiry": "01/01/2030"
},
"validations": {},
"images": [],
"recordings": [],
"extraImages": [],
"pdfUrl": "https://{GATEWAY-HOST}/mobbscan-agent/api/pdf/d80a9694-3250-4a4c-9169-385fd95e06fb",
"pdfChecksum": "xxxxxxxx",
"certificatedZipUrl": "https://{GATEWAY-HOST}/mobbscan-agent/api/zip/d80a9694-3250-4a4c-9169-385fd95e06fb",
"attachments": [],
"extraParameters": []
}
Check process result
/mobbscan-agent/checkVerificationProcessResult/{verificationId} Access tokenReturns the current result (pending, accepted, rejected, cancelled or pending validation). An unknown ID can return HTTP 200 with code: ERROR and no verificationResult: check code first. For the full data, use Get process information.
Path parameters
verificationIduuidRequiredUnique identifier of the onboarding process (its
scanId).
Response200 · application/json
codestringResponse code.
descriptionstringResponse description.
verificationResultstringOnly when
codeisOK:PENDING,PENDING_VALIDATION,VERIFIED,NOT_VERIFIEDorCANCELLED. These are the public process results.Values:PENDINGVERIFIEDNOT_VERIFIEDCANCELLEDPENDING_VALIDATIONcommentstringInformation about the verification. Optional; may be present only when the result is
VERIFIED.rejectionReasonstringWhy the process was not verified. Optional; may be present when the result is
NOT_VERIFIED.
Status codes
- 200The current result when
codeisOK. - 200The process was not verified.
rejectionReasonmay be included for this result. - 200An unknown process ID can produce a business error rather than HTTP 404.
- 401HTTP
401is returned if the access token is rejected. This endpoint can also return401with a JSON body containingmessage: Bad credentials.when no result is available. The response body can vary; use the HTTP status and the fields returned by your request.
curl -X GET 'https://{GATEWAY-HOST}/mobbscan-agent/checkVerificationProcessResult/{verificationId}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
application/jsonThe current result when code is OK.
{
"code": "OK",
"description": "CHECK_VERIFICATION_PROCESS_RESULT_SUCCESS",
"verificationResult": "VERIFIED",
"comment": "Agent X verified the process."
}
Delete process
/mobbscan-agent/api/verification/{verificationId} Access tokenDeletes an onboarding process.
Deletion is permanent: a deleted process cannot be recovered.
Path parameters
verificationIduuidRequiredUnique identifier of the onboarding process (its
scanId).
Status codes
- 204The process was deleted. The response has no body.
- 400
verificationIdis missing or malformed. - 401The access token is missing, invalid or expired, or it does not give access to this process.
- 403Your credentials are not allowed to delete processes.
- 404Gateway returns HTTP 404 with its JSON error if the process does not exist.
curl -X DELETE 'https://{GATEWAY-HOST}/mobbscan-agent/api/verification/{verificationId}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
The process was deleted. The response has no body.
Process data
Full data of an onboarding process, as returned by Get process information.
Process6
scanIduuidUnique identifier of the onboarding process.
verificationResultstringResult of the verification process. Same values as in Check process result.
creationTimestringCreation date of the process.
verificationTimestringVerification date of the process.
licenseIdstringLicense identifier.
clientInfostringClient information.
Decision3
agentstringAgent who reviewed the process.
rejectionReasonstringReason for the rejection, if the process was rejected.
commentstringReviewer's comment.
Document and validations2
documentobjectData extracted from the document. See the document object.
validationsobjectValidations performed.
Evidence7
imagesarray<object>Available images, each with
imageTypeandurl. Use the image type to request the image evidence.recordingsarray<object>Available recordings, each with
recordingTypeandurl.extraImagesarray<object>Additional image objects with
imageTypeandurl.pdfUrlstring· URLURL of the generated PDF report.
pdfChecksumstringChecksum of the generated PDF report.
certificatedZipUrlstring· URLURL of the certified ZIP file.
attachmentsarrayAttachments of the onboarding process.
Additional data1
extraParametersarrayAdditional process information.