Identity Verification API for Healthcare in the United States
Didit's verification API costs $0.33 per completed full ID check. Create a workflow, create a session, send the patient to the hosted flow, then read the decision by webhook or API. HIPAA duties stay with you.

Contents
In this guide
Jump to the part you need.
This guide is for engineering and compliance teams at US healthcare organizations that verify patients, telehealth users or clinical staff through an API. Didit charges $0.33 per completed full ID check from prepaid credit, and sandbox testing is free and unlimited. The caveat: we publish SOC 2 Type 2 and ISO/IEC 27001:2022, but HIPAA duties stay with you, and Illinois, Texas and Colorado add biometric consent rules before a selfie.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Decision | What to use | Price |
|---|---|---|
| Patient-facing check | Session flow with ID Verification, Passive Liveness, Face Match, device and IP analysis | $0.33 per completed full ID check |
| Back-office document read | POST /v3/id-verification/, server to server | $0.20 per call |
| Staff portal login | Biometric Authentication | $0.10 per auth, first 50,000 active users each month free |
| Sanctions or PEP check | AML Screening | $0.20 per check |
| Address evidence | Proof of Address | $0.20 per check |
| Start a check | POST https://verification.didit.me/v3/session/ | Included |
| Read the result | GET /v3/session/{session_id}/decision/ | Included |
| Sandbox testing | Free and unlimited on every plan | $0.00 |
Start free in the sandbox at business.didit.me, no sales call, and check every line on didit.me/pricing. If your team builds with an AI assistant, connect Didit to it through the Didit MCP server.
What you get and the method we recommend
The outcome is a decision with the extracted identity data, the fraud warnings and the review status: a person opens a link, photographs a government ID, takes a selfie, and your system receives that decision and the data behind it. The whole round trip runs on one session object.
For anything a patient or employee touches, use the session flow rather than the standalone upload endpoint. A session runs the checks you configured in one pass: ID document verification, passive liveness, face match 1:1 and device and IP analysis, which is the $0.33 full ID check in the price feed. The standalone POST /v3/id-verification/ endpoint takes document images server to server at $0.20 per call. It suits a back-office document re-check when no person is present. It can also run document liveness when you pass the documented option.
Everything below is documented in our public docs, including the ID Verification overview. There is no separate healthcare endpoint: the workflow type decides whether you get a user session or a business session, and the decision tells you which one you got. It is the same public API used by 4,000+ active companies.
Where the verification API fits in a US healthcare workflow
- Patient portal access. Verify once at account creation, store your own record number as
vendor_data, and gate the portal on the decision rather than on a form the patient filled in. - Telehealth intake. Run the check before the appointment is confirmed, so the person who joins the call matches the record the clinician opens.
- Manual-review routing. Decide before launch what an In Review result does to a patient: hold the booking, allow a limited portal view, or queue a follow-up call. The API returns the status; your rule decides the access.
- Staff and workforce portal login. Biometric Authentication costs $0.10 per auth, and the first 50,000 active users each month are free on every plan.
- Back-office document entry. Send an ID scanned from an intake packet to the standalone endpoint, take the extracted fields, and stop retyping names and dates of birth into your system.
- Address evidence. Add Proof of Address at $0.20 when a state rule or a payer asks for it, instead of collecting a utility bill by email.
What the integration sends, and what counts as PHI
Separate two data sets before you write code. The verification session carries identity data: a government ID image, a selfie, the extracted fields such as name, date of birth, document number and expiry, device and IP signals, and the warning codes. That is verification evidence. Protected health information is the other set: diagnoses, treatment, prescriptions, appointment reasons, insurance detail. We do not ask for any of it, and the integration should not send it.
On create session, the fields that leave your system are workflow_id, vendor_data, callback, language, user_state, and optionally expected_details, metadata, tags, contact_details and a biometric_consent you already collected. Send an internal record number in vendor_data rather than a patient name. metadata is echoed back in responses and webhooks, so treat it as a place for your routing keys, not for anything clinical.
The decision comes back with the document data, the liveness and face match results, the warnings and the review trace. Retention is documented per session: biometric_retention gives the date the live biometric data of that session is deleted, and your plan sets the wider data retention window. Confirm with your counsel whether a business associate agreement is required before sending protected health information. The simplest architecture is to design the flow so you never need to send it.
Prerequisites
- A Didit organization created at business.didit.me. A work email makes the organization eligible for the Free plan's $10 monthly credit, and the sandbox is free on every plan.
- An API key. The sandbox key builds and tests for free; the live key is the one that spends credit.
- A workflow that lists the checks you want.
- An HTTPS return URL on one of your application's allowed domains, or an app deep link.
- A public HTTPS endpoint that accepts your webhook deliveries.
- A decision from your compliance team on who signs off a manual review, and on the data you are allowed to send us.
Step-by-step: add verification to a healthcare flow
- Create the organization and copy the API key. Sign up, create the organization, then open the application settings and copy the key for your environment. Store it as
DIDIT_API_KEY. The sandbox key issues test sessions only. - Create a workflow. A workflow is the list of checks that runs on each person. Send this to
POST https://verification.didit.me/v3/workflows/:
Persist the returnedcurl -X POST https://verification.didit.me/v3/workflows/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workflow_label": "Healthcare patient KYC", "workflow_type": "kyc", "features": [ {"feature": "OCR"}, {"feature": "LIVENESS", "config": {"face_liveness_method": "PASSIVE"}}, {"feature": "FACE_MATCH"} ] }'workflow.id. The same endpoint also acceptsID_VERIFICATIONas the canonical name for the document check. - Create a session. Each patient check is one session. Send this to
POST https://verification.didit.me/v3/session/:
The response containscurl -X POST https://verification.didit.me/v3/session/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workflow_id": "YOUR_WORKFLOW_ID", "vendor_data": "patient-88213", "callback": "https://portal.example.org/verify/return", "language": "en", "user_state": "US-IL" }'session_id,urlandsession_token. - Send the person to the flow. Redirect them to
url, open it in the Web SDK, or mount it in the native SDK. The flow handles the capture and the lighting and framing cues, and if you setuser_stateto a covered state it shows the biometric consent step first.
The hosted flow captures the ID document and detects the type and issuing country, so the patient does not pick a document from a list. 
Passive liveness at $0.10 runs during the selfie, so there is no extra gesture for a patient on a phone with a weak front camera. - Register a webhook destination. Post to
https://verification.didit.me/v3/webhook/destinations/with alabelandurl,subscribed_eventsset tostatus.updated,data.updated,user.status.updatedanduser.data.updated, andwebhook_versionset tov3. Save the returnedsecret_shared_keyas your signing secret. - Handle the event. Verify the
X-Signature-V2header, de-duplicate onevent_id, answer within 5 seconds, and apply the decision to your record. A failed delivery is retried twice, after about 1 and 4 minutes, and then dropped, so the decision call in the next step is your reconciliation path. - Read the decision as the fallback. If a webhook is missed or your handler is down, fetch the result directly:
Branch oncurl https://verification.didit.me/v3/session/SESSION_ID/decision/ \ -H "x-api-key: $DIDIT_API_KEY"session_kindbefore anything else, because the same endpoint returns user and business sessions.
What the decision looks like
The create call returns session_id, url and session_token. The decision call returns one object with the top-level fields session_id, session_kind, status, vendor_data, features, created_at, expires_at, decision_trace, reviews, biometric_retention and the feature arrays. In V3 every feature array is plural: id_verifications[], liveness_checks[], face_matches[], aml_screenings[]. A feature that did not run is absent or null, never a placeholder.
const decision = await (await fetch(url, { headers: { "x-api-key": API_KEY } })).json();
switch (decision.session_kind) {
case "user": return handleUserDecision(decision);
case "business": return handleBusinessDecision(decision);
}
status is one of Approved, Declined, In Review, In Progress, Not Started, Expired, Abandoned, Kyc Expired, Resubmitted or Awaiting User. The extracted document data and the risk codes sit under id_verifications[]: DOCUMENT_EXPIRED, INVALID_MRZ, INCONSISTENT_DATA, DOCUMENT_LIVENESS_FAILED, DUPLICATED_DOCUMENT and the rest of the catalogue.

session_id.Failure cases and how to recover
| What you see | Cause | Recovery |
|---|---|---|
| 403 on verification.didit.me with "You do not have permission to perform this action." | Missing API key, or a key without the privilege the call needs | Send the x-api-key header, and check that the key holds read:sessions for the decision call |
| 401 | Wrong, revoked or expired key | Issue a new key for the environment and redeploy |
| 400 on create session | Invalid workflow_id, or a callback outside your allowed domains | Use the stored workflow UUID, and put the return URL on an allowed origin or use a deep link |
| 403 "You don't have enough credits" | Balance exhausted on the live key | Top up, or turn on auto top-up so live checks do not stop |
| 404 on the decision call | Session does not exist or belongs to a different application | Check you are reading the session with the key that created it |
| Webhook never arrives | Handler slower than 5 seconds, or answering 5xx or 404 | Didit retries twice, after about 1 and 4 minutes, then drops the delivery. Resend it from the destination delivery log, and reconcile with the decision call |
status is Declined with a terminal warning | The document is expired, unreadable or failed its forgery check | Show the first warning to the person and stop the flow rather than looping them |
status is In Review | A check ran but needs a human, or a forgery score could not be computed | Route to your manual-review queue. Never treat In Review as an approval |
Inputs and outputs
| Field | Direction | What it does |
|---|---|---|
workflow_id | Request, required | UUID of the workflow. Its type decides whether you get a user or a business session. |
vendor_data | Request | Your stable identifier for the person. Binds sessions to one entity and powers duplicate detection. |
callback | Request | Where the hosted flow returns the person, with the session ID and status appended. |
expected_details | Request | Name, date of birth, nationality and document type you already hold. Mismatches surface as decision warnings. |
user_state | Request | ISO 3166-2 or US state code. Illinois, Texas or Colorado makes the flow ask for biometric consent before the first face capture. |
biometric_consent | Request | Consent you already collected, as given_at and text_version. The flow does not ask again. |
session_expiration_time | Request | Seconds the link stays valid, between 3600 and 2419200. Omit it to use the workflow setting. |
session_id, url, session_token | Response | Created session handle and the hosted URL to send the person to. |
status, session_kind | Decision | The verdict and which kind of session produced it. Branch on session_kind first. |
id_verifications[] | Decision | One entry per document: extracted fields, MRZ, barcodes, portrait and the warning codes. |
decision_trace | Decision | How the status was reached: who decided, when, and the warning counts. |
reviews | Decision | Manual review activity on the session. A reviewer override also sets status_override. |
Paid steps and where review starts
You pay per completed check, from prepaid credit, and only when a check finishes with a result. On the default workflow the billable lines for one patient are ID document verification $0.15, passive liveness $0.10, face match $0.05 and device and IP analysis $0.03. Anything else you add is its own line: active liveness $0.15, NFC chip reading $0.15, Proof of Address $0.20, AML Screening $0.20, biometric authentication $0.10, custom questionnaires $0.10. Database validation is priced per country and is variable, so we do not quote a number for it here. Every price is on didit.me/pricing.
Manual review is a boundary you set, not one the API sets. An automatic decision lands as Approved or Declined with warnings you can read. When a session returns In Review, a person has to look at it: reviews lists that activity and decision_trace.decided_by tells you whether the status came from automatic, manual or investigator. On the Growth and Scale plans the Investigator agent handles reviews and follow-ups. Decide in advance what an In Review patient can reach, a held booking or a limited portal view, and encode that as your own rule. The API will not make the clinical call for you.
Biometric consent for Illinois, Texas and Colorado
BIPA, CUBI and Colorado law require a notice and an explicit release before a business collects face geometry, whether from a selfie or from the photo on an ID. Didit shows the step and records the answer. You decide whether your user journey meets the biometric laws that apply to your business, and this page is not legal advice: review the implementation with your counsel. The step appears when the workflow captures a face and the application's consent mode says it should. In Auto mode the triggers are a state you declared with user_state, an IP located in a covered state, a US location with no state known, or an identity document issued by a covered state. In Always mode every session that captures a face asks.
The decision records the answer under biometric_consent, with a trigger value and the time it was given, so you hold evidence rather than a screenshot. Native SDKs below 4.10.0 cannot display the step, and the decision then shows BIOMETRIC_CONSENT_UNSUPPORTED_SDK with status pending. If you verify people in those three states in a native app, upgrade the SDK. The full behaviour is documented in biometric consent for BIPA, CUBI and Colorado.
Worked cost example
A telehealth group onboards 12,000 patients a year and runs one full ID check on each of them: 12,000 x $0.33 = $3,960.00. That $0.33 assumes the workflow runs exactly the four components of the full ID check, ID document verification, passive liveness, face match 1:1, and device and IP analysis, and that each one completes with a result. A state prescribing rule forces 10% of them, 1,200 patients, to add Proof of Address: 1,200 x $0.20 = $240.00. It has 400 clinicians logging into the portal each month, which is under the 50,000 free active authentication users, so that line is $0.00. The year totals $3,960.00 + $240.00 = $4,200.00, or $4,200.00 / 12,000 = $0.35 per patient.
On the Growth plan, at 4% off every Didit price, the same volume is 12,000 x $0.3168 = $3,801.60 for the identity checks and 1,200 x $0.192 = $230.40 for the address checks, so $4,032.00 before the $99 monthly fee. For reference, the Free plan's $10 of monthly credit buys about 30 full ID checks at $0.33 each.
If your team builds with an AI assistant
The Didit MCP server is free on every plan and hosted at https://mcp.didit.me/mcp with OAuth sign-in. Your coding agent can use the documented integration prompt and Didit MCP server to assist with integration. The integration prompt takes a coding agent from an empty repository to a working flow with webhook verification. Neither changes the price of a check: the same $0.33 per completed full ID check applies.
Sources
- Didit Quick Start
- Create Session API
- Retrieve Session API
- ID Verification overview
- Biometric consent for BIPA, CUBI and Colorado
- Pricing in the docs
- Security and compliance
- Integration prompt
- Didit pricing page and pricing as JSON, prices checked November 26, 2026
- Didit MCP server, hosted at https://mcp.didit.me/mcp
- All unit prices in this page were read from the live Didit price feed on November 26, 2026.
Next step: create a free organization at business.didit.me, build a workflow with ID Verification and passive liveness, and run your first test session in the sandbox. No sales call is needed to start.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
What is an identity verification API in healthcare?
It is a server-to-server service that checks a government ID, matches a selfie to that document and returns a machine-readable decision. In a US healthcare setting it usually sits in front of patient registration, telehealth intake or staff portal access, so the record you create is tied to a verified person rather than a typed name. Didit returns the result as JSON and pushes the same result to a webhook.
How much does Didit charge per verification?
$0.33 for a completed full ID check, which combines ID document verification, passive liveness, face match and device and IP analysis. You pay per completed check from prepaid credit, so a session abandoned before a result is not billed. Add-ons are separate: AML screening $0.20, Proof of Address $0.20, NFC chip reading $0.15, biometric authentication $0.10.
Is Didit HIPAA compliant?
We publish SOC 2 Type 2 and ISO/IEC 27001:2022, plus GDPR, DORA, MiCA, AMLD6 and eIDAS 2.0. HIPAA is a separate obligation that sits with the covered entity and its business associates. Confirm with your counsel whether a business associate agreement is required before sending protected health information, and keep clinical detail out of the session payload.
Can we verify patients who live in Illinois, Texas or Colorado?
Yes. Didit can show an explicit biometric consent step before the first face capture, which helps collect the required consent, subject to your counsel's review of the applicable law and implementation, and the answer is recorded on the session. Declare the state with user_state at session creation, or let the IP and the issuing state of the ID trigger it in Auto mode. Native SDKs below 4.10.0 cannot display the step, so upgrade if you verify those users in a native app.
How accurate is document verification?
We publish coverage and warning codes rather than an accuracy percentage. ID Verification reads 14,000+ document types across 220+ countries and 54 languages, checks the document for tampering and returns named risk codes such as DOCUMENT_EXPIRED, INVALID_MRZ or DOCUMENT_LIVENESS_FAILED. Inference runs at sub-2-second p99, so a patient sees the result while still in the flow.
What does the patient actually see during the check?
A hosted Didit flow in their browser or your app: document capture with auto-detection of the document type and country, real-time cues on position and lighting, a selfie for liveness, and on request a consent step. Everything is in the language you pass in the language field, or the browser language by default.
Can we use the same API for healthcare employee login?
Yes. Biometric Authentication costs $0.10 per auth and the first 50,000 active users each month are free on every plan, which usually covers a hospital workforce. You pass a reference portrait for the person, or let Didit reuse a face already stored on the vendor_data entity from an earlier approved check.
What happens when a session returns In Review?
It means a human decision is needed, so it must never be treated as an approval. Route the session to your manual-review queue, where reviews shows the review activity and decision_trace shows whether the status was set automatically, manually or by an investigator. Decide ahead of time whether that patient waits or gets limited access.
Can we test without spending money?
Yes. Sandbox testing is free and unlimited on every plan, and an organization signed up with a work email gets $10 of credit a month on the Free plan. Sandbox applications can also arm scenario slugs that reproduce a specific outcome, which is useful for testing your Declined and In Review branches without a real failed document.
Which endpoint returns the final result, and what is in it?
GET https://verification.didit.me/v3/session/{session_id}/decision/ returns the full decision: status, session_kind, and the plural feature arrays id_verifications[], liveness_checks[], face_matches[] and aml_screenings[]. Branch on session_kind first, because the same endpoint serves user and business sessions. The key needs the read:sessions privilege, otherwise the call returns 403.
How long does a session link stay valid?
By default the link follows the workflow's session expiration setting. You can override it per session with session_expiration_time, in whole seconds between 3600 and 2419200. A value outside that range returns 400, so cap it at what your intake process actually allows.
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.
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


