वेब ऐप्स के लिए Didit JavaScript SDK, एक मिनट के एम्बेड के लिए InContext iframe, या क्रॉस-डिवाइस फ़्लो के लिए Redirect का उपयोग करें। पूर्ण KYC जाँच का शुल्क $0.33 है; निर्णय signed webhook में आता है।
Didit का web integration उन टीमों के लिए उपयुक्त है जो पहले से web app चलाती हैं और verification चरण अपने ही product के अंदर चाहती हैं। पूर्ण KYC जाँच का शुल्क $0.33 है: ID दस्तावेज़ $0.15, passive liveness $0.10, face match $0.05, और device व IP analysis $0.03. सबसे ज़रूरी बात: browser callback आपका authoritative record नहीं है; signed webhook है।
कीमतें 26 नवंबर 2026 को लाइव Didit price feed के विरुद्ध जाँची गईं।
तीन web तरीके एक नज़र में
| तरीका | सेटअप समय | बैकएंड आवश्यक | आपके domain पर रहता है | कब उपयोग करें |
|---|---|---|---|---|
| JavaScript SDK | 3 मिनट | वैकल्पिक | हाँ | एक production web app जिसे पूरा नियंत्रण चाहिए – React, Vue, Angular, Next.js, Nuxt, Svelte या vanilla JS में |
| InContext iframe | 1 मिनट से कम | वैकल्पिक | हाँ | आपको आज ही embedded flow चाहिए, UniLink के साथ और बिना backend |
| Redirect | 5 मिनट | हाँ | नहीं | अधिकतम browser compatibility, cross-device completion, या जब iframe में camera access समस्या हो |
sandbox में business.didit.me पर बिना sales call के मुफ़्त शुरू करें। डेवलपर्स के लिए, Didit MCP server के ज़रिए Didit को AI assistant से जोड़ें। यह गाइड जिस product को कवर करती है वह User Verification है, और हर unit price didit.me/pricing पर प्रकाशित है।
उस तालिका को केवल browser experience के रूप में पढ़ें। तीनों तरीके अंतिम, signed परिणाम webhooks के ज़रिए देते हैं, इसलिए तुलना यह बताती है कि flow कहाँ render होता है, यह नहीं कि आपको outcome कैसे मिलता है। जब आपको अपने ही page में real-time events के साथ modal या inline नियंत्रण चाहिए तो iframe की जगह SDK चुनें; जब एक embedded element काफ़ी हो तो iframe चुनें।
आप वास्तव में क्या बना रहे हैं
तीन गतिशील हिस्से। एक workflow तय करता है कि कौन-सी जाँचें चलेंगी। एक session उस workflow से गुज़रने वाला एक व्यक्ति है। एक webhook निर्णय आपके server तक पहुँचाता है। SDK या iframe केवल flow render करते हैं और बताते हैं कि व्यक्ति ने browser में कब पूरा किया।
उस browser event को verification परिणाम न मानें। completion handler किसी status के साथ fire होता है, लेकिन आधिकारिक निर्णय वह payload है जो आपके webhook secret से signed होता है, या फिर GET /v3/session/{session_id}/decision/ का नया call है।
पूर्वापेक्षाएँ
- एक Didit organization। work email से sign up करें: Free plan पहले ऐसे organization के लिए हर महीने $10.00 credit जोड़ता है जो किसी company domain के eligible work email से बनाया गया हो – यह $0.33 पर 30 पूर्ण KYC जाँचों के बराबर है।
- एक प्रकाशित workflow, KYC या KYB। workflow type session का प्रकार तय करता है; KYB के लिए अलग endpoint नहीं है।
- आपके द्वारा उपयोग किए जाने वाले privileges वाली API key। decision endpoint को
read:sessionsचाहिए। - आपके application के allowed domains में से किसी एक पर callback URL, अगर आप allowed domains लागू करते हैं। अन्यथा session creation
callbackपर 400 के साथ विफल होगा। - एक webhook destination, और उसकी
secret_shared_keyसंग्रहीत करने की जगह।
चरण: workflow से signed decision तक
- संगठन और workflow बनाएँ। business.didit.me पर साइन इन करें, organization बनाएँ, Workflows खोलें और New workflow पर क्लिक करें। KYC flow के लिए Verifying users चुनें, template से या खाली शुरू करें, फिर publish करें। workflow UUID कॉपी करें।
- या API से workflow बनाएँ। वही object, कोई console क्लिक नहीं।
curl -X POST https://verification.didit.me/v3/workflows/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workflow_label": "Standard KYC", "workflow_type": "kyc", "features": [ {"feature": "OCR"}, {"feature": "LIVENESS", "config": {"face_liveness_method": "PASSIVE"}}, {"feature": "FACE_MATCH"}, {"feature": "AML"} ] }'workflow.idसहेजें। - session बनाएँ। एक call, एक व्यक्ति। पहले दोनों variables export करें।
export DIDIT_API_KEY="your-sandbox-api-key" export WORKFLOW_ID="your-workflow-uuid" 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_ID\", \"vendor_data\": \"user-42\", \"callback\": \"https://myapp.com/kyc/return\"}" - response पढ़ें। इसमें
session_id,urlऔरsession_tokenमिलते हैं। व्यक्ति कोurlपर भेजें, उसे SDK में खोलें, या frame करें। session"Not Started"के रूप में शुरू होता है और लिंक खुलने पर"In Progress"में चला जाता है। - JavaScript SDK mount करें।
@didit-protocol/sdk-webinstall करें और जोurlमिला था उसे pass करें।
React, Vue, Angular, Next.js, Nuxt, Svelte और vanilla उदाहरण sdk-web-examples में मौजूद हैं, और पूरा Next.js demo didit-full-demo पर है।import { DiditSdk } from '@didit-protocol/sdk-web'; DiditSdk.shared.onComplete = (result) => { switch (result.type) { case 'completed': console.log('Session ID:', result.session?.sessionId); console.log('Status:', result.session?.status); break; case 'cancelled': console.log('User cancelled verification'); break; case 'failed': console.error('Verification failed:', result.error?.message); break; } }; DiditSdk.shared.startVerification({ url: 'https://verify.didit.me/session/3FaJ9wLqX2Mz' }); - या iframe को 1 मिनट से कम में embed करें। UniLink को backend की ज़रूरत नहीं होती।
allowattribute वैकल्पिक नहीं है – camera और microphone access ही liveness के लिए ज़रूरी है।
backend और API session के साथ, UniLink source की जगह session का<iframe src="https://verify.didit.me/u/YOUR_WORKFLOW_ID_BASE64" style="width: 100%; height: 700px; border: none;" allow="camera; microphone; geolocation; clipboard-write; fullscreen; autoplay; encrypted-media; digital-credentials-get" ></iframe>urlडालें। iframe उदाहरण iframe-example में हैं। - webhook destination register करें। decision यहीं पहुँचता है।
लौटाई गईcurl -X POST https://verification.didit.me/v3/webhook/destinations/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "label": "Production", "url": "https://myapp.com/api/webhooks/didit", "subscribed_events": ["status.updated", "data.updated"], "webhook_version": "v3" }'secret_shared_keyकोDIDIT_WEBHOOK_SECRETके रूप में सहेजें। आप इसेGET /v3/webhook/destinations/{destination_uuid}/से दोबारा पढ़ सकते हैं। wildcard नहीं है, इसलिए जिस भी event family को चाहें उसकी सदस्यता लें। - signature verify करें, फिर status पर कार्रवाई करें। JSON parse करने से पहले raw body पढ़ें, जाँचें कि
X-Timestampअभी से 300 सेकंड के भीतर है,X-Signature-V2के लिए canonical JSON पर HMAC-SHA256 फिर से निकालें, और constant time में उस header से और मौजूद होने पर उसके-Previousसमकक्ष से तुलना करें। Didit किसी destination का signing secret rotate करने के बाद केवल 24 घंटे तक-Previousheaders भेजता है, और किसी एक पर match स्वीकार करने से नया secret deploy करते समय verification काम करता रहता है। फिरevent_idपर de-duplicate करें, 5 सेकंड के भीतर 2xx लौटाएँ, औरstatusपर switch करें:"Approved","Declined","In Review","Abandoned","Expired","Resubmitted","Kyc Expired". Status strings case sensitive हैं और उनमें spaces होते हैं। - decision endpoint को fallback के रूप में रखें। अगर कोई webhook छूट जाए,
GET /v3/session/{session_id}/decision/वही data लौटाता है।session_kindपर branch करें –"user"या"business"– और plural arrays पढ़ें:id_verifications[],liveness_checks[],face_matches[],aml_screenings[]. जो feature नहीं चला, वह absent या null होता है, कभी placeholder नहीं।

अपेक्षित output
Session creation JSON लौटाता है जिसमें session_id, url और session_token होते हैं, साथ में आपके भेजे गए कोई भी metadata और tags। webhook envelope में event_id, session_id, status, webhook_type, vendor_data होते हैं, और decision object केवल तब जब status Approved, Declined, In Review या Abandoned हो।
{
"event_id": "uuid",
"session_id": "uuid",
"status": "Approved",
"webhook_type": "status.updated",
"vendor_data": "user-42",
"decision": { }
}

विफलता के मामले और recovery
| लक्षण | कारण | समाधान |
|---|---|---|
verification.didit.me पर 403 {"detail": "You do not have permission to perform this action."} | key गायब है, या उस endpoint के लिए privilege नहीं है, जैसे decision endpoint पर read:sessions | आपके आवश्यक scope वाली key बनाएँ और redeploy करें |
| 401 | अमान्य, revoked या expired API key | key rotate करें, environment variable अपडेट करें |
| create call पर 400 | अमान्य workflow_id | workflow page से workflow UUID फिर से कॉपी करें और call दोबारा भेजें |
callback पर 400 | callback origin application के allowed domains में नहीं है | origin जोड़ें, या custom scheme deep link इस्तेमाल करें, जो हमेशा स्वीकार किया जाता है |
| decision endpoint पर 404 | session मौजूद नहीं है | जाँचें कि आपने create response से session_id संग्रहीत किया है |
| Handler 5 सेकंड से धीमा, या 5xx या 404 लौटा रहा है | webhook delivery का समय समाप्त | Didit दो बार retry करता है, लगभग 1 और लगभग 4 मिनट बाद, फिर delivery drop कर देता है। destination delivery log से resend करें और decision endpoint से reconcile करें |
| Iframe में camera नहीं दिख रहा | गायब या अधूरा allow attribute | पूरी permission list जोड़ें, फिर उसी browser में retest करें |
Session "Expired" या "Abandoned" | लिंक कभी खोला ही नहीं गया, या व्यक्ति ने शुरू किया और window में पूरा नहीं किया | इसे असफल session मानें और नए लिंक के साथ नया session बनाएँ। आप एक session के लिए session_expiration_time 3600 से 2419200 सेकंड के बीच सेट भी कर सकते हैं |
Session "In Review" में रुका है | automated checks ने warnings उठाईं जिनके लिए व्यक्ति चाहिए | Console में reviewer approve, decline या resubmission का अनुरोध करता है |
Inputs और outputs
| फ़ील्ड | दिशा | आवश्यक | यह क्या करता है |
|---|---|---|---|
workflow_id | Input | हाँ | Workflow UUID। इसका type तय करता है कि आपको user session मिलेगा या business session |
vendor_data | Input | अनुशंसित | व्यक्ति के लिए आपका स्थिर identifier, duplicate detection के लिए उपयोग होता है |
callback | Input | वैकल्पिक | hosted flow व्यक्ति को कहाँ लौटाता है, साथ में verificationSessionId और status जुड़े होते हैं |
language, metadata, tags | Input | वैकल्पिक | UI language, echo किया गया JSON, और console में filtering के लिए 10 तक tags |
session_expiration_time | Input | वैकल्पिक | केवल इस session के लिए workflow expiry override करता है, 3600 से 2419200 सेकंड |
session_id | Output | हमेशा | decision call और आपके database record के लिए आपकी key |
url | Output | हमेशा | Hosted flow URL। SDK, iframe या redirect में जाता है |
session_token | Output | हमेशा | session से जुड़ा token |
status, decision | Output | webhook पर | अंतिम status और पूरा decision object, आपके destination secret से signed |
सशुल्क चरण और review सीमाएँ
Didit 4,000+ कंपनियों के लिए identity और fraud जाँचें एक सार्वजनिक price list पर चलाता है। SDKs, workflow orchestrator, MCP server और sandbox testing मुफ़्त हैं। आप prepaid credit से प्रति पूर्ण जाँच भुगतान करते हैं:
- ID document verification $0.15
- Passive liveness $0.10, active liveness $0.15
- Face match 1:1 $0.05, face search 1:N $0.05
- Device और IP analysis $0.03
- Full KYC check में ID document verification, passive liveness, face match 1:1 और device व IP analysis शामिल हैं, $0.33 पर
- AML screening $0.20, ongoing AML monitoring $0.07 प्रति व्यक्ति प्रति वर्ष
- NFC chip reading add-on के रूप में $0.15, white label flow $0.10, proof of address $0.20
- Phone verification प्रति code $0.02 से शुरू, साथ में देश और channel के लिए carrier price
review boundary "In Review" status है। Automated checks अपने आप Approved या Declined तक पहुँचते हैं। जब warnings के लिए किसी व्यक्ति की ज़रूरत होती है, session Console में reviewer का इंतज़ार करता है, और तभी Approved, Declined या Resubmitted में जाता है। आपका integration browser callback पर या "In Progress" पर access approve नहीं करना चाहिए। access केवल "Approved" पर दें, और किसी और status पर नहीं।
लागत का उदाहरण
एक signup flow जिसमें हर महीने 6,000 signups हैं, जिनमें 4,500 लोग पूर्ण KYC जाँच पूरी करते हैं और उनमें से 1,200 को AML screening भी मिलती है।
- 4,500 पूर्ण KYC जाँचें $0.33 पर = $1,485.00
- 1,200 AML screenings $0.20 पर = $240.00
- list price पर मासिक कुल = $1,485.00 + $240.00 = $1,725.00
Scale plan पर, Didit कीमतों पर 10% छूट के साथ: 4,500 x $0.297 = $1,336.50, और 1,200 x $0.18 = $216.00, यानी $1,552.50 का usage। Free plan का $10.00 मासिक credit $0.33 पर 30 जाँचों को कवर करता है। Plan credit हर महीने reset होता है और roll over नहीं होता, और top-ups 12 महीने तक चलते हैं।

अक्सर पूछे जाने वाले प्रश्न
web app में Didit ID verification जोड़ने में कितना समय लगता है?
InContext iframe में 1 मिनट से कम लगता है क्योंकि UniLink को backend की ज़रूरत नहीं होती। JavaScript SDK में पहला काम करने वाला flow बनाने में लगभग 3 मिनट लगते हैं, और Redirect तरीके में लगभग 5। अपनी ओर के handler के लिए वास्तविक समय रखें: raw body पढ़ें, HMAC verify करें, फिर status string पर switch करें।
क्या Didit web SDK उपयोग करने के लिए backend चाहिए?
UniLink वाले iframe के लिए नहीं, और JavaScript SDK के लिए भी नहीं। backend केवल तब चाहिए जब आप API के ज़रिए sessions बनाना और अपने server पर decisions प्राप्त करना चाहते हैं। Redirect तरीके में session call और callback के लिए backend आवश्यक है।
JavaScript SDK और InContext iframe में क्या अंतर है?
SDK real-time event callbacks, modal और inline modes, और React, Vue, Angular, Next.js, Nuxt, Svelte या vanilla JS में पूरा programmatic control देता है। iframe एक single HTML element है जिसमें postMessage events और सीमित control होता है। दोनों व्यक्ति को आपके domain पर रखते हैं, और दोनों अंतिम decision browser के बजाय webhooks के ज़रिए देते हैं।
मुझे कैसे पता चलेगा कि verification वास्तव में पास हुआ?
अपने destination secret से signed webhook पढ़ें, या GET /v3/session/{session_id}/decision/ पर call करें। status बिल्कुल "Approved" string होना चाहिए। browser completion event केवल उस page से एक signal है जिसे आप नियंत्रित नहीं करते।
Didit KYC जाँच का शुल्क क्या है?
पूर्ण KYC जाँच $0.33 है, जिसमें ID document verification $0.15, passive liveness $0.10, face match $0.05 और device व IP analysis $0.03 शामिल हैं। $0.20 पर AML screening जोड़ने से compliance bundle $0.53 हो जाता है। आप prepaid credit से प्रति पूर्ण जाँच भुगतान करते हैं, और billing पहले मासिक plan credit से, फिर top-ups से चलता है।
क्या मैं बिना भुगतान या असली documents के integration test कर सकता हूँ?
हाँ। sandbox हर plan पर मुफ़्त है और scenarios व magic values से outcomes दोहराने देता है, जिसमें AML hit पर decline भी शामिल है, ताकि आप अपने handler की हर branch test कर सकें। Free plan पहले ऐसे organization के लिए हर महीने $10.00 credit भी जोड़ता है जो company domain के eligible work email से बनाया गया हो।
अगर व्यक्ति flow बंद कर देता है या session expire हो जाता है तो क्या होता है?
खुला गया लेकिन पूरा न हुआ session "Abandoned" में जाता है। कभी न खोला गया session "Expired" में जाता है। दोनों में से कोई status approved नहीं है, इसलिए इसे असफल session मानें और जब उपयुक्त हो नया session बनाएँ। आप प्रति session session_expiration_time 3600 से 2419200 सेकंड तक सेट कर सकते हैं।
अलग device पर पूरा होने वाले verification को मैं कैसे संभालूँ?
Redirect तरीका इस्तेमाल करें, या SDK इस्तेमाल करें और व्यक्ति को लिंक कहीं और खोलने दें। Sessions design से ही cross-device हैं, और callback_method को "both" सेट किया जा सकता है ताकि return शुरू करने वाले या पूरा करने वाले, किसी भी device से काम करे। व्यक्ति ने किस device का उपयोग किया, इससे कोई फ़र्क नहीं पड़ता – webhook हमेशा fire होता है।
क्या मैं users को अपने ही domain पर अपनी branding के साथ रख सकता हूँ?
JavaScript SDK और InContext iframe के लिए हाँ, क्योंकि दोनों आपके page के अंदर render होते हैं और comparison table में white-label के रूप में चिह्नित हैं। hosted flow का पूरा white-label अलग module है, $0.10 प्रति जाँच। Redirect तरीका व्यक्ति को Didit-hosted page पर भेजता है।
callback पर 400 के साथ session creation क्यों विफल होता है?
क्योंकि आपका application allowed domains लागू करता है और callback origin उस list में नहीं है। जाँच scheme, host और port की तुलना करती है। origin जोड़ें, या app deep link के लिए custom URL scheme इस्तेमाल करें, जो हमेशा स्वीकार किया जाता है।
क्या rotate किया गया webhook secret signature verification तोड़ देता है?
नहीं, अगर आपका handler दोनों headers स्वीकार करता है। किसी destination का signing secret rotate करने के 24 घंटे बाद तक Didit X-Signature-V2 के साथ X-Signature-V2-Previous भेजता है, जो बदले गए secret से बना होता है। constant time में तुलना करें और किसी एक पर match स्वीकारें, फिर window बंद होने पर पुराना secret अपने configuration से हटा दें।
स्रोत
- Didit docs: Web identity verification SDKs
- Didit docs: JavaScript SDK
- Didit docs: InContext iframe
- Didit docs: Redirect तरीका
- Didit docs: Quick start
- Didit docs: Create Session API
- Didit docs: Retrieve Session decision
- Didit docs: Webhooks और HMAC signing
- Didit docs: Verification statuses
- Didit docs: Sandbox test data
- Didit User Verification product page
- Didit pricing page और live price feed, 26 नवंबर 2026 को पढ़ा गया
- Didit MCP server
- Didit SDK web examples repository
- Didit iframe example repository
business.didit.me पर मुफ़्त organization बनाएँ, template से KYC workflow बनाएँ, और sandbox में अपना पहला session चलाएँ। sandbox testing मुफ़्त और असीमित है, और आप बिना sales call के शुरू करते हैं।




