Skip to main content

API reference

The MobbScan Gateway API lets your backend create an onboarding process, open it in Gateway Front, check its result, make a decision when configured and retrieve its evidence. Start with the Quick start and the Integration guide.

Endpoints​

Base URL​

https://{GATEWAY-HOST}

All paths are relative to the base URL of your environment ({GATEWAY-HOST} is provided by Mobbeel). Unless stated otherwise, request and response bodies are JSON (Content-Type: application/json). Add attachment uses multipart/form-data; the evidence endpoints return data or files in the requested format.

Authentication​

Management authentication uses two JWTs: the access token and refresh token. Authentication returns both. Send the access token as Authorization: Bearer <ACCESS_TOKEN> for management requests. When it expires, send the refresh token as Authorization: Bearer <REFRESH_TOKEN> to POST /auth/refresh; this returns a replacement pair, so use the new refresh token for the next renewal. If the refresh request is rejected, call POST /auth/token again with your API key and secret. Create onboarding process separately returns a process-specific onboarding token named token. For Gateway Front tenants, the returned onboardingUrl already contains this token; give the user the URL, never your API credentials. Uploading attachments is a special case: it requires the onboarding-token header rather than either authentication token.

POST/auth/token No authentication

Exchanges your API key and secret for a JWT access token. Send it as Authorization: Bearer <ACCESS_TOKEN> in every management request; requests without a valid token return 401 Unauthorized. Tokens expire after 15 minutes by default; the expiration time can be configured for your organisation.

Keep credentials on the server. The API key and secret must never reach a mobile app or a web page: call this endpoint from your backend only.

Request bodyapplication/json

  • api_keystringRequired

    Your API key, provided by Mobbeel.

  • api_secretstringRequired

    Your API secret, provided by Mobbeel.

Response200 · application/json

  • usernamestring

    Identifier of the authenticated client.

  • accessTokenstring· JWT

    JWT access token. Send it as Authorization: Bearer <accessToken> in the management endpoints.

  • refreshTokenstring· JWT

    JWT used to obtain a new access token at POST /auth/refresh. Send it in the Authorization: Bearer <REFRESH_TOKEN> header. Each successful refresh returns a replacement refresh token; use the new one for the next refresh.

  • expirationTimeinteger· seconds

    Lifetime of the access token, in seconds (900 = 15 minutes, the default).

Status codes

  • 200The credentials are valid. Returns the client identifier, access token, refresh token and access-token lifetime.
  • 400api_key or api_secret is missing or malformed.
  • 401The API key or secret is incorrect.
  • 403The client does not have permission to obtain an access token. If the issue persists, contact support to review the permissions.
curl -X POST 'https://{GATEWAY-HOST}/auth/token' \
-H 'Content-Type: application/json' \
-d '{
"api_key": "YOUR_API_KEY",
"api_secret": "YOUR_API_SECRET"
}'
Responses
200OKapplication/json

The credentials are valid. Returns the client identifier, access token, refresh token and access-token lifetime.

{
"username": "YOUR_API_KEY",
"expirationTime": 900,
"accessToken": "eyJhbGciOi...",
"refreshToken": "eyJhbGciOi..."
}
POST/auth/refresh Refresh token

Renews authentication using the current refresh token. Send it as a Bearer token in the Authorization header. A successful response contains a new access token and a replacement refresh token; store and use both returned values.

Response200 · application/json

  • usernamestring

    Identifier of the authenticated client.

  • expirationTimeinteger· seconds

    Lifetime of the new access token, in seconds.

  • accessTokenstring· JWT

    New JWT access token. Use it for management endpoints.

  • refreshTokenstring· JWT

    Replacement JWT refresh token. Use this value for the next refresh request.

Status codes

  • 200Authentication was renewed. Returns the client identifier and the new access and refresh tokens.
  • 401The refresh token is missing or invalid, is no longer the current token, or the session can no longer be renewed. Authenticate again with POST /auth/token and your API key and secret.
curl -X POST 'https://{GATEWAY-HOST}/auth/refresh' \
-H 'Authorization: Bearer <REFRESH_TOKEN>'
Responses
200OKapplication/json

Authentication was renewed. Returns the client identifier and the new access and refresh tokens.

{
"username": "YOUR_API_KEY",
"expirationTime": 900,
"accessToken": "eyJhbGciOi...",
"refreshToken": "eyJhbGciOi..."
}

Status codes​

  • 200OK

    The HTTP request completed, but some operations report business failures in a JSON code: ERROR (or a nonzero numeric code) even with HTTP 200. Check the endpoint response before treating it as success. See Error responses.

  • 204No Content

    The request was completed successfully and there is no body, for example after deleting an attachment.

  • 400Bad Request

    Gateway returns HTTP 400 with its JSON timestamp, status, error, message, path shape for a rejected request. Some operations instead return HTTP 200 with code: ERROR in the body. See Error responses.

    Check that all required parameters are included, correctly formatted and within the platform limits.

  • 401Unauthorized

    Gateway returns HTTP 401 if credentials or an access token are rejected. The response body can vary by endpoint; use the HTTP status to identify the authentication failure. See Error responses.

    If the access token expired, renew it with POST /auth/refresh and the current refresh token. If that request is rejected, call POST /auth/token with your API key and secret. For attachment uploads, check that you send the onboarding token for that same process.

  • 403Forbidden

    The user or client is authenticated but does not have permission to perform the action.

    Make sure your credentials have the necessary permissions. If the issue persists, contact support to review them.

  • 404Not Found

    A requested resource was not found. Some lookups, notably Check process result, can instead return HTTP 200 with code: ERROR for an unknown process.

    Check the process identifier (and the file name) and that the process exists.

  • 409Conflict

    The onboarding process is not in a valid state for the action, for example because it has already been accepted or rejected.

    Check the current status of the process with Check process result before deciding on it.

  • 405
    Method Not Allowed

    The endpoint does not support that HTTP method; Gateway returns its JSON error body.

    Check the HTTP method in the endpoint reference.

  • 413Payload Too Large

    A Gateway JSON body exceeds its configured limit; the error field is PAYLOAD_TOO_LARGE. Multipart/file limits can behave differently.

    Reduce the JSON body and check the limit for that operation.

  • 500Internal Server Error

    Gateway can return HTTP 500 with a generic JSON error after an unhandled failure. Do not infer the response status from the service that caused the failure.

    For operations with side effects, check the process state before retrying. If the error persists, contact Mobbeel support.

For the final Gateway response format and operations that return HTTP 200 with a business error, see Error responses.

Advanced integrations​

Need to handle document and video capture in your own application? See the full server-to-server integration guide for the capture sequence and the separate onboarding and access tokens.