1. Install
2. Initialize the client
Create one client and reuse it across requests. The API key is read from an environment variable — never hardcode it.3. Create a verification session
The fastest path to a verified identity — create a hosted session and send the user to the returned URL:client.sessions.retrieve(session.id). See the Session Verification guide for the full flow.
Prefer to build your own flow?
If you handle the applicant UI yourself, call the primitives directly.Scan a document
Compare two faces
Full identity verification
Document scan + face detection + face comparison in a single call:Next steps
Authentication
API key setup and security best practices.
Configuration
Timeouts, retries, base URL, and custom fetch.
Server-to-Server
Build a custom verification pipeline.
Error Handling
Typed errors, the decision tree, and retry semantics.