Chat icon

Chat

Interact with the Chat API

Actions253

Conversation → List Messages

AI-generated

Summary

List Messages operation for Conversation resource

Inputs

  • accountId (required) — Select the account to use.
  • inboxId (required) — Select the inbox to use.
  • conversationId (required) — Select the conversation to use.
  • fetchAtLeast — Minimum number of messages to fetch. Will keep paginating until this count is reached or no more messages are available. Default is 20.
  • listMessagesOptions — Additional options for listing messages.

Output shape

array

Array of message objects retrieved from the conversation. Each message contains its content, metadata, and optional attachment information.

Examples

Example 1: Paginate messages from the newest backward.

Set Conversation, leave Before Message empty, and set Fetch At Least to 100 to get the most recent 100 messages.

Links

Discussion