Skip to main content

Quick start

This guide covers the usual Gateway integration: your backend creates a process, the user completes capture in MobbScan Gateway, and your backend reads the result. You need curl, your API credentials and the GATEWAY-HOST provided by Mobbeel. Your tenant must be configured to use Gateway Front to receive an onboardingUrl.

How it works​

Your backendIntegratorGateway APIMobbScanGateway FrontMobbScan01 AuthenticatePOST /auth/token02 Access token03 Create onboarding processPOST /onboarding/token04 scanId + token + onboardingUrl05 Open onboardingUrl for the user06 Capture and verification07 Status notification (if configured)08 Read process resultGET /mobbscan-agent/checkVerificationProcessResult/{id}09 Verification result
01
Your backend Gateway APIAuthenticatePOST /auth/token
01 / 09
FigureGateway integration. Your backend handles credentials and results; MobbScan Gateway handles the user's capture. A webhook is optional and depends on your configuration.
Keep credentials on the server

Your API key, secret, access token and refresh token belong on your backend. Pass the onboardingUrl to the user's browser, not the API credentials or authentication tokens.

1. Authenticate​

curl 'https://{GATEWAY-HOST}/auth/token' \
--header 'Content-Type: application/json' \
--data '{ "api_key": "YOUR_API_KEY", "api_secret": "YOUR_API_SECRET" }'
Response
{
"username": "YOUR_API_KEY",
"expirationTime": 900,
"accessToken": "eyJhbGciOi...",
"refreshToken": "eyJhbGciOi..."
}

Send accessToken as Authorization: Bearer <token> in subsequent management requests. expirationTime is its lifetime in seconds. When it expires, send the returned refreshToken as a Bearer token to POST /auth/refresh:

curl 'https://{GATEWAY-HOST}/auth/refresh' \
--header 'Authorization: Bearer YOUR_REFRESH_TOKEN'

The response contains a new access token and a replacement refresh token. Store and use both returned values; each successful refresh replaces the previous refresh token. If the refresh request is rejected, authenticate again with POST /auth/token and your API key and secret. See Authentication in the API reference for the endpoint details.

2. Create the onboarding process​

curl 'https://{GATEWAY-HOST}/onboarding/token' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{ "countryId": "ESP", "docType": "IDCard", "redirectUrl": "https://example.com/complete" }'
Response (Gateway Front tenant)
{
"token": "9f1c2b7e-0a4d-4c55-8e3f-2b6d7c1a9e40",
"scanId": "123e4567-e89b-12d3-a456-426614174000",
"onboardingUrl": "https://{GATEWAY-HOST}/ui/start?onboardingToken=9f1c2b7e-0a4d-4c55-8e3f-2b6d7c1a9e40"
}

Store scanId to correlate notifications and retrieve the result. token is the process-specific onboarding token; the Gateway URL already contains it. The URL is provided for Gateway Front tenants and may use a tenant-specific host. The document fields can be omitted if the configured flow lets the user select the document.

3. Open the Gateway​

Give the user the returned onboardingUrl, either as a redirect or in an iframe. Gateway Front manages document and face capture; your backend does not call the scan or identity-verification endpoints in this integration. If you set redirectUrl, the Gateway returns the user there when the flow ends. Opening the URL or receiving a browser event does not by itself mean the verification was accepted.

4. Retrieve the result​

When the user finishes, or when your configured webhook reports a status change, check the result using the stored scanId:

curl 'https://{GATEWAY-HOST}/mobbscan-agent/checkVerificationProcessResult/123e4567-e89b-12d3-a456-426614174000' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

When the response code is OK, verificationResult is one of these public process results: PENDING, PENDING_VALIDATION (when your backend must decide), VERIFIED, NOT_VERIFIED or CANCELLED. A webhook may also send VIDEO_AVAILABLE to signal that a recording can be retrieved; it is a notification event, not a process result. For an unknown ID this endpoint can instead return HTTP 200 with code: ERROR and no result. The webhook is optional; you can also check the result using this endpoint. For extracted data and evidence URLs use Get process information. See Error responses for the other Gateway error paths.

Next steps​