> ## 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.

# コンプライアンスチェック

> POST /railscore/v1/compliance/check - 規制フレームワークに対してコンテンツをチェックします。

<Info>
  **概念:** [コンプライアンス](/concepts/compliance) | **Python:** [`client.compliance_check()`](/sdk/python/compliance)
</Info>

## パラメータ

<ParamField body="content" type="string" required>
  チェックするAI生成テキストまたはシステム説明。
</ParamField>

<ParamField body="frameworks" type="string[]" required>
  チェック対象の規制フレームワーク。オプション: `gdpr`, `ccpa`, `hipaa`, `eu_ai_act`, `india_dpdp`, `india_ai_gov`。
</ParamField>

<ParamField body="context" type="string">
  デプロイメントコンテキストの説明（例: "EU患者向けのヘルスケアチャットボット"）。精度を向上させます。
</ParamField>

## リクエスト

```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": "ユーザーのインタラクションデータを収集してパーソナライズを改善します。",
    "frameworks": ["gdpr", "eu_ai_act"],
    "context": "EUユーザー向けのB2Cチャットボット"
  }'
```

## レスポンス

```json theme={null}
{
  "result": {
    "overall_compliant": false,
    "frameworks": {
      "gdpr": {
        "compliant": false,
        "issues": [
          {
            "clause": "第13条 — 提供される情報",
            "description": "処理の法的根拠やデータ保持期間の言及がありません。",
            "severity": "high",
            "remediation": "応答に法的根拠（例: 正当な利益）と保持期間を開示してください。"
          }
        ]
      },
      "eu_ai_act": {
        "compliant": true,
        "issues": []
      }
    }
  },
  "credits_consumed": 8.0
}
```

<ResponseField name="result.overall_compliant" type="boolean">
  すべての要求されたフレームワークが合格した場合のみ `true`。
</ResponseField>

<ResponseField name="result.frameworks" type="object">
  フレームワークごとの結果。各エントリには `compliant`（boolean）と `issues`（重大度と修正ガイダンスを持つフラグ付き条項の配列）が含まれます。
</ResponseField>

<ResponseField name="credits_consumed" type="number">
  単一フレームワークの場合は5.0、2〜3の場合は8.0、4〜5の場合は10.0です。
</ResponseField>
