API ReferenceTierb
B7 — 2-stage POCSO s.23 / s.72 BNS / PII / BSA s.132 privilege compliance firewall (5 credits; scope ai:run).
POST
BearerAuthheader
AuthorizationBearer <vdh_live_<32_hex> | vdh_test_<32_hex>>Idempotency-Key?stringUUIDv4 idempotency token (24h replay window in Postgres).
Format
uuidapplication/json- body
text*stringLength
1 <= lengthmode?stringDefault
"redact"Value in
"detect""redact"target_scope?stringDefault
"personal"Value in
"personal""firm"Compliance firewall report
application/json- response
blocked*booleanhard_block_reason?string|nullsensitive_categories*array<string>privilege_flagged*booleanflagged_spans?array<>redacted_preview?string[key: string]?anycurl -X POST 'https://api.vidhi.shamik.app/api/v1/in/compliance/redact-firewall' \ -H 'Content-Type: application/json' \ -d '{ "text": "string"}'Example Response
{ "blocked": true, "hard_block_reason": "string", "sensitive_categories": [ "string" ], "privilege_flagged": true, "flagged_spans": [ {} ], "redacted_preview": "string"}