Ban / Unban
Both endpoints flip the status field on a user row. Both are idempotent.
Ban a user
POST
Mark the user as banned. Optional body with a reason and an expiry.
json
{ "ban_reason": "Refund chargeback", "ban_until": 1764057600}| Field | Type | Notes |
|---|---|---|
ban_reason | string | Optional, capped at 256 characters. The text is shown to the user on their loader kick dialog. |
ban_until | number | Optional Unix timestamp in seconds. Omit or pass null for a permanent ban. Negative or non-finite values are silently treated as permanent. |
Response
{ "success": true, "data": { "banned": true, "already": false, "user_id": "uuid" }, "requestid": "uuid"}{ "success": true, "data": { "banned": true, "already": true, "user_id": "uuid" }, "requestid": "uuid"}{ "success": false, "error": "No user matches this identifier in this project", "code": "NOT_FOUND", "requestid": "uuid"}Unban a user
POST
Clear the ban and remove the HWID-level block the ban created. No body required.
Response
{ "success": true, "data": { "unbanned": true, "already": false, "user_id": "uuid" }, "requestid": "uuid"}{ "success": true, "data": { "unbanned": true, "already": true, "user_id": "uuid" }, "requestid": "uuid"}{ "success": false, "error": "No user matches this identifier in this project", "code": "NOT_FOUND", "requestid": "uuid"}Unbanning restores status to active (or no_hwid if the user has no bound fingerprint) and removes the HWID-level block the original ban created.