Velix WhatsApp Tool
Actions8
List Messages
AI-generatedSummary
Lists stored messages for a WhatsApp contact or group chat, returning the requested page newest first. Use the required instance and chat JID to fetch recent conversation context or page back through older messages with the offset.
Inputs
- Instance ID (required) — UUID of the Velix WhatsApp instance to query.
- Chat JID (required) — Chat identifier: phone@s.whatsapp.net for an individual or groupid@g.us for a group.
- Limit — Number of messages to return (1–100; default 20).
- Offset — Number of the most recent messages to skip (default 0). Increase it to fetch older pages.
Output shape
One output item per input item, containing a JSON object.
When the API response has an array in data, the output is {"messages": [...], "count": n}, where count is the number returned. Other object responses are passed through as returned by the API. Group messages identify the sender in from_jid. Errors stop execution unless Continue On Fail is enabled.
Examples
Example 1: Fetch the latest 20 messages from an individual chat.
Set Instance ID to the Velix instance UUID, Chat JID to the contact's phone@s.whatsapp.net, Limit to 20, and Offset to 0.
Example 2: Fetch an older page from a group chat.
Set Chat JID to the group's groupid@g.us, keep Limit at 20, and set Offset to 20 to skip the latest 20 messages.