wakit icon

wakit

Send WhatsApp messages and manage contacts via wakit

Actions8

Message → Get Context

AI-generated

Summary

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 json property 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.

Links

Discussion