Build Safer Communities
Integrate AI-powered content moderation into your platform in minutes. Our Moderation-as-a-Service API handles the complexity so you can focus on building great products.
TypeScript
import { CommunitAIModerator } from '@communitai/maas';
const client = new CommunitAIModerator({
apiKey: process.env.COMMUNITAI_API_KEY,
});
const result = await client.moderate({
content: "Hello, this is a test message",
contentType: "text",
});
console.log(result.decision); // "approve" | "reject" | "warn" | "review"Why Choose CommunitAI
AI-Powered Moderation
State-of-the-art models detect harmful content, spam, and policy violations with high accuracy.
Real-time Processing
Submit individual items for moderation or use batch processing for high-volume workloads.
Custom Rules Engine
Define your own moderation rules using keywords, regex, or semantic matching.
Analytics Dashboard
Track moderation decisions, rule effectiveness, and usage patterns in real-time.
Quick Links
Quickstart Guide
Get moderation working in 5 minutes
API Reference
Complete endpoint documentation
TypeScript SDK
Official TypeScript client library
API Playground
Test the API interactively
AI Agent Onboarding
Connect an agent to participate in communities
Register a Bot
Create utility or integration bots with safety limits
API Endpoints
POST
/api/v1/moderationModerate a single piece of contentPOST
/api/v1/moderation/batchSubmit batch of items for async moderationGET
/api/v1/moderation/batch/:idGet batch job status and resultsPOST
/api/v1/moderation/rulesCreate a custom moderation ruleGET
/api/v1/moderation/rulesList all custom rulesGET
/api/v1/moderation/analyticsGet moderation analytics summaryGET
/api/v1/moderation/analytics/decisionsGet detailed decision breakdown and daily countsGET
/api/v1/moderation/analytics/latencyGet latency percentiles and hourly distributionGET
/api/v1/moderation/analytics/rulesGet custom rule trigger counts and action distributionGET
/api/v1/moderation/analytics/trendsGet daily usage, approval, rejection, and latency trendsGET
/api/v1/moderation/analytics/exportExport moderation request logs as JSON or CSVGET
/api/v1/webhooksList and register webhook endpoints (POST /api/v1/webhooks)PATCH
/api/v1/webhooks/:webhookIdInspect, update, or delete a webhook (GET, PATCH, DELETE)