मुख्य सामग्री पर जाएं

Parameters

content
string
आवश्यक
AI-generated text या system description जो check करनी है।
frameworks
string[]
आवश्यक
Check करने के लिए regulatory frameworks। Options: gdpr, ccpa, hipaa, eu_ai_act, india_dpdp, india_ai_gov
context
string
Deployment context की description (जैसे “healthcare chatbot for EU patients”)। Accuracy improve करती है।

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 सिर्फ तब जब सभी requested frameworks pass हो गए हों।
result.frameworks
object
Per-framework results। हर entry में compliant (boolean) और issues (flagged clauses की array with severity और remediation guidance) होते हैं।
credits_consumed
number
Single framework के लिए 5.0, 2–3 के लिए 8.0, 4–5 के लिए 10.0।