Moderation API: Moderate text, images, video and audio in real time, manage authors, review queues and actions, and receive webhooks
Moderation API: Moderate text, images, video and audio in real time, manage authors, review queues and actions, and receive webhooks.
modapi [flags]
--agent-mode Enable structured errors and default TOON output for AI coding agents. Automatically enabled when a known agent environment is detected (CLAUDECODE, CURSOR_AGENT, etc.). Use --agent-mode=false to disable.
--color string Control colored output: auto (color when output is a TTY), always, or never. Respects NO_COLOR and FORCE_COLOR env vars. (default "auto")
-d, --debug Log request and response diagnostics to stderr
--dry-run Preview API requests without sending them (no network, no OS keychain). Human preview on stderr; with -o json or --jq, one JSON object per request on stdout. Local mutation commands (auth login, auth logout and configure) make no request: they skip prompts and writes and report a no-op (stderr, or one JSON object on stdout in the machine form)
-H, --header stringArray Set a custom HTTP request header (format: "Key: Value"). Can be specified multiple times.
-h, --help help for modapi
--include-headers Include HTTP response headers in the output
--interactive Prompt for missing inputs and open guided configure/auth forms (forms fall back to line prompts on stdin off-TTY) (default true)
-q, --jq string Filter and transform output using a jq expression (e.g., '.name', '.items[] | .id')
--no-interactive Disable all interactive features (auto-prompting, explorer auto-launch, TUI forms)
--no-keyring Never read or write the OS keychain; store secrets in the config file instead (env: MODAPI_NO_KEYRING)
-o, --output-format string Specify the output format. Options: pretty, json, yaml, table, toon. (default "pretty")
--raw-output Write --jq string results as raw text instead of JSON strings (like jq -r); non-string results stay JSON
--secret-key string HTTP Bearer
--server string Select a server by index (for indexed servers) or name (for named servers)
--server-url string Override the default server URL
--timeout string HTTP request timeout (e.g., 30s, 5m, 100ms)
--usage Print the CLI Usage schema in KDL format
-v, --version Print the CLI version
- modapi account - Operations for account
- modapi actions - Operations for actions
- modapi analytics - Operations for analytics
- modapi auth - Manage authentication credentials
- modapi authors - Operations for authors
- modapi channels - Operations for channels
- modapi configure - Configure authentication credentials and preferences
- modapi content - Operations for content
- modapi doctor - Check the Moderation API setup of this project
- modapi explore - Interactively browse and run commands
- modapi feedback - Operations for feedback
- modapi init - Set up Moderation API in this project
- modapi link - Connect this directory to an existing Moderation API project
- modapi login - Sign in with your Moderation API account
- modapi logout - Remove the organization key stored by modapi login
- modapi projects - Operations for projects
- modapi queue - Operations for queue
- modapi version - Print the CLI version
- modapi webhook-secret - Operations for webhook-secret
- modapi webhooks - Operations for webhooks
- modapi whoami - Display current authentication configuration
- modapi wordlist - Operations for wordlist
Exit codes: 0 ok · 1 runtime · 2 usage · 3 authentication/authorization