> ## Documentation Index
> Fetch the complete documentation index at: https://docs.didit.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Didit SDK और इंटीग्रेशन: वेब, मोबाइल और Zapier

> Didit KYC को वेब, मोबाइल और बैकएंड ऐप्स में इंटीग्रेट करें: वेब और नेटिव SDK, Python, Node.js, Go, Java, PHP, Ruby और .NET के लिए सर्वर SDK, तथा प्लगइन।

> [!NOTE]
>
> अंतिम उपयोगकर्ता साइन-इन के लिए, [प्रमाणीकरण](https://docs.didit.me/hi/authentication/overview.md) देखें। सत्यापन, मॉनिटरिंग और साइन-इन को एक साथ जोड़ने के लिए [साझा इंटीग्रेशन प्रॉम्प्ट](https://docs.didit.me/hi/integration/integration-prompt.md) का उपयोग करें। प्रमाणीकरण SDK की उपलब्धता नीचे दिए गए सत्यापन SDK संस्करणों से अलग है।

AI Agent Integration Prompt
        प्रॉम्प्ट को क्लिपबोर्ड पर कॉपी करें



      
      

\<pre>

\``I want to integrate Didit identity verification into my application. Analyze my project and recommend the best integration approach.

\## My Project Context
\[Describe your stack: framework, language, web vs mobile, etc.]

\## Two Integration Approaches

Didit offers two main integration approaches. Choose based on your use case:

\### Approach 1: SDK Integration via Sessions (RECOMMENDED)
Best for: User-facing verification flows (KYC onboarding, age verification, identity checks).
How it works: Your backend creates a session, your frontend presents a verification UI using an SDK, the user completes verification, and your backend receives results via webhook.
Why recommended: Didit-hosted verification flows are A/B tested and optimized for the highest completion rates, fastest speed, and best security. The SDKs handle camera permissions, NFC, liveness detection, document capture, and all edge cases out of the box.

\### Approach 2: Standalone API (Direct REST Calls)
Best for: Server-to-server operations, batch processing, custom verification pipelines, or when you want full control over the verification UI.
How it works: Your backend calls Didit APIs directly for individual checks (ID verification, AML screening, liveness, face matching, age estimation, phone/email verification, proof of address, etc.).
When to use: When you already have your own capture UI, when you're doing backend-only batch processing, or when you need to compose individual verification steps into a custom pipeline.
Docs: Each standalone API has its own documentation under [Standalone APIs](https://docs.didit.me/standalone-apis/id-verification.md).

\## SDK Availability — All SDKs Are Available

\### For Web Apps
1\. **JavaScript SDK** (@didit-protocol/sdk-web) — RECOMMENDED for web. Works with React, Vue, Angular, Next.js, Nuxt, Svelte, and vanilla JS. Modal and inline/embedded modes. Full TypeScript support. Install: npm install @didit-protocol/sdk-web
2\. InContext Iframe — Embed verification in your page with <iframe>. Simplest setup, no npm needed. Good for quick prototypes.
3\. Redirect — Redirect user to Didit-hosted page, they return via callback URL. Best for cross-device flows or when iframe camera access is problematic.
4\. WordPress/WooCommerce Plugin — For WordPress sites. No-code setup.
5\. Shopify Plugin — For Shopify stores. No-code setup.
6\. Salesforce — Salesforce-side integration. See /integration/web-sdks/salesforce.

\### For Mobile Apps (ALWAYS prefer native SDKs over WebView)
1\. **iOS Native SDK** — RECOMMENDED for iOS. Swift/SwiftUI/UIKit. iOS 13.0+ (NFC requires iOS 15.0+). Best UX, NFC passport/ID reading, optimized camera, 54 languages. SPM: https://github.com/didit-protocol/sdk-ios. CocoaPods: pod 'DiditSDK'
2\. **Android Native SDK** — RECOMMENDED for Android. Kotlin/Jetpack Compose. minSdk 23 (Android 6.0+); ML auto-detection on API 24+. Best UX, NFC, optimized camera, 54 languages. Maven: me.didit:didit-sdk (via https://raw.githubusercontent.com/didit-protocol/sdk-android/main/repository)
3\. **React Native SDK** — RECOMMENDED for React Native. RN 0.76+ (New Architecture), iOS 13.0+ / Android API 24+. Cross-platform TypeScript API wrapping native iOS and Android SDKs. NFC support, Expo config plugin (development build required). Install: npm install @didit-protocol/sdk-react-native
4\. **Flutter SDK** — RECOMMENDED for Flutter. Flutter 3.3+, Dart 3.11+, iOS 13.0+ / Android API 23+. Cross-platform Dart API wrapping native iOS and Android SDKs. NFC support. pub.dev: didit_sdk
5\. WebView (FALLBACK ONLY) — Only use if no native SDK is available for your platform. Loses NFC, camera optimization, and biometric integration.

\### For Backend/Server
1\. **Server SDKs** — RECOMMENDED for backend code. Official typed libraries for the Didit server APIs, with webhook signature verification built in. Python: pip install didit-sdk. Node.js/TypeScript: npm install @didit-protocol/sdk-node. Go: go get github.com/didit-protocol/sdk-go. Java/Kotlin: me.didit:didit-java. PHP: composer require didit-protocol/sdk-php guzzlehttp/guzzle. Ruby: gem install didit-sdk. .NET: dotnet add package Didit. Each reads DIDIT_API_KEY. Docs: https://docs.didit.me/integration/server-sdks/overview
2\. REST API — Server-to-server, for languages without a server SDK. Create sessions, retrieve results, manage users, call standalone APIs.
3\. Webhooks — Receive real-time verification results asynchronously.
4\. Zapier — No-code automation for verification workflows.

\## SDK Session Integration Architecture (Recommended Flow)

\### Step 1: Backend creates a session
With a server SDK: client.sessions.create(workflow_id=..., vendor_data=..., callback=...) (same method in every language, in its own case). The raw request:
POST https://verification.didit.me/v3/session/
Headers: { "x-api-key": DIDIT_API_KEY, "Content-Type": "application/json" }
Body: {
"workflow_id": DIDIT_WORKFLOW_ID,
"callback": "https://myapp.com/done",
"vendor_data": "internal-user-id"
}
Response: {
"session_id": "uuid",
"session_token": "jwt",
"verification_url": "https://verify.didit.me/...",
"status": "Not Started"
}

\### Step 2: Present verification to user (choose one)
\- Web JS SDK: DiditSdk.shared.startVerification({ url: verification_url })
\- Iframe: embed verification_url in <iframe>
\- Redirect: window.location.href = verification_url
\- iOS/Android/RN/Flutter native SDK: DiditSdk.startVerification(token: session_token)

\### Step 3: Receive results via webhook
Your backend receives POST with:
\{
"session_id": "uuid",
"status": "Approved" | "Declined" | "In Review" | "In Progress" | "Abandoned",
"vendor_data": "internal-user-id",
"decision": { ... }
}
With a server SDK, webhooks.verify(raw_body, headers, WEBHOOK_SECRET) does all of the checks below and returns a typed event. Without one, verify the webhook signature (HMAC-SHA256, lowercase hex). Pick one header:
\- X-Signature-V2 = HMAC(WEBHOOK_SECRET, canonical_json) — recommended; canonical_json is the body re-serialized with sorted keys, compact separators, and unescaped Unicode (survives middleware re-encoding).
\- X-Signature = HMAC(WEBHOOK_SECRET, raw_body) — simplest, but only if you read the exact raw bytes before any parser touches them.
Also reject if abs(now - X-Timestamp) > 300 and use a constant-time compare. Full scheme: /integration/webhooks

\### Step 4: Update your database
\- "Approved" → user.verified = true, store decision data
\- "Declined" → user.verification_status = "declined", log warnings
\- "In Review" → user.verification_status = "pending_review"
\- "Abandoned" → send reminder to user
\- "Expired" → create new session

\## Decision Data Model (from webhook or GET /v3/session/{id}/decision/)
Every per-feature result is a PLURAL ARRAY (one entry per workflow node). Never code against a singular key like `nfc` or `id_verification`.
\{
"session_id": "uuid",
"session_kind": "KYC",
"status": "Approved",
"id_verifications":    [{ "node_id": "feature_ocr", "status": "Approved", "first_name": "John", "last_name": "Doe", "document_type": "Passport" }],
"nfc_verifications":   [{ "node_id": "feature_nfc", "status": "Approved" }],
"liveness_checks":     [{ "node_id": "feature_liveness", "status": "Approved", "score": 0.99, "method": "passive" }],
"face_matches":        [{ "node_id": "feature_face_match", "status": "Approved", "score": 95 }],
"aml_screenings":      [{ "node_id": "feature_aml", "status": "Approved", "total_hits": 0, "hits": [] }],
"phone_verifications": [{ "node_id": "feature_phone", "status": "Approved", "full_number": "+14155552671", "is_disposable": false }],
"email_verifications": [{ "node_id": "feature_email", "status": "Approved", "email": "alex.sample@example.com", "is_breached": false }],
"ip_analyses":         [{ "node_id": "feature_ip",    "status": "Approved" }]
}

\## Choosing the Right Approach

\| Question | → Use SDK Sessions | → Use Standalone API |
\|----------|-------------------|---------------------|
\| User-facing verification? | ✅ Yes | For custom capture UI only |
\| Need highest completion rate? | ✅ Yes (A/B tested flows) | You manage UX yourself |
\| Need NFC passport reading? | ✅ Yes (native SDKs) | Not available |
\| Batch/backend processing? | Not ideal | ✅ Yes |
\| Custom verification pipeline? | Limited to workflows | ✅ Full flexibility |
\| Fastest integration? | ✅ Minutes with UniLink | Requires more setup |

\## Rate Limits
\- POST /v3/session/: 600 session creations per minute per application (scope: session-v2-create). Applies to every application — there is no separate free-tier limit on V3 today.
\- GET endpoints: 300 requests per minute per application (generic-get).
\- Write endpoints (POST/PATCH/DELETE): 300 per minute per application (generic-write).
\- Transaction creates and event ingestion (POST /v3/transactions/, POST /v3/events/, POST /v3/events/batch/): 600 per minute per application (ingest-write), instead of the generic write budget.
\- 429 responses include X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (epoch seconds), and Retry-After. See /integration/rate-limiting.

\## Environment Variables Needed
\- DIDIT_API_KEY — from Didit Console > API & Webhooks
\- DIDIT_WEBHOOK_SECRET — from Didit Console > API & Webhooks
\- DIDIT_WORKFLOW_ID — from Didit Console > Workflows

\## AI Agent Skills (for Cursor, Claude Code, etc.)
Install pre-built skills: npx clawhub@latest install didit-sessions
GitHub: https://github.com/didit-protocol/skills

\## Docs
\- Quick Start: https://docs.didit.me/getting-started/quick-start
\- API Full Flow: https://docs.didit.me/integration/api-full-flow
\- Webhooks: https://docs.didit.me/integration/webhooks
\- Standalone APIs: https://docs.didit.me/standalone-apis/
\- API Reference: https://docs.didit.me/api-reference/overview

Based on my project, please:
1\. Recommend the best integration approach (SDK sessions vs standalone API) and the best method for my platform
2\. Create the backend endpoint to create sessions (or standalone API calls)
3\. Create the frontend component/view to present verification (if SDK approach)
4\. Create the webhook endpoint to receive results
5\. Add database schema updates to track verification status``

\</pre>



      
      

यहाँ पेस्ट करें

अपने प्लेटफ़ॉर्म और उपयोग के मामले के आधार पर चुनें कि आप Didit को कैसे इंटीग्रेट करना चाहते हैं।> [!NOTE]
>
> ### सुझाया गया: सत्र के माध्यम से SDK इंटीग्रेशन
>
> उपयोगकर्ता-मुखी सत्यापन (KYC ऑनबोर्डिंग, आयु सत्यापन, पहचान जाँच) के लिए हम **होस्टेड सत्र के माध्यम से SDK इंटीग्रेशन** की सलाह देते हैं। सत्यापन फ़्लो A/B टेस्ट किए गए हैं और उच्चतम पूर्णता दर, सबसे तेज़ गति और सर्वोत्तम सुरक्षा के लिए अनुकूलित हैं। सभी SDK, यानी वेब, iOS, Android, React Native और Flutter, **अभी उपलब्ध** हैं।
>
> अपने बैकएंड से, Python, Node.js, Go, Java, PHP, Ruby या .NET के लिए [सर्वर SDK](https://docs.didit.me/hi/integration/server-sdks/overview.md) का उपयोग करके वे सत्र बनाएं, निर्णय पढ़ें और webhook सत्यापित करें। सर्वर-से-सर्वर ऑपरेशन (बैच प्रोसेसिंग, कस्टम पाइपलाइन) के लिए उन्हीं SDK के माध्यम से **स्टैंडअलोन APIs** कॉल करें। अलग-अलग सत्यापन endpoints के लिए [स्टैंडअलोन API दस्तावेज़](https://docs.didit.me/hi/standalone-apis/id-verification.md) देखें।> [!WARNING]
>
> अगर आप अपने प्रोडक्ट से Didit सत्र लॉन्च करते हैं, तब भी नोटिस और सहमति से जुड़ी नियंत्रक-पक्ष की ज़िम्मेदारी आपकी ही रहती है। उपयोगकर्ता सत्यापन शुरू करने से पहले बताएं कि वर्कफ़्लो Didit द्वारा संचालित है, अपनी गोपनीयता सूचना का लिंक दें, और जहाँ दस्तावेज़, सेल्फ़ी, लाइवनेस या बायोमेट्रिक कैप्चर के लिए आवश्यक हो वहाँ स्पष्ट सहमति लें। देखें [सुरक्षा और अनुपालन](https://docs.didit.me/hi/getting-started/security-compliance.md), [व्हाइट लेबल](https://docs.didit.me/hi/console/white-label.md) और [सत्र बनाएं](https://docs.didit.me/hi/sessions-api/create-session.md)।यह Didit Academy लेसन एक ही बैठक में पूर्ण इंटीग्रेशन सेट करता है: SDK, प्रति एनवायरनमेंट API कुंजी, सत्र बनाने की कॉल, और एक webhook हैंडलर जो साइनिंग सीक्रेट सत्यापित करता है।[Didit Academy पर पूर्ण इंटीग्रेशन गाइड — Didit Academy](https://www.youtube.com/embed/fX03-WEu_EI?rel=0\&playsinline=1)***## वेबJavaScript, iframe या redirect के साथ अपने वेब ऐप में सत्यापन इंटीग्रेट करें।> [card] [वेब SDKs](https://docs.didit.me/hi/integration/web-sdks/overview.md)
>
> JavaScript SDK, iframe embed या redirect। React, Vue, Angular, vanilla JS।> [card] [JavaScript SDK](https://docs.didit.me/hi/integration/web-sdks/javascript-sdk.md)
>
> इवेंट कॉलबैक और TypeScript के साथ पूर्ण प्रोग्रामैटिक नियंत्रण।> [card] [InContext Iframe](https://docs.didit.me/hi/integration/web-sdks/incontext-iframe.md)
>
> अपने पेज में सत्यापन एम्बेड करें। UniLink के साथ बैकएंड की आवश्यकता नहीं।> [card] [Redirect](https://docs.didit.me/hi/integration/web-sdks/web-redirect.md)
>
> Didit द्वारा होस्ट किए गए फ़्लो पर redirect करें। क्रॉस-डिवाइस समर्थन।***## मोबाइलडिवाइस पर सर्वोत्तम कैमरा, NFC और लाइवनेस अनुभव के लिए नेटिव SDK।> [card] [नेटिव SDKs](https://docs.didit.me/hi/integration/native-sdks/overview.md)
>
> iOS, Android, React Native, Flutter। पूर्ण NFC और बायोमेट्रिक समर्थन।> [card] [iOS SDK](https://docs.didit.me/hi/integration/native-sdks/ios-sdk.md)
>
> SwiftUI और UIKit। NFC पासपोर्ट रीडिंग। अभी उपलब्ध।> [card] [Android SDK](https://docs.didit.me/hi/integration/native-sdks/android-sdk.md)
>
> Kotlin और Jetpack Compose। NFC समर्थन। अभी उपलब्ध।> [card] [React Native](https://docs.didit.me/hi/integration/native-sdks/react-native-sdk.md)
>
> नेटिव iOS और Android SDK को रैप करने वाला क्रॉस-प्लेटफ़ॉर्म TypeScript API। NFC समर्थन। अभी उपलब्ध।> [card] [Flutter](https://docs.didit.me/hi/integration/native-sdks/flutter-sdk.md)
>
> नेटिव iOS और Android SDK को रैप करने वाला क्रॉस-प्लेटफ़ॉर्म Dart API। NFC समर्थन। अभी उपलब्ध।> [card] [WebView फ़ॉलबैक](https://docs.didit.me/hi/integration/web-sdks/webview-in-ios-android.md)
>
> उन प्लेटफ़ॉर्म के लिए फ़ॉलबैक जिनमें नेटिव SDK नहीं है। उपलब्ध होने पर नेटिव SDK को प्राथमिकता दें।***## सर्वरआपके बैकएंड के लिए आधिकारिक लाइब्रेरी: Didit सर्वर APIs के टाइप्ड कॉल, webhook सत्यापन और प्रमाणीकरण टोकन जाँच।> [card] [सर्वर SDKs](https://docs.didit.me/hi/integration/server-sdks/overview.md)
>
> इंस्टॉल मैट्रिक्स, कॉन्फ़िगरेशन, त्रुटियाँ और संस्करण प्रबंधन।> [card] [Python](https://docs.didit.me/hi/integration/server-sdks/python.md)
>
> Sync और async क्लाइंट। Python 3.10+।> [card] [Node.js](https://docs.didit.me/hi/integration/server-sdks/node.md)
>
> TypeScript टाइप्स, ESM और CommonJS। Node.js 18+।> [card] [Go](https://docs.didit.me/hi/integration/server-sdks/go.md)
>
> केवल स्टैंडर्ड लाइब्रेरी। Go 1.22+।> [card] [Java](https://docs.didit.me/hi/integration/server-sdks/java.md)
>
> Java और Kotlin, sync और async। Java 11+।> [card] [PHP](https://docs.didit.me/hi/integration/server-sdks/php.md)
>
> कोई भी PSR-18 HTTP क्लाइंट। PHP 8.1+।> [card] [Ruby](https://docs.didit.me/hi/integration/server-sdks/ruby.md)
>
> Rails के अनुकूल, net/http पर आधारित। Ruby 3.1+।> [card] [.NET](https://docs.didit.me/hi/integration/server-sdks/dotnet.md)
>
> C#, async, डिपेंडेंसी इंजेक्शन। .NET 8 और .NET Standard 2.0।***## इंटीग्रेशनलोकप्रिय प्लेटफ़ॉर्म के लिए प्लगइन और नो-कोड टूल।> [card] [Zapier](https://docs.didit.me/hi/integration/engines/zapier.md)
>
> नो-कोड ट्रिगर और कार्रवाइयों के साथ सत्यापन को स्वचालित करें।> [card] [WordPress और WooCommerce](https://docs.didit.me/hi/integration/web-sdks/wordpress-woocommerce.md)
>
> WordPress और WooCommerce साइटों के लिए प्लगइन।> [card] [Shopify](https://docs.didit.me/hi/integration/web-sdks/shopify.md)
>
> Shopify पर खरीदारों को सत्यापित करें और आयु-प्रतिबंधित प्रोडक्ट तक पहुँच सीमित करें।> [card] [Salesforce](https://docs.didit.me/hi/integration/web-sdks/salesforce.md)
>
> Salesforce फ़्लो और रिकॉर्ड से Didit सत्यापन ट्रिगर करें।***## त्वरित तुलना| प्लेटफ़ॉर्म | विधि | स्थिति | NFC | कैमरा | इसके लिए सर्वोत्तम |
| - | - | - | :-: | - | - |
| वेब | JavaScript SDK | ✅ उपलब्ध | — | ब्राउज़र | पूर्ण नियंत्रण, React / Vue / Angular |
| वेब | InContext Iframe | ✅ उपलब्ध | — | ब्राउज़र | त्वरित एम्बेड, बैकएंड की ज़रूरत नहीं |
| वेब | रीडायरेक्ट | ✅ उपलब्ध | — | ब्राउज़र | क्रॉस-डिवाइस, सरल सेटअप |
| iOS | नेटिव SDK | ✅ उपलब्ध | ✅ | अनुकूलित | सर्वोत्तम UX, NFC चिप रीडिंग |
| Android | नेटिव SDK | ✅ उपलब्ध | ✅ | अनुकूलित | सर्वोत्तम UX, NFC चिप रीडिंग |
| React Native | नेटिव SDK | ✅ उपलब्ध | ✅ | अनुकूलित | सर्वोत्तम UX, NFC चिप रीडिंग |
| Flutter | नेटिव SDK | ✅ उपलब्ध | ✅ | अनुकूलित | सर्वोत्तम UX, NFC चिप रीडिंग |
| बैकएंड | सर्वर SDKs (Python, Node.js, Go, Java, PHP, Ruby, .NET) | ✅ उपलब्ध | — | — | सत्र, निर्णय, स्वतंत्र APIs, webhook |
| नो-कोड | Zapier | ✅ उपलब्ध | — | — | स्वचालित वर्कफ़्लो |
| CMS | WordPress | ✅ उपलब्ध | — | — | WP / WooCommerce साइटें |
| कॉमर्स | Shopify | ✅ उपलब्ध | — | — | Shopify स्टोर |
| CRM | Salesforce | ✅ उपलब्ध | — | — | Salesforce फ़्लो और रिकॉर्ड |## अगले चरण> [card] [API पूर्ण फ़्लो](https://docs.didit.me/hi/integration/api-full-flow.md)
>
> एंड-टू-एंड सत्र इंटीग्रेशन: सत्र बनाएँ, webhook और परिणाम प्राप्त करें।> [card] [webhook](https://docs.didit.me/hi/integration/webhooks.md)
>
> रीयल-टाइम सत्यापन स्थिति अपडेट प्राप्त करें।***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.