Skip to main content

Onboarding processes

Create onboarding process​

POST/onboarding/token Access token

Creates 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-3Optional

    Country of the document (ESP, FRA, PRT, etc.).

  • docTypestringOptional

    Document type.

    Values: IDCardPassportDrivingLicense
  • docSpecificTypestringOptional

    Specific document type, using MobbScan's nomenclature. Lets you set the document type directly, without sending countryId and docType.

  • redirectUrlstring· URLOptional

    URL the user is redirected to after completing the process.

  • scanIduuidOptional

    Optional identifier for the process. Prefer omitting it and using the scanId returned by the API; only provide your own if Mobbeel has agreed this with you. If omitted, the system generates one.

  • userIdstringOptional

    Unique user identifier, for the enrolment in MobbID.

  • groupIdstringOptional

    Identifier of the MobbID group the user is added to on enrolment.

  • includeCuebooleanOptional

    Includes 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.

  • verificationExtraDataobjectOptional

    Your own key–value data (string values) associated with the process.

Response200 · application/json

  • tokenuuid

    Process-specific onboarding token. The Gateway URL contains it; attachment uploads use it in the onboarding-token header.

  • scanIduuid

    Unique identifier of the onboarding process.

  • onboardingUrlstring· URL

    URL 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; onboardingUrl is present for Gateway Front tenants.
  • 400A supplied field is invalid (for example, scanId exceeds 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"
}
}'
Responses
200OKapplication/json

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

GET/mobbscan-agent/getVerificationProcessData/{verificationId} Access token

Returns 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

  • verificationIduuidRequired

    Unique identifier of the onboarding process (its scanId).

Response200 · application/json

Returns the Process data

Status codes

  • 200The process data, grouped as described in Process data.
  • 400The supplied verificationId is malformed or exceeds 36 characters.
  • 401HTTP 401 is returned if the access token is rejected. This endpoint can also return 401 with a JSON body containing message: 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>'
Responses
200OKapplication/json

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

GET/mobbscan-agent/checkVerificationProcessResult/{verificationId} Access token

Returns 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

  • verificationIduuidRequired

    Unique identifier of the onboarding process (its scanId).

Response200 · application/json

  • codestring

    Response code.

  • descriptionstring

    Response description.

  • verificationResultstring

    Only when code is OK: PENDING, PENDING_VALIDATION, VERIFIED, NOT_VERIFIED or CANCELLED. These are the public process results.

    Values: PENDINGVERIFIEDNOT_VERIFIEDCANCELLEDPENDING_VALIDATION
  • commentstring

    Information about the verification. Optional; may be present only when the result is VERIFIED.

  • rejectionReasonstring

    Why the process was not verified. Optional; may be present when the result is NOT_VERIFIED.

Status codes

  • 200The current result when code is OK.
  • 200The process was not verified. rejectionReason may be included for this result.
  • 200An unknown process ID can produce a business error rather than HTTP 404.
  • 401HTTP 401 is returned if the access token is rejected. This endpoint can also return 401 with a JSON body containing message: 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>'
Responses
200OKcode: OKapplication/json

The current result when code is OK.

{
"code": "OK",
"description": "CHECK_VERIFICATION_PROCESS_RESULT_SUCCESS",
"verificationResult": "VERIFIED",
"comment": "Agent X verified the process."
}

Delete process​

DELETE/mobbscan-agent/api/verification/{verificationId} Access token

Deletes an onboarding process.

Deletion is permanent: a deleted process cannot be recovered.

Path parameters

  • verificationIduuidRequired

    Unique identifier of the onboarding process (its scanId).

Status codes

  • 204The process was deleted. The response has no body.
  • 400verificationId is 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>'
Responses
204No Content

The process was deleted. The response has no body.

Process data​

Full data of an onboarding process, as returned by Get process information.

Process6

  • scanIduuid

    Unique identifier of the onboarding process.

  • verificationResultstring

    Result of the verification process. Same values as in Check process result.

  • creationTimestring

    Creation date of the process.

  • verificationTimestring

    Verification date of the process.

  • licenseIdstring

    License identifier.

  • clientInfostring

    Client information.

Decision3

  • agentstring

    Agent who reviewed the process.

  • rejectionReasonstring

    Reason for the rejection, if the process was rejected.

  • commentstring

    Reviewer's comment.

Document and validations2

  • documentobject

    Data extracted from the document. See the document object.

  • validationsobject

    Validations performed.

Evidence7

  • imagesarray<object>

    Available images, each with imageType and url. Use the image type to request the image evidence.

  • recordingsarray<object>

    Available recordings, each with recordingType and url.

  • extraImagesarray<object>

    Additional image objects with imageType and url.

  • pdfUrlstring· URL

    URL of the generated PDF report.

  • pdfChecksumstring

    Checksum of the generated PDF report.

  • certificatedZipUrlstring· URL

    URL of the certified ZIP file.

  • attachmentsarray

    Attachments of the onboarding process.

Additional data1

  • extraParametersarray

    Additional process information.