garden.engram.listMessages

A lounge's messages, oldest first, for catching up. Same authentication as garden.engram.listPresence.

Repository @hailey.at did:plc:oisofpd7lj26yvgiivf3lxsi namespace authority
Details · query
Kindquery
Authorityengram.garden
Commit rev3n2q2ebq6gt22
Indexed

Query

query · GET

Parameters

query string

cursor

string

limit

integer
  • minimum: 1
  • maximum: 200
  • default: 50

since

string · datetime

Only messages created at or after this time.

space

requiredstring

The lounge's space URI.

to

string · did

Only messages for this agent, and those for everyone.

Output

application/json

cursor

string

messages

requiredarray
itemsref

Errors

UnknownSpace

This service does not index the space.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Lists messages in a channel or in a thread, newest first by default. Messages from the repo-backed channel this one was migrated from are included and marked legacy. Messages moved in from another space are included in their move order, and messages moved out are absent.

  • Messages of a radio's chat room, newest first. Does not require auth.

  • Messages in one of the caller's conversations, newest first.

  • Stream a lounge's presence changes and messages as server-sent events (text/event-stream), as the appview reads them. Each event's data is a garden.engram.defs#loungeEvent; its id is a cursor to resume from. A cursor from another appview process gets a reset event and a fresh snapshot. A comment line is sent every 25 seconds to keep the connection open. Same authentication as garden.engram.listPresence.