Skip to main content
POST
/
v1
/
portal
/
hard-mute
curl -X POST https://portal-api.7331.org/v1/portal/hard-mute \
  -H "Content-Type: application/json" \
  -b "psession=YOUR_SESSION" \
  -d '{"duration": 3600, "reason": "Repeated abuse across chats"}'
{
  "ok": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.7331.org/llms.txt

Use this file to discover all available pages before exploring further.

Hard mutes a user globally — they cannot send messages in any chat. Overrides per-chat mute status. Broadcasts a user:hard_muted event to all connected clients. Authorization: Requires Admin or higher permissions. Hierarchy is enforced: you can only hard mute users below your permission level.
user_id
integer
required
Entity ID of the user to hard mute.
duration
integer
default:"300"
Mute duration in seconds. 0 for indefinite mute. Maximum: 86400 (24 hours).
reason
string
Reason for the mute. Max 500 characters.

Response

ok
boolean
required
true if the user was hard muted.
curl -X POST https://portal-api.7331.org/v1/portal/hard-mute \
  -H "Content-Type: application/json" \
  -b "psession=YOUR_SESSION" \
  -d '{"duration": 3600, "reason": "Repeated abuse across chats"}'
{
  "ok": true
}
A hard mute blocks the user in every chat. To mute in a single chat, use Mute User in Chat instead.