Skip to main content
The Web SDK is a single script that opens the idto verification flow over your page. It renders inside a shadow root, so your page styles never reach the flow and the flow’s styles never reach your page. It works with any frontend stack, React included, because it is a plain script tag.
Verification overview screen listing the workflow steps

The flow opens with an overview of the steps in your workflow.

Before you start

You need:
  • A client_id and client_secret from the idto dashboard. The secret stays on your server.
  • A workflow_template_id: the UUID of the workflow that decides which steps run and in what order.
  • A backend route that mints a short-lived client token. See Authentication and the Node and Express recipe.

Install

Add the script tag once, on any page that opens the flow:
The script defines window.IDtoSDK with two methods, open(config) and close().

Quick start

1

Mint a client token on your server

Call POST /auth/sdk/token with your client_id and client_secret. The response carries access_token (the client token) and expires_in in seconds. Return only the token to the browser.
2

Open the flow

3

Confirm the result on your server

Browser callbacks drive your UI only. Before you grant access, confirm the session from your server with the session result recipe or a signed webhook.
PAN card capture screen

A PAN capture step inside the flow.

Environments

The token must come from the same environment the flow points at. Staging runs real checks, see Environments.

Configuration

Required

string
required
The access_token your server minted from POST /auth/sdk/token.
string
required
UUID of the workflow to run.

Session and user

Matching

Branding and display

Callbacks

function
Fires after each step finishes.
function
Fires once when every step is done.
function
Fires when a step or the session start fails.
function
Fires when the user leaves the flow from an error screen.
function
Fires when the flow closes, with no payload.
Workflow complete screen

The completion screen shown after the last step.

Methods

See it run

Was this page helpful? Email us at tech@idto.ai with the page link.
Last modified on October 4, 2026