Body {"text": "..."} — up to 1000 UTF-8 characters. clean is false when a listed word is found; filtered is the masked, display-safe copy (rich-text and control characters stripped). No player session needed — API token only.
$ curl -X POST "/api/censor.php" \
-H "X-Api-Token: API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"text": "message a player wants to display"}'
{"success": true, "clean": true, "filtered": "message a player wants to display"}
{"success": true, "clean": false, "filtered": "********"}
Each official SDK ships a local hash-scan TextFilter for instant
offline checks — it never weakens server decisions, so a missed local flag still fails
server-side. Per-game character policies for player names (name_rules)
and lobby titles (room_rules) live in the cabinet game settings and
are enforced at register/rename and room creation; the same rules feed the SDK-side
validate_name helpers for live local feedback.