Actions16
Listar Mensagens
AI-generatedSummary
Retrieve a list of messages from a specified WhatsApp chat via the Palantiri API, limited by a maximum number of results.
Inputs
- Instance ID (required) — ID of the Palantiri API instance; must match the instance owning the API key if using an instance API key.
- Chat JID (required) — JID of the WhatsApp chat to list messages from, e.g., '5511999999999@s.whatsapp.net' or '120363xxx@g.us'.
- Limite — Maximum number of messages to return; defaults to 50.
Output shape
a list of messages from the specified chat
Returns a JSON array of message objects retrieved from the chat specified by Chat JID. The number of messages is limited by the 'Limite' parameter. Each item in the output corresponds to one input item.
Examples
Example 1: List recent messages from a chat
Set 'Instance ID' to the target instance, 'Chat JID' to the desired chat's JID, and optionally adjust 'Limite' (default 50) to limit results.