REST API v1

API Documentation

Integrate real-time AI content moderation into your EdTech platform with a single API call.

Low Latency

Sub-200ms response times for real-time moderation.

7 Safety Dimensions

Analyses content across violence, self-harm, sexual content, radicalisation, and more.

UK GDPR Compliant

All data processed within the UK. Full audit trail.

Quick Start
POST /functions/v1/moderate
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY

{
  "text": "Student prompt or AI response text",
  "student_id": "optional-student-id",
  "class_name": "Year 7 Science"
}
Response Format
{
  "safety_score": 0.92,
  "action": "allowed",
  "categories": {
    "violence": 0.02,
    "self_harm": 0.01,
    "sexual_content": 0.0,
    "hate_speech": 0.03,
    "radicalisation": 0.0,
    "age_appropriateness": 0.95,
    "educational_value": 0.88
  },
  "explanation": "Content is safe and age-appropriate."
}
Authentication

All API requests require a Bearer token. You can generate API keys from your EdTech dashboard under Settings → API Keys.

Each key is scoped to your organisation and includes rate limiting based on your plan. Free tier: 100 requests/day. Growth: 10,000/day. Enterprise: unlimited.