Skip to main content
The SDK onWorkflowComplete callback runs in the user’s browser, so confirm the outcome from your server before you act on it. The session token is the session_token your app passes to the SDK, which the callbacks also return. Session state is read with an SDK token, not with the API key headers, so the server mints one first.
1

Set your credentials

Use https://dev.idto.ai (staging) while you build and https://prod.idto.ai (production) when you go live. Keep the client ID and API key on your server only. Never ship them to a browser or a mobile app.
.env
2

Mint an SDK token and read the state

3

Read the steps

A known session returns 200 with a steps list. Each step has step_index, module_slug, status, version and retry_count. State carries step statuses only. Fetch the verification details through your normal result flow.A session token that has no session returns 404, and the function returns None:
404

Good to know

  • 401 means the SDK token is missing or expired. Mint a new one, it lasts 900 seconds.
  • 403 means this SDK token may not read that session.
Was this page helpful? Email us at tech@idto.ai with the page link.
Last modified on October 4, 2026