Examples
Last updated: December 2, 2026
Classify one message
Send the raw message text as the request body and read back a verdict, a score and the reason codes behind it.
curl -X POST https://tgmembers.co/moderate \
-H "Authorization: Bearer your_key" \
--data-binary "verify your wallet to claim your membership"Classify many messages in one call
Send one message per line and read back a JSON array of verdicts in the same order — useful for history scans and imports.
curl -X POST https://tgmembers.co/moderate/batch \
-H "X-Api-Key: your_key" \
--data-binary $'verify your wallet\nпривет, как дела?'Read the decision log
Every verdict is written to an append-only log. Filter it by group or verdict to power a dashboard, a review queue or an audit view.
curl -H "Authorization: Bearer your_key" \
"https://tgmembers.co/api/decisions?group=-1005936987759&verdict=delete&limit=50"Export evidence since a timestamp
Pull a slice of the log as CSV for a chargeback or platform appeal. Track the highest id you have exported and use it as a cursor on the next pass.
curl -H "x-api-key: your_key" \
"https://tgmembers.co/api/decisions?limit=200" \
| jq -r '["ts","group","verdict","score","reasons"], (.decisions[] | [.ts, .groupId, .verdict, .score, .reasons]) | @csv' \
> evidence-export.csv