API keys
Didit API keys for the verification API
One header authenticates every call. Give each service its own key, with only the access it needs.
x-api-key: $DIDIT_API_KEY
Set Up API Keys & Test Your Webhooks: Didit Integration Step by Step · 3 min · YouTube
Use
One header on every call
An API key is the secret that identifies your application. Send it from your server.
x-api-key, with the whole key, prefix included.A 401 or 403 means fix the key. Sending the same request again will fail the same way.
curl -X POST https://verification.didit.me/v3/session/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workflow_id": "'"$DIDIT_WORKFLOW_ID"'", "vendor_data": "internal-user-id", "callback": "https://myapp.com/done" }'
| Reply | What it means |
|---|---|
401 | The key is wrong, malformed, revoked or expired. |
403 | No key was sent, the key has no access to this action, or the call came from outside its IP list. |
404 | On a session route, the session is outside the workflows or statuses of the key. |
Format
Live and sandbox keys
The prefix tells you which kind of application a key belongs to.
Live
sk_live_
The key of a live application. It runs real verifications, and they are billed.
Sandbox
sk_test_
The key of a sandbox application. Every check is mocked and never billed.
Scoped keys
Give each key only what it needs
A scoped key is a named key with limited access. Use one for each service or partner.
Start from a preset
| Preset | Access |
|---|---|
Full access | Every resource, read and write. For your own backend. |
Read only | Sessions and decisions, with media optional. For a partner that needs results. |
Custom | You choose None, Read or Write for each resource. |
Then add limits
Access for each resource
| Resource | Read | Write |
|---|---|---|
Sessions | ||
Decisions | ||
Media | ||
People | ||
Companies | ||
Transactions | ||
Workflows | ||
Webhooks | ||
Application settings | ||
Analytics |
Each resource can also be set to None. Read covers GET requests. Write also covers POST, PUT, PATCH and DELETE. Standalone checks need Sessions write.
Manage
Rotate, revoke, audit
You manage keys in the console. There is no API for it.
- Shown once. Copy the secret when you create the key. If you lose it, rotate the key.
- Rotate with no downtime. The old secret keeps working for 24 hours after you rotate.
- Revoke at once. Every call with a revoked key gets a 401. It cannot be undone.
- Edit access. Change resources, limits or expiry. The secret stays the same and the change applies within a minute.
- Usage for each key. Requests over 30 days, error rate, latency and the latest calls.
- Audit trail. Every call appears in the audit logs with the name of the key that made it.
No browser
Get a key from the terminal
Two calls create an account and return its keys. This is how an AI agent starts.
Register
Send an email and a password. Didit emails a code of 6 characters that lasts 10 minutes.
POST/auth/v2/programmatic/register/Verify the code
Send the code back. The response carries a live key and a sandbox key.
POST/auth/v2/programmatic/verify-email/curl -X POST https://apx.didit.me/auth/v2/programmatic/register/ \ -H "Content-Type: application/json" \ -d '{"email": "you@yourdomain.com", "password": "MyStr0ng!Pass"}'
api_key.@example.com are refused.Other credentials
Tokens that are not API keys
Didit uses a few other secrets. Each has one job.
| Credential | Where it goes | What it is for |
|---|---|---|
session_token | Native SDKs, and the Session-Token header | Opens one session for one user. Create session returns it. It is not your API key. |
sdk_token | The X-Transaction-Token header | Lets a client SDK send transactions. Short-lived and tied to one vendor_data value. |
monitoring_token | The X-Monitoring-Token header | Lets a device send monitoring events. Short-lived and tied to one vendor_data value. |
Access token | An Authorization: Bearer header | Proves an end user signed in with the Authentication product. |
Publishable key | The Authentication SDKs | Identifies your application. It never grants server access. |
secret_shared_key | Your webhook endpoint | Signs webhooks. Each destination has its own. |
Only the API key goes in x-api-key, and only from your server.
Questions
Questions about API keys
How do I authenticate with the Didit API?
Where do I find my API key?
What is the difference between sk_live_ and sk_test_?
What is a scoped API key?
How do I rotate a key?
Can I use my API key in a browser or a mobile app?
What does a 401 or a 403 from the Didit API mean?
Should my code check that a key starts with sk_live_ or sk_test_?
Can I get API keys without opening the console?
Do the verification API and the account API use the same credentials?
What happens to my keys when I delete an application?
Should several services share one API key?
Where do I find my organization ID?
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.
- Trusted by EU regulators
After a year of supervised testing, EU financial regulators confirmed that verifying with Didit is safer than checking an ID in person.
- 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
Learn Didit, one short video at a time
Start
Create a key
Create an account, open Developers and copy your sandbox key.
Free sandbox. Credit applies to work-email sign-ups.