Quickstart
Looking for transaction decisions, customer screening, continuous monitoring or Travel Rule? Use the Risk Intelligence quickstart.
This guide takes you through a full verification using curl. By the end you will have created an API key, discovered your enabled ID types, uploaded a selfie, submitted a verification, and read the result.
Building an app or website flow? You usually don’t need the raw API. Build a workflow in the dashboard and mount it with an SDK (workflowId="wf_…"), or share its hosted link with zero integration. This page walks the API underneath, for server-side integrations and for understanding what the SDKs do.
We use the sandbox environment (pk_test_… keys against https://sandbox-api.toden.co/api/v1) so you can test freely without affecting production. Each environment has its own host: when you go live, switch to a pk_live_… key and https://api.toden.co/api/v1. A test key sent to the production host returns 401.
1. Create a test API key
In the dashboard, go to Developers → API Keys, switch the environment selector to Sandbox, and create a key. Copy the full key (pk_test_…); it is shown only once.
Store it in your shell:
2. Check your configuration
GET /config returns the ID types enabled for your organisation and which features each supports.
3. Upload media (optional)
Number-only IDs (such as BVN) don’t need media. A BVN sent like this with no workflow and no selfie is a record lookup: it comes back verified with assuranceLevel: record_lookup, which says the number has a record, not that this person owns it. To prove the person, use a workflow with a selfie. For document or selfie/liveness flows, upload each file and keep the returned mediaId.
4. Create the verification
Submit the ID details. The metadata.requestId is your idempotency key: reuse it to safely retry without creating duplicates.
The API responds immediately with 202 Accepted:
5. Get the result
Verification runs asynchronously. The publishable key polls minimal status (no PII):
To read the full result (biodata, ID number, facial match), call the
result endpoint from your backend with a secret
(sk_) key, never from client code:
Better still, receive the result on your backend via a webhook.
Next steps
- Set up webhooks instead of polling.
- Review the full verification lifecycle and all status values.
- Go live by reading about environments and production access.