Environments
Toden has isolated Sandbox and Production environments, each on its own host.
The key prefix identifies the environment, and a key works only on its own
environment’s host: send _test_ keys to https://sandbox-api.toden.co and
_live_ keys to https://api.toden.co, for every product. A Sandbox key sent
to the Production host is not recognised there and returns
401 Invalid API key, and the reverse is true too.
Data does not cross environments: keys, verifications, webhook endpoints, and configuration are all scoped to one environment.
Sandbox
Use Sandbox to build and test your integration. It exercises the same public API
surface and webhook delivery as Production. Explicit Risk Intelligence
sandboxScenario fixtures are deterministic and non-billable. Ordinary Sandbox
requests without a scenario use configured Sandbox pricing and can be billed.
Use the Risk Intelligence SDK with environment: 'sandbox'; it selects the
Sandbox host for you. Remove sandboxScenario in Production.
Production
Production runs real verifications against live government databases and uses your credit balance.
Production access requires an approved business
Before your pk_live_ keys can run verifications, your organisation’s business profile (KYB) must be approved by Toden. Until then, production verify and upload requests are rejected:
Complete and submit your business profile under Onboarding in the dashboard, then wait for approval. Sandbox is unaffected and remains available throughout.
Billing
Each completed production verification deducts from your organisation’s credit balance at the price configured for that country and ID type. If the account has insufficient credit, the verification is recorded and marked failed with an insufficient-credits reason (it still fires a verification.failed webhook) rather than being silently dropped. Top up and set low-balance thresholds under Billing.
Switching environments in the dashboard
The dashboard header has an environment switcher (Sandbox / Production). It controls which environment’s data you see (including which keys you create) without changing the dashboard URL.
Checklist for going live
- Your business profile is approved for production.
- You created the required live keys: publishable for a verification client, secret for backend results or Risk Intelligence.
- You registered production webhook endpoints and verified signatures.
- Your credit balance is funded and a low-balance threshold is set.
- You swapped test keys for live keys and, for Risk Intelligence, selected the Production environment/host.