Skip to Content
Developers
API ReferenceTierb

B7 — 2-stage POCSO s.23 / s.72 BNS / PII / BSA s.132 privilege compliance firewall (5 credits; scope ai:run).

POST
/api/v1/in/compliance/redact-firewall

Authorization

BearerAuth
headerAuthorizationBearer <vdh_live_<32_hex> | vdh_test_<32_hex>>

Header Parameters

Idempotency-Key?string

UUIDv4 idempotency token (24h replay window in Postgres).

Formatuuid

Request Body

application/json
  1. body
text*string
Length1 <= length
mode?string
Default"redact"
Value in"detect""redact"
target_scope?string
Default"personal"
Value in"personal""firm"

Response Body

Compliance firewall report

application/json
  1. response
blocked*boolean
hard_block_reason?string|null
sensitive_categories*array<string>
privilege_flagged*boolean
flagged_spans?array<>
redacted_preview?string
[key: string]?any
Example Request
curl -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"}