> ## 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 - Content को regulatory frameworks के against check करें।

<Info>
  **Concept:** [Compliance](/concepts/compliance) | **Python:** [`client.compliance_check()`](/sdk/python/compliance)
</Info>

## Parameters

<ParamField body="content" type="string" required>
  AI-generated text या system description जो check करनी है।
</ParamField>

<ParamField body="frameworks" type="string[]" required>
  Check करने के लिए regulatory frameworks। Options: `gdpr`, `ccpa`, `hipaa`, `eu_ai_act`, `india_dpdp`, `india_ai_gov`।
</ParamField>

<ParamField body="context" type="string">
  Deployment context की description (जैसे "healthcare chatbot for EU patients")। Accuracy improve करती है।
</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` सिर्फ तब जब सभी requested frameworks pass हो गए हों।
</ResponseField>

<ResponseField name="result.frameworks" type="object">
  Per-framework results। हर entry में `compliant` (boolean) और `issues` (flagged clauses की array with severity और remediation guidance) होते हैं।
</ResponseField>

<ResponseField name="credits_consumed" type="number">
  Single framework के लिए 5.0, 2–3 के लिए 8.0, 4–5 के लिए 10.0।
</ResponseField>
