Skip to main content
POST
/
v1
/
portal
/
mute
/
{user_id}
curl -X POST https://hapi.7331.org/v1/portal/mute/123456789012345678 \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{"duration": 600, "reason": "Spamming"}'
{
  "ok": true
}
Requires an active session cookie with Moderator or higher permissions. Hierarchy is enforced: you can only mute users below your permission level. Broadcasts a user:muted event to all connected clients.
user_id
integer
required
Discord snowflake ID of the user to mute.
duration
integer
default:"300"
Mute duration in seconds. 0 for indefinite mute.
reason
string
Reason for the mute. Max 500 characters.

Response

ok
boolean
required
true if the user was muted.
curl -X POST https://hapi.7331.org/v1/portal/mute/123456789012345678 \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{"duration": 600, "reason": "Spamming"}'
{
  "ok": true
}