跳转到主要内容

Parameters

content
string
必填
The AI-generated text or system description to check.
frameworks
string[]
必填
Regulatory frameworks to check against. Options: gdpr, ccpa, hipaa, eu_ai_act, india_dpdp, india_ai_gov.
context
string
Description of the deployment context (e.g., “healthcare chatbot for EU patients”). Improves accuracy.

Request

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

{
  "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
}
result.overall_compliant
boolean
true only if all requested frameworks passed.
result.frameworks
object
Per-framework results. Each entry has compliant (boolean) and issues (array of flagged clauses with severity and remediation guidance).
credits_consumed
number
5.0 for single framework, 8.0 for 2–3, 10.0 for 4–5.