Skip to main content
POST
/
v1
/
portal
/
chats
/
{chat_id}
/
invites
/
{code}
/
delete
curl -X POST https://portal-api.7331.org/v1/portal/chats/42/invites/abc123def456ghi7/delete \
  -b "psession=YOUR_SESSION"
{
  "message": "Invite 'abc123def456ghi7' revoked"
}

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.

Requires an active session cookie. Access is controlled by can_manage_room() hierarchy:
  • Private chats: owner only.
  • Public / Official chats: chat owner, or any user whose permission level lets them act on the chat owner (e.g. Mods can manage User-owned chats, Admins can manage Mod/User-owned chats, Owners can manage any chat).
Returns 404 Not Found if the code does not exist or does not belong to the specified chat.
chat_id
integer
required
Chat ID.
code
string
required
The invite code to revoke.

Response

Returns 200 OK with a SuccessResponse body.
curl -X POST https://portal-api.7331.org/v1/portal/chats/42/invites/abc123def456ghi7/delete \
  -b "psession=YOUR_SESSION"
{
  "message": "Invite 'abc123def456ghi7' revoked"
}