Skip to main content
GET
/
v1
/
portal
/
rooms
/
{room_name}
/
history
curl https://hapi.7331.org/v1/portal/rooms/general/history \
  -b cookies.txt
[
  {
    "id": "1710000000000-0",
    "user_id": "123456789012345678",
    "username": "exampleuser",
    "content": "Hello everyone!",
    "timestamp": "2026-03-10T12:00:00Z"
  },
  {
    "id": "1710000001000-0",
    "user_id": "987654321098765432",
    "username": "anotheruser",
    "content": "Hey there!",
    "timestamp": "2026-03-10T12:00:01Z"
  }
]
Requires an active session cookie. The caller must have access to the room (named rooms are open; guild rooms require membership, ownership, or ADMIN+).
room_name
string
required
Name of the room to fetch history for.

Response

Returns an array of message objects from the room’s portal stream.
id
string
required
Message ID (Redis stream ID).
user_id
string
required
Discord ID of the message author.
username
string
required
Username of the message author.
content
string
required
Message content (HTML-sanitized).
timestamp
string
required
When the message was sent (ISO 8601).
curl https://hapi.7331.org/v1/portal/rooms/general/history \
  -b cookies.txt
[
  {
    "id": "1710000000000-0",
    "user_id": "123456789012345678",
    "username": "exampleuser",
    "content": "Hello everyone!",
    "timestamp": "2026-03-10T12:00:00Z"
  },
  {
    "id": "1710000001000-0",
    "user_id": "987654321098765432",
    "username": "anotheruser",
    "content": "Hey there!",
    "timestamp": "2026-03-10T12:00:01Z"
  }
]