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.

  1. 1
    Create a key

    Portal → API keys. Copy it once and store it as a secret.

  2. 2
    Send text

    POST /v1/moderations with X-Api-Key.

  3. 3
    Act 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"
}

Get started

Moderation

Operations

Reference

Tools in your workspace