WA Ops icon

WA Ops

Automate WhatsApp with 140+ operations: messages, chats, contacts, groups, communities, newsletters, business, media upload, sessions, labels, and more. Your WhatsApp must be connected via https://waops.app/connect before using this node.

Message → Get Messages

AI-generated

Summary

Retrieves messages from a WhatsApp chat identified by its JID, returning up to the specified limit of messages.

Inputs

  • jid (required) — Chat JID where the message is located (e.g., 447700900000@s.whatsapp.net for a private chat or 120363316517167240@g.us for a group). Accepts plain phone numbers which are auto‑appended with @s.whatsapp.net if needed. Used for all message‑level operations (react, delete, edit, forward, star, markRead, getMessages, getMessageInfo, getContext).
  • limit — Maximum number of messages to retrieve. If omitted, defaults to 50.

Output shape

array

An array of message objects as returned by the WA Ops API. The exact shape of each object is not detailed in the provided source but corresponds to the API’s message representation.

Examples

Example 1: Get the most recent 20 messages from a group chat.

jid = "120363316517167240@g.us", limit = 20

Links

Discussion