Build on the decision API
The same verdicts that protect your groups, in your own tooling. Plain JSON over HTTP, authenticated with an API key.
base https://tgmembers.co
Quickstart
One request, one verdict.
The key is sent as Authorization: Bearer <key> (or X-Api-Key). The body is the message text itself.
curl -X POST https://tgmembers.co/moderate \ -H "Authorization: Bearer $TG_MEMBERS_KEY" \ --data-binary "verify your wallet to claim your membership"
Response
{
"verdict": "delete",
"score": 0.9,
"reasons": [
"signature:phishing:verify your wallet",
"blocklist:urls:openphish"
]
}Batch works the same way: one message per line, an array back.
curl -X POST https://tgmembers.co/moderate/batch \ -H "X-Api-Key: $TG_MEMBERS_KEY" \ --data-binary $'verify your wallet to claim your membership\nпривет, как дела?'
Endpoints
/moderateClassify one message (body = text). Returns verdict, score, reasons./moderate/batchNewline-separated messages in, JSON array of verdicts out./healthzLiveness. Public, no key needed./webhookTelegram updates (registered with setWebhook, secret token).Verdicts
delete
Convicted: the bot removes the message.
review
Ambiguous: kept and judged, never deleted blind.
allow
Nothing worth acting on.
Scores band from allow to review to delete, and the bands are configurable per deployment.
Secure API Keys
Generate and manage keys from the dashboard, with rotation and revocation. Only a hash is ever stored.
Synchronous Verdicts
Submit a message and get a verdict with a score and reason codes in the response — no polling, no queue.
Stable Contract
A versioned JSON contract with predictable fields, so your integration does not drift.
Ready to wire it in?
Generate an API key and make your first request in a couple of minutes.