Test mode and live mode
Every Nexiel API has one base URL and two kinds of key. The key decides the mode of each request, so the same integration code runs in test mode with a test key and in live mode with a live key.
What changes between the two
| Topic | Test key | Live key |
|---|---|---|
| Key | Client id starts nx-test-. Free, no review: from the test keys page or the dashboard in test mode. | Client id starts nx-live-. Created on the dashboard once your business verification (KYB) is approved. |
| Base URL | https://compliance.nexiel.io | https://compliance.nexiel.io |
| Session flag | livemode: false | livemode: true |
| Credentials accepted | Credentials signed under the Nexiel TEST CA, such as those from the sandbox wallet, plus test issuers you add with POST /v1/verify/test-issuer-anchors. | Credentials from issuers on the EU trusted lists, or accepted by your trust policy. Never a test credential. |
| Your relying-party identity | Nexiel TEST access and registration certificates, created for you on your first session. | Your own access certificate and registration certificate, from your Member State’s authorities. None for an EU age verification profile session. |
| EU age verification profile | profile: "eu-age-verification" on an age-verification session accepts the Nexiel TEST age verification attestation. Complete it with the test helpers. | Accepts age verification attestations from issuers on the EU age verification trusted list (currently Denmark). No relying-party certificate needed. Live use with a real age verification app is in progress. |
| Wallets that answer | The sandbox wallet, or a test wallet that trusts the Nexiel TEST CA. Real EUDI wallets refuse test requests. | Real EUDI wallets. The sandbox wallet refuses live requests. |
| Sandbox wallet link | sandboxWalletUrl opens the session in the sandbox wallet, and the hosted page offers it as a button. It is null for an EU age verification profile session. | sandboxWalletUrl is always null. |
| Test helpers | POST /v1/verify/sessions/{sessionId}/test_helpers/complete answers a session with a chosen persona and outcome. See Testing. | Refused with 403 test_helpers_test_mode_only. |
| Hosted page return | The hosted page shows a button naming your successUrl or cancelUrl. | The hosted page sends the user to your successUrl or cancelUrl by itself. |
| Screening data | Nexiel’s synthetic sandbox list only, with a sanctioned and a PEP persona. | The live sanctions and PEP lists. |
| Billing | Never billed. | Billed per usage, on your plan. |
| Evidence packs | Created and claimed exactly as in live mode, with POST .../evidence-pack/claim, from test-mode decisions only. | Created for AML-relevant checks once you register a key, and claimed with POST .../evidence-pack/claim. |
| Webhooks | Sent to your sandbox endpoints. Event data carries mode: "sandbox". | Sent to your production endpoints. Event data carries mode: "production". |
| Records you can read | Test-mode sessions and decisions only. A live record returns 404. | Live sessions and decisions only. A test record returns 404. |
| Rate limit | A burst of 25 requests, then 30 per minute, per key. See Rate limits. | A burst of 30 requests, then 30 per minute, per key. |
| Prerequisites | None. | KYB approval, billing, and for Verify, the certificates and EU trust lists in Going live. |
How the modes stay apart
- A key's mode is fixed when the key is created and checked on every request. It never changes.
- Each session records its mode when it starts (
livemode), and every later step follows it: the certificates that sign the request, the credentials accepted, billing and webhooks. - An organization can hold test and live keys at the same time. Each sees only its own mode's records, and each key has its own rate limit bucket, so test traffic never uses a live key's budget.
- Nexiel Screen: a live key screens the live lists. Sending
"mode": "sandbox"with a live key returns400 live_key_sandbox_mode. Use a test key for synthetic data.
Moving to live
Switching an integration to live mode is a configuration change: replace the test key's client id and secret with a live key's. Before that works for Verify, your organization needs the items in Going live. Until each is in place, live calls fail with an error that names what is missing, and test mode keeps working.