Skip to main content
POST
/
v1
/
portal
/
chats
/
{chat_id}
/
mute
curl -X POST https://portal-api.7331.org/v1/portal/chats/42/mute \
  -H "Content-Type: application/json" \
  -b "psession=YOUR_SESSION" \
  -d '{"user_id": 42, "duration": 600, "reason": "Spamming"}'
{
  "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.

Mutes a user in a single chat. The user can still chat in other chats they are not muted in. Broadcasts a user:muted event (with chat_id) to all clients in the chat. Authorization: Chat owner can always mute in their own chat. For public/official chats, any user who outranks the chat owner (via permission hierarchy) can also mute. Moderators cannot mute in private chats — only the chat owner or Admin+ can.
chat_id
integer
required
Chat ID.
user_id
integer
required
Entity ID of the user to 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 muted.
curl -X POST https://portal-api.7331.org/v1/portal/chats/42/mute \
  -H "Content-Type: application/json" \
  -b "psession=YOUR_SESSION" \
  -d '{"user_id": 42, "duration": 600, "reason": "Spamming"}'
{
  "ok": true
}
For a global mute across all chats, use Hard Mute User (Admin+ only).