Chat icon

Chat

Interact with the Chat API

Actions253

Chat Room → List Messages

AI-generated

Summary

List messages from a selected chat room with optional pagination

Inputs

  • accountId (required) — Select the account to use.
  • chatRoomId (required) — Select the chat room to use.
  • page — Page number for message pagination.
  • perPage — Number of messages per page (max 50).

Output shape

a paginated list of message objects

Returns a list of messages; page and perPage parameters control the slice; maximum perPage is 50; empty list when no messages match.

Examples

Example 1: Fetch the first page of messages (20 items) from a chat room

accountId: 123, chatRoomId: 456, page: 1, perPage: 20

Links

Discussion