Actions8
- Message Actions
- Contact Actions
- Conversation Actions
- Template Actions
- Account Actions
Message → Get Context
AI-generatedSummary
Retrieves the conversation context (recent messages) for a given WhatsApp contact.
Inputs
- Contact Phone (required) — The contact phone number (digits only, with country code).
- Max Messages — Maximum number of messages to include in the context (default: 50, range: 1‑500).
- Account Phone — WhatsApp number to use if the organization has multiple numbers (e.g., 5215588392274).
Output shape
The API response from the /conversation endpoint, typically containing an array of message objects and any associated metadata.
If the call succeeds, the result is placed under the
jsonproperty of each output item.
Examples
Example 1: Fetch the latest 30 messages for a contact.
Set Contact Phone to the target number, set Max Messages to 30.