Skip to main content

Lost a Didit API Key? Recover Your API Key and Client ID (2026)

Log in with POST /programmatic/login/ to get a 24 hour JWT, list your organizations, then GET the application record to read the API key and client ID back.

Lost a Didit API Key? Recover Your API Key and Client ID (2026)

Contents

In this guide

Jump to the part you need.

If you lost your Didit API key or client ID, you can get both back without a support ticket: log in programmatically with email and password, then read the key from your application record. This guide is for developers and AI agents on a new machine. Checks are billed per completed check, a full ID check is $0.33, and the sandbox is free. The caveat: the API returns the key you already have. It does not mint a new one.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

The short answer

Didit credential recovery and documented key creation, call by call
GoalEndpoint or placeHostAuthentication
Get a fresh tokenPOST /programmatic/login/https://apx.didit.me/auth/v2Email and password in the JSON body
Find org_id and app_idGET /organizations/me/https://apx.didit.me/auth/v2Authorization: Bearer <access_token>
Read api_key and client_idGET /organizations/me/{org_id}/applications/{app_id}/https://apx.didit.me/auth/v2Authorization: Bearer <access_token>
Run verification trafficPOST /v3/session/https://verification.didit.mex-api-key: <api_key>
Create a replacement key after a leakConsole: Developers, API keys, inside the applicationDidit Business ConsoleConsole session

Start free in the sandbox at https://business.didit.me/ and there is no sales call. If you want an AI assistant or coding agent to run these calls for you, connect Didit through https://didit.me/developers/mcp/. Checks you run afterwards are priced on https://didit.me/pricing/, and the credential endpoints are documented at https://docs.didit.me/auth-api/get-credentials.

Two hosts, two credentials

Didit splits account management from verification traffic across two hosts, and that split is the reason people think a key is lost when it is only being sent to the wrong place. Didit runs identity and fraud checks for 4,000+ companies on one public API.

  • https://apx.didit.me/auth/v2 is the account and application host. It accepts a JWT access_token as Authorization: Bearer. The token is RS256 signed and lives 86,400 seconds, 24 hours, by default.
  • https://verification.didit.me/v3 is the verification host. It accepts the long lived api_key as x-api-key. It does not accept a Bearer token.

Programmatic login only solves the first host. The second host needs the key, which is why the recovery flow ends with a GET on the application record rather than with the login response.

Recovery and creation are different actions, and mixing them up is the other common mistake. Recovery reads an existing credential back from the application record and creates nothing. Creating a key is a documented console action: open the application, go to Developers, API keys, and add a new key with only the access a service or partner needs. The supplied docs do not document an API key rotation or revocation endpoint, so do not expect the recovery call to invalidate anything.

Save the api_key, the organization.uuid (org_id) and the application.uuid (app_id). You need all three to manage applications later. That instruction comes from the verify-email response at signup, and it is still the right advice after recovery.

Before you start

  • A verified email address and a password on the account. Accounts created through POST /programmatic/register/ work after email verification. Console accounts that signed up with email and password work too. Accounts that only ever used an OAuth provider must set a password first.
  • Use the mailbox address associated with the account. The registration guide says tagged addresses are rejected during registration.
  • Your org_id and app_id if you saved them. If you did not, step 2 finds them from the token.
  • curl and jq, or any HTTP client that can send a Bearer header and print JSON.
  • If the token comes from an MCP grant (a Log in with Didit grant), the grant needs the didit:management scope. A grant limited to didit:verification is refused with 403 and no credential is returned.
  • A place to store the key server side. Never ship it to a browser or a mobile bundle.

Recover the key in five steps

  1. Log in and capture the token. Send POST https://apx.didit.me/auth/v2/programmatic/login/ with email and password. There is no browser step and no second factor on an API account. The response carries access_token, refresh_token and expires_in.
  2. List your organizations and applications. Send GET https://apx.didit.me/auth/v2/organizations/me/ with the Bearer token. Copy the organization uuid and the application uuid for the app whose key you need.
  3. Read the application record. Send GET https://apx.didit.me/auth/v2/organizations/me/{org_id}/applications/{app_id}/. The response contains client_id and api_key, plus data_location and the enabled products.
  4. Store and use the key. Put api_key in an environment variable and send it as x-api-key on every call to https://verification.didit.me/v3/....
  5. Create a replacement only if the key leaked. Recovery proves you can read the key. If the key was exposed, add a new key in the console under Developers, API keys, as described below.

This is the recovery flow from the API authentication docs, unchanged. Set ORG_ID and APP_ID from step 2 before running the last call.

# 1) Log back in to get a fresh JWT
TOK=$(curl -s -X POST https://apx.didit.me/auth/v2/programmatic/login/ \
-H "Content-Type: application/json" \
-d '{"email":"you@yourdomain.com","password":"StrongP@ss1"}' | jq -r .access_token)

# 2) Find your org and app
curl https://apx.didit.me/auth/v2/organizations/me/ -H "Authorization: Bearer $TOK"

# 3) Read client_id and api_key back from the application record
curl "https://apx.didit.me/auth/v2/organizations/me/$ORG_ID/applications/$APP_ID/" \
-H "Authorization: Bearer $TOK"

Expected output

The third call returns the full application record. These are the two fields you came for, trimmed to the parts you will act on:

{
  "uuid": "b2c3d4e5-6789-...",
  "name": "My App",
  "client_id": "S9LIYGSoWNuGMLHsvEt9dQ",
  "api_key": "sk_live_example_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "website_url": "https://example.com",
  "data_location": "eu",
  "products": [
    { "product": "identity", "status": "enabled",
      "modules": { "user_verification": true, "business_verification": true, "case_management": true } }
  ]
}

New keys start with sk_live_ for a live application or sk_test_ for a sandbox application, followed by 43 URL safe characters. Keys created before that format have no prefix and keep working, so never validate a key by its prefix. If you need a test key rather than a live one, read the sandbox application record the same way, or read sandbox_application from the original verify-email response if you still have it.

A session overview with its warnings in the Didit Business Console
A session overview in the Didit Business Console. After you add a new key, check here that new traffic lands where you expect.

Inputs and outputs

What each step of the recovery flow needs and returns
ItemWhere it comes fromExample
email and passwordYour account, as registeredyou@yourdomain.com
access_tokenPOST /programmatic/login/, 24 hour default lifetimeeyJhbGciOiJSUzI1NiIs...
org_idverify-email response, or GET /organizations/me/a1b2c3d4-5678-90ab-cdef-111111111111
app_idverify-email response, GET /organizations/me/, or the consoleb2c3d4e5-6789-01bc-defg-222222222222
api_keyApplication recordsk_live_example_...
client_idApplication recordS9LIYGSoWNuGMLHsvEt9dQ
data_locationApplication recordeu

When the call fails

Failure modes on the recovery flow and the fix for each
Status and messageWhat it meansFix
401 on login, Invalid email or passwordThe credentials are wrongCheck the address and password. Lockout is progressive per email: 5 consecutive failures lock for 15 minutes, 10 for one hour, 20 for 24 hours.
429 on login with a wait fieldLockout or per IP limit. Per IP limits are 20 attempts a minute and 100 an hourHonour the wait value in seconds before retrying
403 on loginAn SSO policy blocks password login for the accountSign in through the console route the policy allows, or set a password on the account
401, Invalid access token or Expired access tokenThe JWT is malformed or older than 24 hoursLog in again to get a fresh token
403, Only organization owners and admins can manage applicationsYou are a member of the organization but not an owner or adminAsk an owner or admin to run the call, or to change your role
403, Your access to this organization is suspendedYour membership is suspendedResolve the membership with the organization owner
403, This token's scope does not permit this actionAn MCP grant without didit:managementRe-consent with the management scope
404, Organization not found or Application not foundThe uuid is wrong, or the application is not in that organizationRe-list with GET /organizations/me/ and copy the uuids again
401 or 403 on verification.didit.meThe key is wrong, malformed, revoked or expired, or the call comes from an address outside the key's IP listRead the key again from the application record, or check its access in Developers, API keys

One error needs its own paragraph. A 403 with "code": "application_deleted" on the verification host means the application was deleted. You get that answer for a few minutes after deletion, and after that the key is refused like any invalid key. Do not retry it. Use a key that belongs to an application that still exists.

If the key leaked: create a replacement

The recovery endpoint does not rotate anything. GET returns the application's current api_key on every call, so there is no show once model. The supplied docs do not document an API key rotation or revocation endpoint either, so we will not invent one. What is documented is key creation in the console.

  1. Create the replacement in the console. Open the application, go to Developers, API keys, and create a new key with only the access that service or partner needs. The primary key is the application's own secret; additional keys each belong to one service.
  2. Deploy the new key to your secret store and to every service that calls verification.didit.me.
  3. Confirm traffic works on the new key. A new key on the same application keeps the application's workflows, webhooks and verification data, because those belong to the application, not to the key.
  4. Review the incident. If the old key sat in a public repo or client bundle, review your incident records and replace the key in the console. The supplied docs do not document a revocation endpoint, so there is no documented API step that retires the old key.

Reading an api_key never affects account management, and an expiring 24 hour access_token never affects verification traffic. They are separate credentials on separate hosts, and treating them as one is the most common cause of a false alarm.

What recovery costs

Nothing. Credential recovery creates no verification checks, and billing starts only when a check completes, from prepaid credit. A full ID check is $0.33. Sandbox testing is free and unlimited. The API documentation says a newly created organization starts at $0 before any eligible plan credit is applied. Check current Free-plan eligibility on the pricing page before assuming monthly credit, and ensure the organization has sufficient credit before live traffic runs.

Worked cost example

Assume you recover the live key and run 2,000 full ID checks in one month, with AML screening on every user, on an eligible Free plan organization with the $10 monthly credit. Recovery itself adds nothing to the bill.

  • 2,000 full ID checks at $0.33 = $660.00
  • 2,000 AML screenings at $0.20 = $400.00
  • Total at list price = $1,060.00
  • Monthly plan credit applied = minus $10.00
  • Paid from top-ups = $1,050.00

Full ID checks and the modules inside them are listed on https://didit.me/pricing/ and in the pricing docs.

If an AI agent is doing this

Agents can register, verify email and recover credentials with the same calls a person uses, because none of them need a browser. Two rules matter. The token must carry didit:management to read application credentials, and the agent never pays: when live credit is needed, it hands the billing link to a person. The end to end recipe is at https://didit.me/developers/integration-prompt/, and the machine readable contract is at https://didit.me/api/agent/v1/openapi.json.

Use Didit with MCP
Using Didit with MCP. The hosted server is at mcp.didit.me/mcp and signs in with OAuth.

Sources

Next step: open a free sandbox organization at https://business.didit.me/, run the three calls above against it, and confirm you can read the api_key back before you touch production. No sales call, and the sandbox bills nothing. When the flow works, keep the api_key, the org_id and the app_id in your secret store so the next recovery takes one call instead of three.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

Where do I find my Didit API key?

Call GET https://apx.didit.me/auth/v2/organizations/me/{org_id}/applications/{app_id}/ with a Bearer access_token from POST /programmatic/login/. The response contains the application's api_key and client_id. In the console the same values sit under the application's Developers, API keys page, and the live key is also returned at signup by POST /programmatic/verify-email/.

Can I recover a lost Didit API key without opening the console?

Yes. The Auth API is headless: log in with email and password, list your organizations, then read the application record. Only identity actions such as changing the account email or password are console only, and account API tokens cannot perform them.

Does reading the credentials rotate the key?

No. The endpoint returns the current api_key on every call, and reading it again never invalidates anything. Creating a replacement key is a separate console action under Developers, API keys.

What is the difference between the access_token and the api_key?

The access_token is an RS256 JWT that lasts 24 hours by default and authenticates account management calls on https://apx.didit.me/auth/v2. The api_key is long lived and authenticates verification calls on https://verification.didit.me/v3 through the x-api-key header. The verification host does not accept the Bearer token.

How long does a programmatic login token last?

86,400 seconds, which is 24 hours, by default. Refresh it with the refresh_token or log in again with email and password. An expired token returns 401 with a detail of Expired access token, and the fix is a new login.

Does recovering a key cost anything?

No. Credential calls create no verification checks, and billing is per completed check from prepaid credit. A full ID check is $0.33, and sandbox testing is free and unlimited. Adding credit is a paid action a person completes in the console.

Can an AI agent recover Didit credentials on its own?

Yes, if its token carries the didit:management scope. A grant limited to didit:verification is refused with 403 and no credential is returned. Agents can also register and verify email in two calls, then manage applications on the same host.

What happens after too many failed logins?

Lockout is progressive per email: 5 consecutive failures lock the account for 15 minutes, 10 for one hour, 20 for 24 hours. Per IP limits are 20 attempts a minute and 100 an hour. A 429 response includes a wait value in seconds that you should honour before retrying.

I lost the org_id and app_id too. Can I still recover the key?

Yes. GET https://apx.didit.me/auth/v2/organizations/me/ with a Bearer token lists your organizations and their applications. Copy the organization uuid and application uuid from there, then call the application endpoint. Those are the same values the verify-email response asked you to save.

Why does my recovered key return 403 on verification.didit.me?

A 403 means the x-api-key header is missing, the key has no access to that resource or action, or the call comes from an address outside the key's IP list. A 403 with the code application_deleted means the application was deleted and that key will not work again. Check the key's access in Developers, API keys, or read a fresh key from the application record.

Can I revoke or delete an old Didit API key through the API?

The supplied docs do not document an API key rotation or revocation endpoint. What they document is reading the existing key back and creating additional keys in the console under Developers, API keys. Treat retirement of an old key as a documented gap rather than something you can script today.

Can I just create a new account instead of recovering the key?

You can, and POST /programmatic/register/ plus POST /programmatic/verify-email/ gets you credentials in two calls. But a new account creates a separate organization whose balance starts at $0, so recovery preserves the existing organization context. Check the current Free-plan eligibility rules for any monthly credit before you assume the new organization comes with one.

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.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • 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.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • 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.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.