Concept: India DPDP guide | SDK: Python DPDP | Frameworks: Compliance overview
scan से शुरु करें, जब आपको stateful tracking चाहिए तब session और emit add करें, और audit के समय evidence के लिए पहुंचें।
DPDP चलाने के दो तरीके
RAIL एक ही DPDP capability को दो paths पर ship करता है जिनमें opposite data-flow guarantees हैं। यह page hosted API को document करता है।Hosted (यह API)
आपकी application
api.responsibleailabs.ai को content भेजती है। Multi-tenant, org-scoped, प्रति call बिल किया जाता है। इस page पर सबकुछ यहां चलता है।Enterprise self-hosted
RAIL agent आपके अपने VPC या air-gapped environment के अंदर चलता है; content आपके infrastructure को कभी नहीं छोड़ता। एक ही सात endpoints वहां single-tenant, licensed deployments के लिए mirrored हैं।
सात endpoints
| Endpoint | Method | Credits | यह क्या करता है |
|---|---|---|---|
/scan | POST | 0.5 | Indian PII (Aadhaar with Verhoeff checksum, PAN, UPI, mobile, और 6 और) को detect करें, child signals (S.9) को detect करें, और purpose drift (S.4) को detect करें। Detect, mask, या block करें। |
/evaluate | POST | 0.3 | एक action के लिए deterministic allow / block / require_action gate, DPDP S.4–S.16 में mapped। |
/emit | POST | 0.1 | 1–50 compliance events (consent, notice, DSR, breach) को record करें। Auto-starts regulatory timers। |
/require | POST | 0.3 | एक दिए गए workflow step के लिए required actions को list करें। |
/evidence | POST | 2.0 | एक audit-grade evidence packet generate करें (DSR response, breach notification, consent audit, SDF annual report)। Pro+ plans। |
/session | POST | 0 | एक data-principal journey के लिए एक stateful compliance session create या retrieve करें। |
/timers | GET | 0 | Regulatory deadline timers को list करें, status, type, या कितनी जल्दी due हैं के आधार पर filter करें। |
कैसे pieces एक साथ fit होते हैं
एक typical integration एक single session को user की journey के through thread करता है। Events जो आपemit करते हैं वह session state को mutate करते हैं और statutory timers start करते हैं; scan और evaluate in-the-moment decisions करते हैं; evidence accumulated trail को read करता है जब एक auditor या regulator पूछता है।
Response envelope
हर endpoint same two-key envelope return करता है।result endpoint-specific payload को hold करता है; credits_consumed report करता है कि call की cost क्या थी।
Authentication
सभी routes को एक Bearer token की जरूरत है — एक API key (rail_...) या एक JWT। इसे हर request पर pass करें:
एक पूरा walkthrough
नीचे का flow एक loan-application journey को end to end track करता है। यह curl use करता है; Python SDK हर call कोclient.dpdp.* के रूप में mirror करता है।
एक session खोलें
एक session events, scans, और timers को एक data-principal journey से tie करता है। Response एक
config.purpose required है।session_id return करता है जिसे आप later calls पर reuse करते हैं।Notice और consent को record करें
emit उन events को write करता है जो बाद में prove करते हैं कि आपने अपने notice (S.5) और consent (S.6) obligations को meet किया।Content को Indian PII के लिए scan करें
Store या send करने से पहले model output को scan करें।
pii_action को detect, mask, या block कर सकता है।Decision को gate करें
evaluate action के लिए एक deterministic verdict return करता है जो आप लेने वाले हैं।verdict का require_action आपको बताता है कि outstanding obligations के लिए /require को call करें।Errors
DPDP routes standard HTTP status codes को use करते हैं। Validation problems400 return करते हैं एक error message के साथ; evidence एक plan पर जो Pro से नीचे है 403 return करता है code: TIER_INSUFFICIENT के साथ।
अगला कहां जाएं
India DPDP guide
Suite के पीछे की concepts: obligations, lifecycle, और कौन सी endpoint Act के किस section में map होता है।
Python SDK: DPDP
हर endpoint एक typed
client.dpdp.* method के रूप में, plus client-side PII scanning और system audit।Scan endpoint
Indian PII detection, child signals, और purpose drift detail में।
Evidence endpoint
Audit-grade packets DSR, breach, consent, और SDF reporting के लिए।