Skip to main content
POST
/
v1
/
admin
/
punishments
/
{entity_type}
/
{entity_id}
/
unban
curl -X POST https://hapi.7331.org/v1/admin/punishments/user/123456789012345678/unban \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{"reason": "Ban appeal approved"}'
{
  "message": "Entity unbanned successfully"
}
Requires an active admin session cookie. Hierarchy enforced against the target.
entity_type
string
required
Entity type. One of: user, guild.
entity_id
integer
required
Discord snowflake ID of the entity.
reason
string
required
Reason for unbanning.

Response

message
string
required
Action result message.
curl -X POST https://hapi.7331.org/v1/admin/punishments/user/123456789012345678/unban \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{"reason": "Ban appeal approved"}'
{
  "message": "Entity unbanned successfully"
}