Content Compliance Check
Full procedure for running a compliance check in any of the three response modes.Prerequisites
- Valid API key (validated via
GET /whoami) - Content to check (text, optionally images)
- Known target jurisdictions and platforms
Procedure
Step 1: Check Credits
creditsRemaining is sufficient:
- Fast mode text check: ~12 credits
- Full mode text check: ~47 credits
- Image check: ~5 credits per image (additional)
upgradeUrl in the response.
Step 2: Choose Mode and Response Mode
Execution mode:fast— All agents run in parallel. Cheaper, faster. Good for quick checks.full— 4-phase pipeline with content enrichment between phases. Thorough. Use for final pre-publish checks.
sync— Block until complete. Best for fast mode or simple integrations.stream— SSE events per agent. Best for full mode with real-time UI updates.async— Return immediately, deliver result via webhook. Best for batch processing.
Step 3: Submit the Check
Step 4: Handle the Response
Sync mode — the full report is in the response body. Stream mode — see streaming-integration.md Async mode — see async-webhook-execution.mdStep 5: Interpret Results
- Check
decision: PUBLISH, HOLD, or BLOCK - If HOLD or BLOCK, review
checks[]for detailed findings - Use
annotations[]to map issues to content locations - Present
recommendationfields as actionable fixes
Step 6: Iterate (if needed)
If the decision is HOLD or BLOCK:- Fix the flagged content based on recommendations
- Re-submit with the updated content (use a NEW
Idempotency-Key) - Repeat until the decision is PUBLISH
Error Handling
- 402 Payment Required: Credits exhausted. Response includes
creditsRemainingandupgradeUrl. - 429 Too Many Requests: Rate limited. Wait for
Retry-Afterseconds. - 400 Bad Request: Check that
jurisdictionsandplatformscontain valid IDs.