Skip to content

Infrared documentation

Infrared screens the text and images your users post. One API call returns a verdict, a score for every policy and a recommendation your backend acts on.

Start here

The whole integration is one call

Your backend sends what a person just submitted: a listing, a review, a comment, a profile photo. It needs an API key and nothing else. A request that names no template runs the project's built-in basic check, which every plan includes.

curl https://api.useinfrared.com/v1/moderations \
  -H "Authorization: Bearer $INFRARED_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "text",
    "input": "Worst seller ever. You are a complete idiot."
  }'
200 OK, trimmedJSON
{
  "id": "mod_41RdNecZ5qkb9qsBisl5Pf",
  "status": "completed",
  "flagged": true,
  "recommendation": "reject",
  "policies": {
    "toxicity": 0.98,
    "hate_speech": 0,
    "profanity": 0
  },
  "triggered": ["toxicity"],
  "reasons": ["trigger:toxicity:flag", "triage:reject"]
}

Your code branches on recommendation. The Quickstart goes from a new account to this response, and The moderation object explains every field of it.

What happens around that call

Infrared is a moderation API with a dashboard behind it. What your rules cannot decide lands in a review queue for your team, and every decision made there is reported to your backend by a signed webhook. Your product stays the place where content is published or removed.

One submission
Your backend
Infrared
Your team
  1. Your backend to Infrared: POST /v1/moderationsa listing someone just submitted
  2. Infrared: Scores every policythen your content rules decide
  3. Infrared to Your backend: recommendation: "review"allow, review or reject
  4. Your backend: Holds the listingit acts on the recommendation
  5. Infrared to Your team: A review queue itemwith the evidence
  6. Your team to Infrared: A moderator decidesReject
  7. Infrared to Your backend: queue_item.rejecteda signed webhook
  8. Your backend: Removes the listing
One listing: scored, held for review, decided by a moderator and reported back.

What the docs cover

What is in development

Everything else on these pages is what the API and the dashboard do today. Requests and responses are ones the API accepts and returns, and the dashboard captures come from a demonstration organisation called Acme Corp.

Something missing or unclear on this page? Write to support@useinfrared.com.