For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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_key is then used to sign each request, adding a second check on top of the company_key.

  • IP whitelisting: Restrict a company_key to 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_token is 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": true for the liveness step.

To ensure compatibility between the old and new methods, both of which need to work together, you should use the 'skip_face' and 'skip_document' flags when using steps.

These flags prevent the 'identity-document' and 'liveness' steps from being duplicated if they already exist in the flow.

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_id parameter. 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.

📘 For detailed parameter definitions and examples, refer to the API Reference.

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-change event 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 call result/ 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_url specified in the configuration or session flags, with the session_token appended 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.


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?