Skip to main content

Web App Integration

Markdown

Your back-end creates the process with the Human Plugin API and passes the returned values to the front-end. See Create a process.

A journey is the set of steps the user goes through to complete an identity verification — facial capture, liveness, document check. Unico manages the entire experience: you create the process, direct the user to it, and read the result. Everything in between is built and maintained by Unico.

Choose your integration model​

ModelSetup timeBackend requiredBest for
Direct accessMinutesCreate Process onlyMobile apps with WebView, or web flows where the journey can happen outside the main page
Journeys SDK — Experience~1 hourCreate Process onlyWeb apps that need an integrated, seamless inline experience
Journeys SDK — Button~30 minCreate Process onlyWeb apps that want a ready-made button with zero UI code
Which one should I use?

Experience is recommended for production web apps — it gives you full control over when to show the journey and keeps the user in your page. Button is the fastest path if you just need a capture trigger. Direct access is the go-to for mobile or when the journey can open in a separate page.

The user is redirected to a Unico-hosted link, where the journey takes place. Upon completion, they are returned to the URL defined during process creation (the callbackUri parameter).

This is the simplest approach: no library, no iFrame. It works well when the journey does not need to happen inside your page. The trade-off is that taking the user outside your environment tends to increase drop-off.

What the user sees​

The user is redirected to the Unico-hosted journey, completes the selfie capture and returns to the app

How it works​

After creating a process, the API response includes the journey URL. Two ways to direct the user:

  • Standard redirect — navigate to the journey URL. On completion, Unico redirects back to your callbackUri.
  • New tab with window.open() — the journey opens in a separate tab. Monitor for the callbackUri and close the tab when done. See the MDN documentation.

In mobile apps, open the journey URL directly in a WebView. The callbackUri accepts a deeplink, so the journey completion triggers the right screen in your native app.

Do not keep DevTools open during capture tests​

The Unico application uses the Capture SDK (unico-webframe) for facial capture, which detects open DevTools as a potential fraud signal and blocks the submission. Close DevTools before running end-to-end capture tests.

Unsupported integrations

The models described in this documentation — direct access, Journeys SDK Experience, and Journeys SDK Button — are the only integration approaches officially supported by Unico. Integrations that deviate from these standards may cause unexpected behavior, security flow failures, and journey interruptions, and will not be covered by Unico support.

Examples of unsupported approaches:

  • Embedding the SDK inside a WebView in mobile applications. In these cases, the correct approach is to use the direct access model, opening the journey link directly in the WebView without involving the Journeys SDK.
  • Loading the iFrame directly via an <iframe> HTML tag, without going through the Journeys SDK. The iFrame is an internal implementation detail of the SDK and must not be instantiated manually. The correct approach is to use the Journeys SDK, which manages the iFrame lifecycle securely and within the expected standards.

If there is any doubt about whether an approach is within the supported standard, consult the documentation or contact support before proceeding with the implementation.