Developer guide
The Developer Guide provides comprehensive instructions and best practices for integrating with our platform.
Identomat is a service designed to verify human identity and liveness over the Internet. This guide assumes that the integrating organization (hereafter referred to as "the company") operates a web server (referred to as "the company server") at example.com .
Prerequisites
Before integrating, the company needs a company_key: the credential used for secure communication between the company server and the Identomat server (widget.identomat.com). Generate one in Manage under Developers → API keys. See API access.
Optional security features, set when the key is generated or at any time after:
HMAC signing: Generate the key with Generate key with HMAC. A
secret_keyis then used to sign each request, adding a second check on top of thecompany_key.IP whitelisting: Restrict a
company_keyto a set of IP addresses. Requests with that key from any other IP are rejected. An empty list allows any IP. You can edit the list at any time in Developers → API keys.
To receive session results and other events on your server, you’ll also need a webhook. Set it up in Developers → Webhooks. See [Webhooks].
Procedure
The integration procedure consists of three main steps:
Acquiring a session token
To acquire a session_token, your backend must send a request to the /begin/ endpoint with the following parameters:
company_key– Your unique company identifier.flags– A JSON object defining global settings for the verification session.steps– An array specifying the steps to include in the verification flow. Each step can have its own step-specific flags.
⚠️ The
session_tokenis valid for 15 minutes by default.
Endpoint:
Requests can be sent as:
URL query parameters
URL-encoded form data
JSON object in the request body (recommended)
Steps and Flags Structure
flags: Defines global behavior for the entire session.steps: Allows full control of the verification process, enabling you to specify which steps to include (e.g.,liveness,identity-document) and configure step-specific flags, such as"allow_face_upload": truefor thelivenessstep.
Using Configuration or custom steps
You can initiate a session in two ways:
Via predefined configuration (Recommended):
We strongly recommend using predefined configurations via the
config_idparameter. Configurations ensure consistency, simplify integration, and reduce the risk of errors. Using configurations also allows us to deprecate legacy custom step handling in the future, helping clients maintain a clean and stable integration.
Via custom steps and flags: Only use custom steps and flags if you have very specific needs that cannot be satisfied with configurations. Over time, we encourage migrating all custom flows to configurations.
Redirecting to the Identomat Widget
To start a verification session, the company server must redirect the user’s browser to:
Replace {session_token_here} with the actual token received from the /begin/ endpoint.
Embedding in an Iframe
Alternatively, the widget can be embedded within an iframe:
Checking for a result
Once the verification process is completed, there are two things to handle: getting the user back into your app, and getting the decision to your server.
On your server (recommended): Subscribe a webhook to the
session-changeevent in Developers → Webhooks. Identomat sends a POST request to your endpoint when the session is approved, rejected, sent to manual check or returned to the applicant. Then callresult/for the full session data. See Webhooks.If redirected: If you used a redirect approach (not embedded in an iframe), the user will be redirected to the
return_urlspecified in the configuration or session flags, with thesession_tokenappended as a query parameter.
If embedded in an iframe, the process completion can be detected using JavaScript:
The redirect and the DONE message only tell you the user has finished the flow, not what the decision was. A session can still go to manual review after the user leaves. Always take the decision from the session-change webhook or the result/ endpoint.
Quick links
Access detailed developer guides for KYC (Know Your Customer) and KYB (Know Your Business) flows. Click a card below to explore configuration, integration steps, and best practices for each verification type.
Last updated
Was this helpful?