Skip to main content

Aadhaar API Integration Guide: Database Validation in Didit

Didit runs an Aadhaar lookup as a Database Validation call: POST /v3/database-validation/ with issuing_state IND. One server-to-server request, priced per successful hit, with the India rate read from the per-service table.

Aadhaar API Integration Guide: Database Validation in Didit

Contents

In this guide

Jump to the part you need.

If you need to check an Aadhaar number against UIDAI, Didit exposes it as a Database Validation call: one server-to-server request, no document upload. It fits Indian onboarding where the user types a number and a few details and you need a match verdict in the same response. The India rate is read from the per-service table; the catalog starts at $0.05 per check. The caveat: a match proves a record exists, not that a document is genuine.

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

Aadhaar verification through Didit at a glance
ItemDetail
ProductDatabase Validation, also available inside a workflow as ID Verification non-document lookup
EndpointPOST https://verification.didit.me/v3/database-validation/
Authx-api-key header
Country fieldissuing_state=IND
Identifier fieldidentification_number, mapped by country to the national ID number
Source queried in IndiaUIDAI
PriceVariable per country, billed per successful service hit. Catalog range $0.05 to $7.00 per check. Read the India rate in the per-service pricing table.
Outcomefull_match, partial_match or no_match, plus per-field matches and warnings
Assurance tier inside a workflowdata_match

Start free in the sandbox at business.didit.me (no sales call, sandbox testing is free on every plan), and for developers the way to reach Didit from an AI assistant is the Didit MCP server. Plans, credit and every module price are on didit.me/pricing, and the product documentation sits at Database Validation overview.

What the Aadhaar route on Didit actually is

We do not treat Aadhaar as a product of its own with a separate endpoint. It is a country entry in Database Validation, the same call we make for a Brazilian CPF, a Chilean RUT or an Argentine DNI. You send the country in issuing_state and the number in identification_number, and Didit maps and routes the request to the authoritative source for that country. In India the source named in our docs is UIDAI, the registry that issued the number in the first place.

The non-document lookup form where a user types their national ID number and personal details.
The typed lookup a user sees when a country uses non-document verification. No upload, no camera framing.

That routing choice matters more than it looks. Every service in the catalog publishes what it returns, what it needs and whether it needs consent. On our non-document lookup page the Source queried column is the only statement of provenance you should rely on, because a government register and a credit-bureau file prove different things and run under different consent regimes. We never generalise that column across countries.

A match therefore proves one thing: the details the user gave matched a record the source holds. No document was inspected, so nothing about a document's authenticity is claimed, and we do not describe the lookup as a document check. The lookup checks the supplied identifier and personal details against the source record, so mismatched details can fail even when an identifier is real. The difference between the data_match tier and a documentary result is answered in the FAQ below.

Didit runs identity and fraud checks for 4,000+ companies. Database Validation covers 60+ live countries, and India is one of them through UIDAI.

Prerequisites before the first call

What you need before you send an Aadhaar check
RequirementWhat it looks like
PlanAny plan, including Free. The Free plan carries $10 of monthly credit for organizations that sign up with a work email; sandbox testing is free and unlimited on every plan.
ClientA Didit organization and an application in the Business Console at business.didit.me, plus an API key copied from the console.
PermissionsThe API key travels in the x-api-key header. Reading a session decision later needs a key that holds read:sessions.
Coverage checkConfirm India is available for the method you plan to use, and read the India row of the per-country table for the exact request fields.
ConsentServices flagged requires_consent=true in the catalog return HTTP 400 unless the request sends consent=true.
PricingThe India rate from the per-service pricing table, so your unit economics are not guesswork.

Step by step: send an Aadhaar check

  1. Get the key. Sign up at business.didit.me, open the console and copy an API key for your application. Send it as x-api-key on every call. A wrong or expired key answers 401, and a missing key answers 403.
  2. Pick the route. Use the standalone server-to-server call when you already hold the identity data and want a one-shot registry verdict. Use the workflow route when the lookup is a step in a hosted flow and the fields should be fed from the steps in front of it.
  3. Send the standalone request. Post multipart form data to https://verification.didit.me/v3/database-validation/ with the country and the number. This is the smallest call that answers the question.
  4. Read the verdict. The response carries request_id and a database_validation object with match_type, the services used, a match score, per-service validations and a warnings array. Branch on match_type, not on the HTTP status alone.
  5. Or run it inside a workflow. Add the DATABASE_VALIDATION feature to the workflow in the Business Console or through POST /v3/workflows/, then create a session with POST /v3/session/ and open session.url for the user.
  6. Collect the decision. Fetch GET /v3/session/{sessionId}/decision/ or subscribe to session.status.updated. The lookup result appears as database_validations[] on the decision payload.
  7. Test, then switch keys. Wire and test everything in the sandbox application, then repeat the same code against a live key. Nothing about the request shape changes.

The standalone call below is illustrative: it shows the request shape with placeholder values. Before you send a live India check, read the India row of the per-country table for the exact field set that country asks for, then replace the placeholder number and details with the user's own.

curl -X POST 'https://verification.didit.me/v3/database-validation/' \
  -H "x-api-key: $DIDIT_API_KEY" \
  -F "issuing_state=IND" \
  -F "identification_number=123456789012" \
  -F "first_name=Jane" \
  -F "last_name=Doe" \
  -F "date_of_birth=1990-01-15" \
  -F "vendor_data=user-1234"

The response shape our docs publish:

{
  "request_id": "...",
  "database_validation": {
    "match_type": "full_match",
    "validation_type": "...",
    "services_used": ["..."],
    "match_score": "...",
    "validations": [
      { "service": "...", "status": "...", "matched_fields": ["..."], "record_details": {} }
    ],
    "warnings": []
  }
}

Omit services and Didit runs the country's default service only. Pass a specific service id to choose what runs, and list several to run more than one. A selfie is only relevant for the services that face-match against a registry portrait, which today are Argentina and Panama, so an Aadhaar request does not need one.

Inside a workflow, the create and fetch calls are the ones you already use for any session:

curl -X POST 'https://verification.didit.me/v3/session/' \
  -H "x-api-key: $DIDIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"workflow_id": "WORKFLOW_UUID", "vendor_data": "user-1234", "callback": "https://app.example.com/done"}'
curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ \
  -H "x-api-key: $DIDIT_API_KEY"

Field and event mapping

What you send, what comes back, what you subscribe to
Field or eventWhere it livesWhat it means and what to do
issuing_stateRequestISO country of the identifier. India is IND, and it selects both the service and the source.
identification_numberRequestThe national ID number. Didit maps it to CPF, RUT, CURP, DNI and the rest by country, so one field covers every registry.
first_name, last_name, date_of_birthRequestComparison fields. Read the India row of the per-country table for the exact set that country asks for.
servicesRequestOptional. Omit for the country default, or name the service ids you want. Multiple services can produce multiple billing events.
consentRequestRequired as true for any service flagged requires_consent=true. Without it the call answers 400.
vendor_dataRequestYour stable identifier for the person. Keep it stable so duplicate detection works across sessions.
match_typeResponsefull_match, partial_match or no_match. This is the routing decision for your own code.
validations[].matched_fieldsResponseWhich fields matched. Useful for telling a user exactly which value to correct.
warnings[]ResponseRisk codes such as DATABASE_VALIDATION_NO_MATCH, DATABASE_VALIDATION_PARTIAL_MATCH and COULD_NOT_PERFORM_DATABASE_VALIDATION.
database_validations[]Decision payloadThe workflow route's array for the check. Absent or null when the feature did not run, never a placeholder.
session.status.updatedWebhookFires when a session's status changes. Subscribe to it instead of polling the decision endpoint.
A session overview in the Didit Business Console showing the session status and its warnings.
A session overview in the Business Console. Warnings from the lookup are attached to the session, not just to the API response.

Test it in the sandbox

Sandbox testing is free and unlimited on every plan, so you can build the whole error-handling path before a single rupee of production traffic. Sandbox applications also accept a sandbox_scenario slug from GET /v1/sandbox/scenarios/, which expands a bundled set of magic values onto the session so it reproduces a specific outcome. That parameter is rejected with 400 on live applications, which is the point.

Expected success on a good request looks like this: HTTP 200, a request_id, database_validation.match_type of full_match, the matched fields listed per service, and an empty or informational warnings array. On the workflow route the session status lands on Approved when your partial-match and no-match actions are configured that way. Read the decision payload, not just the HTTP code, because a readable but problematic result can still return 200.

Error cases you will actually hit, and the fix
SymptomCauseFix
HTTP 400, service not eligibleThe service id you passed does not run for issuing_state=INDDrop services to run the country default, or pass a service id that exists for India
HTTP 400, missing fieldA field the country asks for was not sentSend the exact field set for India from the per-country table
HTTP 400, consentThe service is flagged requires_consent=trueSend consent=true and keep a record of the consent you collected
HTTP 502 with validation_errors[]Every selected upstream service failedThe request is not billed and a COULD_NOT_PERFORM_DATABASE_VALIDATION log is written. Retry later or fall back to document capture
match_type of no_matchThe record is not in the registryTreat as a synthetic identity per your policy, not as a transient error
match_type of partial_matchSome fields match and others do not, for example the date of birth matches and the name does notRoute to manual review instead of an automatic decline
HTTP 401Invalid or expired API keyCopy a fresh key from the console
HTTP 403 on the decision callThe key lacks read:sessionsUse a key that holds that privilege
HTTP 404 on the decision callSession does not exist or belongs to a different applicationCheck the session id and that you are using the right application's key

Worked cost example

Two ends to account for: what Didit charges per check, and what it costs you to run the integration. Every unit price below is from the live price feed on November 26, 2026.

A full ID check is four published lines that add up: ID document verification $0.15 + passive liveness $0.10 + face match 1:1 $0.05 + device and IP analysis $0.03 = $0.33 per completed check.

Database Validation is the variable line. It is priced per service, not per country, and billed per successful service hit, so your monthly lookup cost is your volume multiplied by the India rate in the per-service pricing table. The overall Database Validation catalog runs from $0.05 per check (Dominican Republic) to $7.00 for the most expensive specialist source, and that range does not establish the India rate. That range shows the spread you are working with, not your number. Read the India row, then multiply.

Take 10,000 verifications a month, where each user goes through the full ID check and one Aadhaar lookup:

  • Full ID check: $0.33 x 10,000 = $3,300.00
  • Aadhaar lookup: 10,000 x the India rate. At the catalog floor of $0.05 the sum would be $500.00; at the catalog ceiling of $7.00 it would be $70,000.00. Both are brackets, not a quote. The published India rate replaces them in the calculation.
  • Both ends together at list price: $3,300.00 + 10,000 x the India rate.
  • On the Scale plan, Didit prices take 10% off: $0.33 x 0.90 = $0.297, so 10,000 checks cost $2,970.00 before the lookup is added. Growth takes 4% off.

Plan credit is used before top-ups. Scale costs $299 a month and carries $350 of monthly credit, Growth costs $99 a month and carries $115, Free carries $10 for organizations that sign up with a work email. Monthly credit does not roll over, and top-ups last 12 months.

The second end, your side: Database Validation carries no monthly minimum, no platform fee and no per-seat billing. You pay for successful queries. Your build cost is one API key, one HTTPS call, and the code that routes match_type into your own decisioning. The workflow orchestrator, the SDKs, reusable KYC and the MCP server are included free.

Running the check from an AI assistant

The Didit MCP server is free and included on every plan, hosted at https://mcp.didit.me/mcp with OAuth sign-in, and the setup page for every client is didit.me/developers/mcp. That is the official route: the assistant calls Didit's tools, and the tools call the same API and the same databases at the same price. Where a client has no documented connector, the documented fallback is the HTTP route above. There is no assistant-only verification path, and the verdict does not change because a model made the call instead of your server.

Walkthrough of connecting Didit to an AI assistant through the MCP server.
Connecting Didit to an AI assistant over MCP. Useful for wiring and for reading results during a build, not a replacement for the API.

Disconnecting

To stop, delete the API key in the Business Console and stop calling POST /v3/database-validation/. If you used the workflow route, remove the DATABASE_VALIDATION feature from the workflow and republish, so live sessions stop running the lookup. On the self-serve plans the commitment is the plan month; Enterprise runs on an annual contract. Nothing in your account keeps querying a registry once the key is gone and the feature is off.

Sources

Next step: open the sandbox at business.didit.me, copy an API key, and send your first POST /v3/database-validation/ call against issuing_state=IND. No sales call, and the sandbox costs nothing while you wire the error paths.

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

Does Didit have an Aadhaar API?

Yes, through Database Validation. You call POST https://verification.didit.me/v3/database-validation/ with issuing_state set to IND and the Aadhaar number in identification_number. Inside a workflow the same check runs as ID Verification non-document lookup against UIDAI. There is no separate Aadhaar endpoint to learn.

How much does an Aadhaar verification cost?

Database Validation is priced per country and billed per successful service hit, with a catalog range from $0.05 to $7.00 per check. The India rate is on the per-service pricing table in the Didit docs, and you should read it before quoting a unit cost. The call carries no monthly minimum, no platform fee and no per-seat billing.

Which field carries the Aadhaar number?

identification_number. Didit maps that one universal field to the national identifier for the country you send, so the same request shape covers CPF, RUT, CURP and DNI. Send issuing_state=IND alongside it and Didit routes the lookup to UIDAI.

What is the difference between full_match, partial_match and no_match?

full_match means the fields you sent match the registry record. partial_match means some fields match and others do not, for example the date of birth matches and the name does not, so it should route to review. no_match means the record is not in the registry and should be treated as a synthetic identity per your policy.

Do I need consent to run an Aadhaar check?

Some services in the catalog are flagged requires_consent=true and answer HTTP 400 unless the request sends consent=true. Check the India service entry before you go live. Keep a record of the consent you collected, since the consent regime differs between a government register and the non-register sources some countries use.

What happens if the registry is unavailable?

If every selected upstream service fails, the call returns HTTP 502 with a validation_errors[] array. That request is not billed, and Didit writes a COULD_NOT_PERFORM_DATABASE_VALIDATION log. Retry later, or fall back to document capture so the user is not stranded.

Is an Aadhaar data match the same as a document check?

No. A lookup carries the assurance tier data_match: the details the user gave matched a record the source holds, and no document was inspected. A document capture step carries the documentary tier. Choose the tier your policy actually requires rather than treating them as interchangeable.

Can I test the Aadhaar integration without spending credit?

Sandbox testing is free and unlimited on every plan. Sandbox applications also accept a sandbox_scenario slug from GET /v1/sandbox/scenarios/ to reproduce a bundled outcome, and that parameter is rejected on live applications. Live registry hits are billed per successful service hit.

Can an AI assistant run the Aadhaar check?

The Didit MCP server is free and included on every plan, hosted at https://mcp.didit.me/mcp with OAuth sign-in. If your client has no documented connector, call the documented HTTP route instead, because the connector does not change the product or the price. Setup instructions for each client are at didit.me/developers/mcp.

How do I revoke access later?

Delete the API key in the Business Console and stop calling the endpoint. If you used the workflow route, remove the DATABASE_VALIDATION feature from the workflow and republish so live sessions stop running the lookup. On self-serve plans the commitment is the plan month, and Enterprise runs on an annual contract.

Can I control which service runs for India?

Yes. Omit services and Didit runs the country's default service only. Pass one or more service ids to choose exactly which services run, and expect multiple usage events when several services answer, because billing is per successful service hit.

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.