Velix WhatsApp Tool icon

Velix WhatsApp Tool

Send and read WhatsApp messages via Velix API. Use this tool to send text messages, images, reactions, locations, and contacts through WhatsApp, and to read recent messages from a contact or group chat. The instance ID is pre-configured — you only need to provide the recipient and message content.

List Messages

AI-generated

Summary

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.

Links

Discussion