Read a conversation
read_messagesRead a WhatsApp conversation's messages newest first for a person or group, with paging to fetch older messages and merged timelines when phone and LID identities apply.
Instructions
Read one conversation from this channel's message log, newest first: a person or a group. For a person, both of their WhatsApp addresses (phone number and LID) are read as one timeline where the channel holds the lid_lookup grant; merge says whether that happened, and each message's source_chat says which address it came from. In a group, each sender is one identity (sender_jid, with sender_lid beside it). Pages hold up to limit messages (default 50); when next_before is present, pass it as before to read the next, older page. Only messages captured while the channel was connected are present, plus history the phone sent if the channel stores it (source: history_sync). Every page read is recorded in the channel's API access records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | The chat: a JID such as 15551234567@s.whatsapp.net or 120363000000000000@g.us, or a phone number in international form. Use chat_jid values from list_chats. | |
| limit | No | Messages per page, 1 to 500. Default 50. | |
| before | No | The next_before value of a previous page, exactly as returned. |