Developer documentation
Build with Clusterbot
Send text, receive a structured moderation outcome, and decide what happens next — with one authenticated REST call.
Your first request
Create an API key in the portal, keep it on your server, and post the text you want to classify. Every response has the same shape, whichever inference route evaluated it.
- 1Create a key
Portal → API keys. Copy it once and store it as a secret.
- 2Send text
POST /v1/moderationswithX-Api-Key. - 3Act on the outcome
Publish, hold for review, or reject.
curl "$CLUSTERBOT_BASE_URL/v1/moderations" \
-H "X-Api-Key: $CLUSTERBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"content":"You are a wonderful person."}'
{
"flagged": false,
"categories": [],
"latencyMs": 74.18,
"outcome": "Pass",
"evaluatedBy": "Model"
}
API at a glance
Open the interactive referenceGet started
Moderation
Moderate content
Request fields, response fields, and the moderation categories.
Outcomes and thresholds
How scores become Pass, FlaggedForReview, or Rejected, and how to tune them.
Manual review
Hold borderline content for a human decision and retrieve the result.
Review callbacks
Receive signed notifications when a reviewer approves or rejects content.