Actions19
Message → Get Messages
AI-generatedSummary
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