Skip to main content
POST
/
v1
/
portal
/
chats
/
{chat_id}
/
messages
/
delete-mine
curl -X POST https://portal-api.7331.org/v1/portal/chats/42/messages/delete-mine \
  -b "psession=YOUR_SESSION"
{
  "deleted": 7
}

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.

Deletes all messages sent by the current user in the chat’s portal stream and broadcasts a message:bulk_deleted event to all connected clients. Authorization: Any authenticated chat member can delete their own messages.
chat_id
integer
required
Chat ID.

Response

deleted
integer
required
Number of messages deleted.
curl -X POST https://portal-api.7331.org/v1/portal/chats/42/messages/delete-mine \
  -b "psession=YOUR_SESSION"
{
  "deleted": 7
}