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

Removes a chat ban for the specified user, allowing them to rejoin the chat. Broadcasts a user:unbanned event to all clients in the chat. Authorization: Chat owner can always unban. For private chats, Admin+ can also unban. For public/official chats, any user who outranks the chat owner (via permission hierarchy) can unban.
chat_id
integer
required
Chat ID.
user_id
integer
required
User ID of the user to unban.
reason
string
Reason for unbanning (1-500 characters).

Response

ok
boolean
required
true if the ban was lifted.
curl -X POST https://portal-api.7331.org/v1/portal/chats/42/unban \
  -H "Content-Type: application/json" \
  -b "psession=YOUR_SESSION" \
  -d '{"user_id": 7, "reason": "Appeal accepted"}'
{
  "ok": true
}
Returns 200 ok: true even if the user was not currently banned — unbanning is idempotent.