How to Test Every KYC Outcome in Didit's Sandbox
Use a sandbox application with a sandbox API key and pass a scenario slug from the authenticated catalog on POST /v3/session/.

Contents
In this guide
Jump to the part you need.
This guide is for developers and compliance engineers who must prove their integration handles every Didit outcome: Approved, Declined and In Review. You reproduce each one with a sandbox_scenario slug on a sandbox application. Sandbox testing is free, with a quota of 500 test-session creates per 24 hours; Enterprise can raise the quota on request, and no third party is ever called. The main caveat: live applications reject sandbox_scenario with a 400, and Transaction Monitoring in the sandbox proves nothing.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
Sandbox outcomes at a glance
| Outcome you need | Scenario name source | Session ends as | What it tests | Billed |
|---|---|---|---|---|
| Approved | Read the authenticated catalog and pick the scenario that resolves all checks | Approved | Your success path and decision storage | No |
| Declined | decline_aml_hit is the only slug named in the docs; every other value comes from the live catalog | Declined | Your decline branch and warning handling | No |
| In Review | Read the catalog and pick a scenario whose warnings need human review | In Review | Your reviewer handoff and queue | No |
The table describes the status each outcome produces, not application side effects. The authenticated scenario catalog is the only source for scenario names. A scenario controls the verification result; your application owns the handling that follows, such as access, messaging and case work.
The session lifecycle matters to a test plan because it tells you which status to assert. Your scenario drives the automated checks into Approved, Declined or In Review, and a reviewer settles the In Review branch.
Start free in the sandbox at business.didit.me, with no sales call. If you build with an AI assistant, connect Didit through the Didit MCP server. The live prices behind the checks you are simulating are on didit.me/pricing, and the product page for the screening steps is AML screening.

Prerequisites before your first declined session
- A sandbox application. Every Didit application comes as a Live and a Sandbox environment. Select Sandbox in the application switcher before you copy any key.
- A sandbox API key. New keys start with
sk_test_for a sandbox application orsk_live_for a live one, followed by 43 URL-safe characters. Keys created before this format have no prefix and keep working, so never validate a key by its prefix. - A workflow UUID. Read it from
/v3/workflows/. A KYC workflow creates a User Verification session. - A webhook destination that reads the raw body, verifies the HMAC signature and returns 2xx, if you want to test the decision handoff rather than polling.
- curl or any HTTP client. Keep the key server side. The verification API authenticates with
x-api-key, not a bearer token.

How to test each outcome, step by step
Confirm you are on a sandbox application. A sandbox application runs in mode
SANDBOXand its key starts withsk_test_. Every external provider is mocked there, the balance check is bypassed, and sandbox testing is free, with a quota of 500 test-session creates per 24 hours; Enterprise can raise the quota on request.Read the live scenario catalog. The source of truth is
GET /v1/sandbox/scenarios/, and it is authenticated, so send the samex-api-keyheader you use everywhere else.decline_aml_hitis the only scenario slug the docs name; every other slug has to come from the catalog itself. Trust the catalog over any list, including this page, if the two ever disagree.Create the session with the scenario attached.
sandbox_scenariotakes a scenario slug and expands that scenario's bundled values ontocontact_detailsandexpected_details, so the session reproduces the outcome. The call below usesdecline_aml_hit, the documented example. Swap it for the slug you read from the catalog.curl -X POST https://verification.didit.me/v3/session/ -H "x-api-key: $DIDIT_API_KEY" -H "Content-Type: application/json" -d '{"workflow_id": "<WORKFLOW_ID>", "vendor_data": "user-42", "callback": "https://myapp.com/return", "sandbox_scenario": "decline_aml_hit"}'If the application has allowed domains, an http or https callback must sit on one of those origins or creation fails with a 400 on
callback.Open the session and complete the flow. Liveness runs exactly as it does live: the active capture is real in the hosted flow and through the native SDK web handoff, and only the result is simulated by the scenario. Outcomes never depend on the pixels, but the captured media is stored for real, so never upload real PII into the sandbox.
Read the webhook, not just the status. Sandbox webhooks carry
environmentset tosandboxand echo the armed slug insandbox_scenario, which is null on live sessions or on an unarmed sandbox session. Store that field and assert on it in your tests, so a test event can never be mistaken for a live decision.Fetch the decision and check the warnings.
GET /v3/session/<SESSION_ID>/decision/mirrors the decision object in the webhook, with per-feature arrays such asaml_screenings[],face_matches[]andliveness_checks[]. This is where you assert that a decline carries a warning that explains the failure.Re-arm instead of recreating. A scenario can be armed or re-armed after create, while the session is still
Not Started, withPOST /v3/session/{session_id}/sandbox/arm/. That avoids creating another session when you are iterating on the same one.Match the status strings strictly. Statuses are exact, case-sensitive strings with spaces:
Approved,Declined,In Review,In Progress,Not Started,Abandoned,Expired,Kyc Expired,Resubmitted,Awaiting User. Note the single capital K inKyc Expired. Use strict equality, never a lowercase comparison.
The same lifecycle runs in the sandbox: the armed scenario picks the automated branch, and the status it lands on is the one your tests assert.
Expected output
A declined scenario produces a status webhook shaped like the one below. This snippet is abbreviated: the real payload also carries the full decision object because the session reached a decision.
{
"event_id": "uuid",
"session_id": "uuid",
"status": "Declined",
"webhook_type": "status.updated",
"environment": "sandbox",
"sandbox_scenario": "decline_aml_hit",
"vendor_data": "user-42"
}
Run a scenario that ends in In Review and the same envelope arrives with status set to In Review. That is the handoff to a human, not a final answer.
Inputs and outputs
| Field | Direction | Example | Notes |
|---|---|---|---|
x-api-key | Request header | sk_test_... | Belongs to one application and one environment. A sandbox key never creates a billed verification. |
workflow_id | Request body | UUID | Required. The workflow type decides whether a KYC or KYB session is created. |
vendor_data | Request body | user-42 | Your stable identifier. It binds the session to an entity and is used for duplicate detection. |
callback | Request body | https://myapp.com/return | Didit appends ?verificationSessionId={session_id}&status={status}. |
sandbox_scenario | Request body, sandbox only | decline_aml_hit | Rejected with a 400 on live applications. |
environment | Webhook | sandbox | Live sessions carry live. |
status | Webhook and decision | Declined | Exact, case-sensitive string. |
sandbox_scenario | Webhook | decline_aml_hit | The armed slug, or null. |
Failure cases and how to recover
| Symptom | Cause | Recovery |
|---|---|---|
400 sandbox_scenario on create | You sent the scenario to a live application | Switch the application switcher to Sandbox and use the sk_test_ key of that environment |
| 400 on the scenario slug | Slug not in the catalog | Re-read GET /v1/sandbox/scenarios/ and copy the value exactly |
401 on verification.didit.me | Key wrong, malformed, revoked or expired | Re-copy the sandbox primary key from Developers, API keys |
| 403 | No x-api-key header, a scoped key without access, or a call from outside the key's IP list | Use a key that carries the access, or call server side |
400 on callback | The callback is outside the application's allowed domains | Add the origin, or use a custom URL scheme, which is always accepted |
Session stuck at Not Started | Scenario armed after create but not yet re-armed, or the user never opened the link | Re-arm with POST /v3/session/{session_id}/sandbox/arm/ while the session is still Not Started |
| No webhook at all | Destination not subscribed to status.updated, or you are looking at example data | Subscribe the event family and test with a session you created; examples send no webhook |
| 429 | Rate limit | Back off using the wait field, then retry |
Sandbox boundaries worth writing into your test plan
Sandbox is session-shaped: it mocks the providers a verification session would call. That is why faces, documents, AML hits, phone and email all reproduce deterministically. A few boundaries are worth writing into your test plan.
- Custom domains are live only. A sandbox application cannot add one, so sandbox sessions always run on the default hosted verification domain. Do not sign off on white-label branding from a sandbox run.
- Transaction Monitoring runs nothing. A transaction created on a sandbox application is stored and returned, but no rule evaluation, screening, notification or charge happens over it.
rule_runsis empty whatever mode your rules are in, no webhook is sent, and the stored response is not a rule result. A sandbox transaction can come backApprovedwith a score of 0, and that does not prove a rule ran. To see rules at work in the sandbox, open the example transactions in the console, which show the rule results and alerts a live transaction would have. - Examples are not tests. Every sandbox application ships with approved, declined and in-review example verifications, businesses, transactions and cases, each tagged Example. They are sandbox data and the API returns them, they are never billed, and no webhook is sent for them. If they were cleared, use Restore example data in the sandbox banner.
- Plan features are available on the application's own screens. On its own screens a sandbox application has the features of every plan, so Cases, scheduled reports, Investigator follow-ups and custom transaction rules are visible. Organization-wide settings such as member roles, single sign-on and the audit log still follow your real plan.
Paid steps and review boundaries
Nothing in the sandbox is billed. Sessions are never charged, the balance check is bypassed, and sandbox testing is free, with a quota of 500 test-session creates per 24 hours; Enterprise can raise the quota on request. In a live application, each completed check is billed at your plan price. The full ID check is $0.33 and breaks down as ID document verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03. AML screening is $0.20 per check.
The review boundary is the other thing to get right. A scenario that ends in In Review means automated checks flagged warnings a human has to settle. In the sandbox you are that reviewer, working in the Didit Business Console: approve, decline, or request a resubmission, and the session moves to Approved, Declined or Resubmitted. In production the same three actions belong to your compliance team, and building an automatic approve on an In Review session defeats the control. Treat the scenario as a test of your queue, your SLA and your reviewer tooling, not as a decision you can automate away.
Worked cost example
Suppose your test matrix has three live sessions, one for each outcome you must handle: Approved, Declined and In Review. Each uses a workflow with a full ID check and AML screening. These are hypothetical live prices for the same checks. In the sandbox they cost $0.00 because sandbox testing is free, with a quota of 500 test-session creates per 24 hours; Enterprise can raise the quota on request.
At list price: $0.33 for the full ID check plus $0.20 for AML screening is $0.53 per session. Three sessions are 3 x $0.53 = $1.59.
On Growth, with its 4% discount: $0.33 x 0.96 = $0.3168 and $0.20 x 0.96 = $0.192, so $0.5088 per session, and 3 x $0.5088 = $1.5264.
On Scale, with its 10% discount: $0.33 x 0.90 = $0.297 and $0.20 x 0.90 = $0.18, so $0.477 per session, and 3 x $0.477 = $1.431.
In the sandbox the same three sessions cost $0.00 on every plan because sandbox testing is free, with a quota of 500 test-session creates per 24 hours; Enterprise can raise the quota on request. You can run them up to that quota without touching your credit balance.
Sources
- Didit docs: Sandbox test data, scenarios, magic values and documents
- Didit docs: Create Session API
- Didit docs: Webhooks and the event envelope
- Didit docs: Verification statuses and the session lifecycle
- Didit docs: Applications in the console, Live and Sandbox
- Didit docs: API authentication and key format
- Didit docs: Pricing and billing rules
- Didit pricing page and cost estimator
- Didit AML screening product page
- Didit MCP server setup for every client
- Didit Business Console and sandbox sign-up
Next step: create a sandbox application, copy the sandbox API key and run the outcomes you must handle against your own webhook handler. You can start free in the Didit sandbox with no sales call, and test each decision path without touching your credit balance.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
How do I test an approved KYC session in the Didit sandbox?
Use a sandbox application with a sandbox API key, read the authenticated scenario catalog for the scenario that resolves all checks, and send its slug as sandbox_scenario on POST /v3/session/. Complete the flow and assert that the session ends Approved and that your success handling runs. The webhook carries environment set to sandbox, the armed slug and the decision object.
How do I test a declined KYC session in the Didit sandbox?
Use a sandbox application with a sandbox API key and create the session with a decline scenario from the authenticated catalog. The docs show decline_aml_hit as an example. Send it as the sandbox_scenario field on POST /v3/session/, complete the flow, and the session ends as Declined. The webhook carries environment set to sandbox, the armed slug and the decision object.
What are all the sandbox scenario values?
The definitive list is served by GET /v1/sandbox/scenarios/, which is authenticated with x-api-key. decline_aml_hit is the only slug the docs name, so every other value has to come from the endpoint itself. Read the catalog before you hardcode any name, because it is the source of truth and this page is not.
Do sandbox sessions cost anything?
No. Sandbox testing is free, with a quota of 500 test-session creates per 24 hours; Enterprise can raise the quota on request, and the balance check is bypassed. Live applications are billed per completed check at your plan price.
Why does my live application return a 400 when I send sandbox_scenario?
Because sandbox_scenario is a sandbox-only field and live applications reject it with a 400. The field belongs to an application running in sandbox mode, whose key starts with sk_test_. Switch the application switcher to Sandbox, use the sandbox key, and remove the field from any request you send with the live key.
How do I know a webhook came from the sandbox and not from production?
Every sandbox webhook carries environment set to sandbox, while live sessions carry environment set to live. Sandbox payloads also echo the armed scenario in sandbox_scenario, which is null on live sessions. Assert on the environment field before you write anything to a production system, and verify the HMAC signature as you would for any event.
Can I arm a scenario after the session is created?
Yes, as long as the session is still Not Started. Use POST /v3/session/{session_id}/sandbox/arm/ to arm or re-arm a scenario. That avoids creating another session when you are iterating on the same one.
Does Transaction Monitoring work in the Didit sandbox?
No, not in the sense of evaluating rules. A transaction created on a sandbox application is stored and returned, but no rule evaluation, screening, notification or charge happens over it. rule_runs is empty whatever mode your rules are in, and no webhook is sent for the transaction. A sandbox transaction can come back Approved with a score of 0, and that does not prove a rule ran. Use the example transactions in the sandbox console to see the rule results and alerts a live transaction would have.
Does the sandbox run real liveness capture?
Yes. Active liveness runs the real active capture in the sandbox, in the hosted flow and through the native SDK web handoff, so you test the experience your users will get. Only the result is simulated, by the scenario or the magic values it expands. The report still records the method your workflow configures.
How do I test the In Review path end to end?
Pick an In Review scenario from the authenticated catalog, create the session and complete the flow. The session lands in In Review with a decision object that carries the warnings which triggered it. Then take the reviewer action in the Business Console, approve, decline or request a resubmission, and assert that your application reacts to the resulting status.updated webhook.
Can I test a custom domain in the sandbox?
No. Custom domains are live only, and a sandbox application cannot add one, so sandbox sessions always run on the default hosted verification domain. Test white-label branding in a live application once the domain is configured. Sandbox is for outcome logic, not for domain or certificate setup.
Why do example verifications appear in my sandbox before I create anything?
Every sandbox application ships with example data: approved, declined and in-review verifications, businesses, transactions and cases, each tagged Example. They exist so every section of the console shows what a populated view looks like. They are sandbox data, the API returns them, they are never billed and no webhook is sent for them. If they were cleared, use Restore example data in the sandbox banner.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


