Skip to main content
GET
/
v1
/
portal
/
chats
/
{chat_id}
/
activity
curl https://portal-api.7331.org/v1/portal/chats/42/activity?limit=10 \
  -b "psession=YOUR_SESSION"
{
  "events": [
    {
      "user": { "id": 3, "username": "troublemaker", "avatar_url": null },
      "action": "kick",
      "method": null,
      "invite_code": null,
      "created_at": "2026-04-04T12:30:00Z"
    },
    {
      "user": { "id": 3, "username": "troublemaker", "avatar_url": null },
      "action": "join",
      "method": "vanity",
      "invite_code": "portal",
      "created_at": "2026-04-04T10:00:00Z"
    },
    {
      "user": { "id": 9, "username": "alice", "avatar_url": "https://cdn.example.com/users/9/avatar.png" },
      "action": "join",
      "method": "invite",
      "invite_code": "Vy8nFKq2",
      "created_at": "2026-04-04T09:15:00Z"
    }
  ],
  "total": 3,
  "offset": 0,
  "limit": 10
}

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.

Returns a timeline of joins, leaves, kicks, and bans for a chat. Includes the join method (direct, vanity slug, or invite code) for each join event. Authorization: Chat owner can always view. For public/official chats, any user who outranks the chat owner (Mod+) can also view. Moderators cannot view activity in private chats.
chat_id
integer
required
Chat ID.
offset
integer
default:0
Number of events to skip.
limit
integer
default:50
Maximum events to return (1–100).

Response

events
array
required
Array of activity events, newest first.
total
integer
required
Total number of events for this chat.
offset
integer
required
Current offset.
limit
integer
required
Current limit.
curl https://portal-api.7331.org/v1/portal/chats/42/activity?limit=10 \
  -b "psession=YOUR_SESSION"
{
  "events": [
    {
      "user": { "id": 3, "username": "troublemaker", "avatar_url": null },
      "action": "kick",
      "method": null,
      "invite_code": null,
      "created_at": "2026-04-04T12:30:00Z"
    },
    {
      "user": { "id": 3, "username": "troublemaker", "avatar_url": null },
      "action": "join",
      "method": "vanity",
      "invite_code": "portal",
      "created_at": "2026-04-04T10:00:00Z"
    },
    {
      "user": { "id": 9, "username": "alice", "avatar_url": "https://cdn.example.com/users/9/avatar.png" },
      "action": "join",
      "method": "invite",
      "invite_code": "Vy8nFKq2",
      "created_at": "2026-04-04T09:15:00Z"
    }
  ],
  "total": 3,
  "offset": 0,
  "limit": 10
}