Prompt
How do I set up selfie match and liveness detection in onboarding?
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
To set up selfie match and liveness detection in onboarding, the usual flow is:
- Collect an ID document during onboarding.
- Capture a selfie from the user.
- Run liveness detection on the selfie to confirm it’s a real person.
- Compare the selfie to the ID photo for face match.
- Approve / reject / manual review based on your risk rules.
Typical onboarding flow
1) Start an onboarding session
Create a session for the user so all checks are tied together.
2) Request document capture
Ask the user to scan or upload an identity document.
3) Request selfie capture with liveness
Prompt the user to take a live selfie.
Depending on your provider, this may be:
- a single selfie with passive liveness, or
- a guided video/selfie challenge with active liveness
4) Run selfie match
Use the document photo and live selfie to generate a face similarity result.
5) Make a decision
Use the provider’s result and your own threshold rules:
- Pass if liveness passes and face match score is above threshold
- Fail if liveness fails
- Review if confidence is borderline or signals conflict
What you typically need to configure
- SDK / API keys for your identity provider
- Mobile/web camera permissions
- Onboarding session creation
- Document verification step
- Face capture step
- Liveness mode:
- passive
- active
- Match threshold
- Fallback/manual review workflow
- Webhooks or callbacks for async results
Example implementation pattern
Frontend
- Show document capture screen
- After document upload, open selfie/liveness capture
- Send results to backend
Backend
- Create verification session
- Store document and selfie references
- Call provider APIs for:
- document verification
- liveness check
- face match
- Persist final decision
Important best practices
- Get explicit user consent
- Follow privacy / biometric data laws in your region
- Don’t store biometric data longer than necessary
- Use liveness before match to reduce fraud
- Add manual review for low-confidence cases
- Tune thresholds based on false accept / false reject rates
If you’re using a provider SDK
Most vendors expose something like:
createVerificationSession()startDocumentCapture()startSelfieLiveness()getVerificationResult()
If you tell me which platform or vendor you’re using (e.g. iOS/Android/Web, Onfido, Persona, Jumio, IDnow, Veriff, etc.), I can give you the exact setup steps and sample code.