Actions69
- App Actions
- Chat Actions
- Device Actions
- Group Actions
- Add Participant
- Approve Participant Request
- Create Group
- Demote Participant
- Export Group Participants
- Get Group Info
- Get Group Info From Link
- Get Group Invite Link
- Get Group Participants
- Get Participant Requests
- Join Group With Link
- Leave Group
- Promote Participant
- Reject Participant Request
- Remove Participant
- Set Group Announce Mode
- Set Group Locked Status
- Set Group Name
- Set Group Photo
- Set Group Topic
- Message Actions
- Newsletter Actions
- Send Actions
- User Actions
Chat → Get Chat Messages
AI-generatedOverview
This node operation retrieves chat messages from a specified chat conversation in the Go WhatsApp Web MultiDevice API. It is useful for scenarios where you want to fetch message history from a particular chat, such as for analysis, backup, or display in an application. For example, you can get the last 50 messages from a group chat or filter messages by date range or content text.
Use Case Examples
- Fetch the last 100 messages from a specific chat JID to display chat history in a customer support dashboard.
- Retrieve only media messages sent by the user from a chat for media management or review.
- Search messages containing specific keywords within a chat for compliance or monitoring purposes.
Properties
| Name | Meaning |
|---|---|
| Device ID | Optional device ID override that takes priority over the credential device ID if set. |
| Limit | Maximum number of chat messages to return, useful for pagination or limiting data volume. |
| Offset | Number of messages to skip, used for pagination to fetch subsequent message batches. |
| Chat JID | The unique identifier of the chat (e.g., phone@s.whatsapp.net for individual or groupid@g.us for group) from which to retrieve messages. |
| Start Time | Filter to include only messages from this timestamp (ISO 8601 format) onwards. |
| End Time | Filter to include only messages up to this timestamp (ISO 8601 format). |
| Media Only | Boolean flag to return only messages that contain media content. |
| Is From Me | Filter messages by sender: all messages, only those sent by the user, or only received messages. When combined with media only, media only takes precedence. |
| Search | Search messages by content text to filter messages containing specific keywords or phrases. |
Output
JSON
messages- Array of chat messages retrieved from the specified chat.
Dependencies
- Go WhatsApp Web MultiDevice API
- API key credential for authentication
Troubleshooting
- Ensure the Chat JID is correctly formatted and corresponds to an existing chat.
- Verify that the device ID override, if used, is valid and authorized.
- Check API credentials and host URL configuration to avoid authentication errors.
- If filtering by date, ensure timestamps are in valid ISO 8601 format.
- When using media only filter with isFromMe=false, media only filter takes precedence and returns all media messages regardless of sender.