Ban / Unban

Ban / Unban

Both endpoints flip the status field on a user row. Both are idempotent.

Ban a user

POST
https://api.envyauth.my.id/api/v3/projects/:project_uuid/users/:identifier/ban

Mark the user as banned. Optional body with a reason and an expiry.

json
{  "ban_reason": "Refund chargeback",  "ban_until":  1764057600}
FieldTypeNotes
ban_reasonstringOptional, capped at 256 characters. The text is shown to the user on their loader kick dialog.
ban_untilnumberOptional 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"}

Unban a user

POST
https://api.envyauth.my.id/api/v3/projects/:project_uuid/users/:identifier/unban

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"}

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.