MEGA (Legacy) icon

MEGA (Legacy)

Legacy type ID of the MEGA node, kept so existing workflows keep running. Use @clubmega/n8n-nodes-mega.mega in new workflows; both types have the same parameters.

Actions408

Conversation → List Messages

AI-generated

Summary

List messages for a specified conversation within a given account and inbox, retrieving at least a minimum number of messages with support for pagination before a specified message ID.

Inputs

  • Account (required) — Select the account to use; choose from a list or specify an ID.
  • Inbox (required) — Select the inbox within the account; choose from a list or specify an ID.
  • Conversation (required) — Select the conversation to fetch messages from; choose from a list or specify an ID.
  • Fetch At Least — Minimum number of messages to fetch. The operation will paginate until this number is reached or no more messages are available.
  • Before Message — Fetch messages before this message ID to enable pagination backwards in the message list.

Output shape

a list of message objects associated with the specified conversation

The operation returns multiple messages, paginating through results if necessary to meet the 'Fetch At Least' minimum. Optional 'Before Message' input filters messages to those sent before the specified message ID.

Examples

Example 1: Fetch the last 50 messages from a conversation in a specific inbox and account.

Provide the Account ID or select from list, Inbox ID, Conversation ID, set 'Fetch At Least' to 50.

Links

Discussion