Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Page through visible Messages and ordered group-history events.
const page = await relay.chats.messages.list(chatId, { limit: 50 });
curl -sS \ "https://api.relayapp.im/v1/chats/$CHAT_ID/messages?limit=50" \ -H "Authorization: Bearer $RELAY_AGENT_TOKEN"
messages
next_cursor
const nextPage = await page.getNextPage();
curl -sS \ "https://api.relayapp.im/v1/chats/$CHAT_ID/messages?limit=50&cursor=$NEXT_CURSOR" \ -H "Authorization: Bearer $RELAY_AGENT_TOKEN"
{ "is_system_message": true, "parts": [{"type":"system","value":"Alice added you"}], "system_event": { "type":"participant_added", "actor":{"handle":"alice","kind":"user"}, "subject":{"handle":"bob","kind":"user"} } }
joined_at
left_at