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

# Compliance Check

> POST /railscore/v1/compliance/check - Check content against regulatory frameworks.

<Info>
  **Concept:** [Compliance](/concepts/compliance) | **Python:** [`client.compliance_check()`](/sdk/python/compliance) | **See also:** [Compliance API overview](/api-reference/compliance-overview)
</Info>

<Tip>
  For India DPDP, dedicated endpoints are available that go beyond point-in-time checks to offer stateful sessions, event-driven evidence, and workflow guidance. See the [India DPDP API](/api-reference/compliance-overview#india-dpdp-dedicated-endpoints).
</Tip>

## Parameters

<ParamField body="content" type="string" required>
  The AI-generated text or system description to check.
</ParamField>

<ParamField body="frameworks" type="string[]" required>
  Regulatory frameworks to check against. Options: `gdpr`, `ccpa`, `hipaa`, `eu_ai_act`, `india_dpdp`, `india_ai_gov`.
</ParamField>

<ParamField body="context" type="string">
  Description of the deployment context (e.g., "healthcare chatbot for EU patients"). Improves accuracy.
</ParamField>

## Request

```bash theme={null}
curl -X POST https://api.responsibleailabs.ai/railscore/v1/compliance/check \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_RAIL_API_KEY" \
  -d '{
    "content": "We collect user interaction data to improve personalization.",
    "frameworks": ["gdpr", "eu_ai_act"],
    "context": "B2C chatbot serving EU users"
  }'
```

## Response

```json theme={null}
{
  "result": {
    "overall_compliant": false,
    "frameworks": {
      "gdpr": {
        "compliant": false,
        "issues": [
          {
            "clause": "Article 13 — Information to be provided",
            "description": "No mention of legal basis for processing or data retention period.",
            "severity": "high",
            "remediation": "Disclose the legal basis (e.g., legitimate interest) and retention period in the response."
          }
        ]
      },
      "eu_ai_act": {
        "compliant": true,
        "issues": []
      }
    }
  },
  "credits_consumed": 8.0
}
```

<ResponseField name="result.overall_compliant" type="boolean">
  `true` only if all requested frameworks passed.
</ResponseField>

<ResponseField name="result.frameworks" type="object">
  Per-framework results. Each entry has `compliant` (boolean) and `issues` (array of flagged clauses with severity and remediation guidance).
</ResponseField>

<ResponseField name="credits_consumed" type="number">
  5.0 for single framework, 8.0 for 2–3, 10.0 for 4–5.
</ResponseField>
