Integration guide
In the usual Gateway integration, your backend creates the onboarding process and MobbScan Gateway Front guides the user through document and face capture. This guide builds on the Quick start.
Responsibilities
| Your system | MobbScan Gateway | |
|---|---|---|
| User journey | Open the returned onboardingUrl for the user (redirect or iframe) and handle the return to your site | Present the configured flow, capture the document and face, handle capture retries |
| Process | Authenticate, create the process and store its scanId | Run capture, document checks and biometrics |
| Decision | If configured for your own validation, accept, reject or send the process for manual review | Apply the configured rules and keep the process result |
| Evidence | Retrieve and retain the process information and evidence you need | Provide the available images, recordings, PDF and, if enabled, certified ZIP |
Set up
| Item | What to do |
|---|---|
| Credentials | Request your API key and secret from Mobbeel; store them on your backend. |
| Environment | Configure the GATEWAY-HOST for each environment. Ask Mobbeel to configure your tenant for Gateway Front so process creation returns onboardingUrl. |
| Status webhook (optional) | Share an HTTPS endpoint on your backend with Mobbeel if you want status notifications. The notification URL and subscribed states are configured for your tenant. |
| Decision rules (if applicable) | Agree with Mobbeel whether your backend should decide at PENDING_VALIDATION or a configured workflow will make the decision. |
Process lifecycle
scanId identifies the process; it is called verificationId in process queries, decisions and notifications. Once the user opens the onboardingUrl, the Gateway handles capture. The possible results returned by Check process result are PENDING, PENDING_VALIDATION, VERIFIED, NOT_VERIFIED and CANCELLED. These are the only public process results.
PENDINGVerification has not reached a final result.MobbScan GatewayverificationResult and configured webhooks). Manual review can return a process to PENDING. Hover over a result to see what it means.An acceptance or rejection may be automatic, made by your backend, or made by a human reviewer. That distinction does not change the public VERIFIED or NOT_VERIFIED result. Not every process passes through PENDING_VALIDATION: it is relevant when your backend must make a decision; sending it to manual review returns it to a pending process state.
Decision
When your integration is configured to validate a process in your backend, wait for PENDING_VALIDATION before deciding. You can also use the result endpoint to check the current state. This is not a required step for flows decided by configured rules or agents.
Accept
Reject
Send to review
Notifications
If you configure a status webhook, MobbScan sends a notification to your backend for the subscribed events. A webhook may send status: VIDEO_AVAILABLE when a recording is ready; this is not a process status and must not be used to decide the onboarding outcome. Other notifications are a signal to read the latest process result, not proof that the user has been accepted. The Gateway's browser redirect or iframe completion event is likewise distinct from the verification result. Without a webhook, use Check process result.
Evidence
| Need | Endpoint |
|---|---|
| Extracted document data, validations, scores and status | Get process information |
| Images | Get images |
| Video recordings | Get recording |
| PDF report | Get PDF report |
| Certified evidence package (if enabled) | Get certified ZIP |
Good practices for Gateway integration
- Keep API credentials and access tokens on your backend; give the user the
onboardingUrl, not your credentials. - Store the returned
scanIdto correlate your process with subsequent notifications, queries and evidence. You do not need to supply your ownscanIdto create an onboarding. - If status notifications are configured, use the webhook rather than continuous polling. Handle notifications idempotently and check the current result before acting: delivery can be retried and the notified states depend on your tenant configuration.
- Treat the Gateway's return to your site separately from the verification result. Only act on the current process status; if your flow requires a backend decision, wait for
PENDING_VALIDATION.