How to Test
iDenfy uses the same API URL for sandbox and production. Your API key determines which mode youβre in.Get sandbox API keys
Your sandbox keys are in Dashboard β Settings β API Keys.
Set up a webhook receiver
Run a dummy verification
Use the Sample Verification feature in your Dashboard to generate mock results with predefined outcomes β no real documents needed.
Simulating Different Outcomes
Use Dummy Results to trigger specific verification statuses:| Outcome | What to test in your app |
|---|---|
| APPROVED | Happy path β user gets access |
| DENIED | Show rejection message, offer retry |
| SUSPECTED | Check fraudTags / mismatchTags, make a decision |
| EXPIRED | Token timed out β prompt re-verification |
Go-Live Checklist
Before switching to production keys:- Webhooks β all statuses handled (
APPROVED,DENIED,SUSPECTED,EXPIRED) - Error handling β graceful responses for 400, 401, 403, 429, 500
- Token expiry β tested what happens when user returns after session expires
- Callback signing β HMAC verification implemented
- IP whitelisting β iDenfy IPs whitelisted on your webhook endpoint
- Data storage β
scanRefstored in your database for each verification - Production webhook URL β configured in Dashboard
- Production API keys β generated and stored securely (env vars, not code)