Compliance

GA

Regulatory compliance checks against named regulations.

Internally wraps: ComplianceChecker.check

POST/v1/compliance/checkGA

Regulatory compliance check against named regulations

Check a document or policy text against a named list of regulations (or let the API auto-detect applicable laws) and get a per-regulation compliance finding.

Required scope: compliance~3 credit(s)/callSDK: compliance.check(...)
  • regulations is a list of regulation names, e.g. ["POSH Act", "GDPR"].

Request body

{
  "document_text": "Company policy: employees may be terminated without notice at management discretion.",
  "jurisdiction": "IN",
  "regulations": [
    "POSH Act",
    "Industrial Disputes Act"
  ]
}

Response body

{
  "request_id": "req_c710...",
  "tenant_id": "apikey:usr_123",
  "jurisdiction": "IN",
  "overall_status": "partially_compliant",
  "findings": [
    {
      "regulation": "Industrial Disputes Act",
      "compliant": false,
      "confidence": "high",
      "finding": "Termination without notice conflicts with statutory notice requirements for workmen.",
      "recommendation": "Add a notice period clause consistent with Section 25F.",
      "citation_ids": []
    }
  ],
  "summary": "1 of 2 checked regulations flagged a compliance gap.",
  "citations": [],
  "warnings": [],
  "disclaimer": "This response is generated by an AI legal assistant for informational purposes only and does not constitute legal advice. Consult a qualified legal professional before relying on it."
}
curl -X POST https://cailegal-backend-production-7edb.up.railway.app/v1/compliance/check \
  -H "Authorization: Bearer cai_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "document_text": "Company policy: employees may be terminated without notice at management discretion.",
  "jurisdiction": "IN",
  "regulations": [
    "POSH Act",
    "Industrial Disputes Act"
  ]
}'