# Permanent user ban curl -X POST https://hapi.7331.org/v1/admin/punishments/user/123456789012345678/ban \ -H "Content-Type: application/json" \ -b cookies.txt \ -d '{"reason": "Terms of service violation"}' # Temporary guild ban curl -X POST https://hapi.7331.org/v1/admin/punishments/guild/987654321098765432/ban \ -H "Content-Type: application/json" \ -b cookies.txt \ -d '{"reason": "Spam abuse", "expires_at": "2026-06-01T00:00:00Z"}'
{ "user_discord_id": "123456789012345678", "punishment_type": "BAN", "reason": "Terms of service violation", "issued_by_discord_id": "999888777666555444", "expires_at": null, "created_at": "2026-03-05T12:00:00Z", "updated_at": "2026-03-05T12:00:00Z" }
Ban a user or guild (admin only).
user
guild
null
BAN
GUILD_BLACKLIST
Was this page helpful?