Actions56
- Message Actions
- Instance Actions
- Connection Actions
- Profile Actions
- Behavior Actions
- Anti-Ban (Legacy) Actions
- Anti-Ban V2 Actions
- Handoff Actions
- Webhook Actions
- Media Actions
- System Actions
Message → Get History
AI-generatedSummary
Retrieves recent message history stored on the Wasup worker for a chosen WhatsApp instance, with optional filters for direction, count and start time.
Inputs
- Instance (required) — The WhatsApp instance to query. Pick from a searchable list or enter the instance ID directly (e.g. wa_lxyz123_abc45).
- Filters > Direction — Inbound or outbound messages. The UI default is 'inbound' once the filter is added. If the filter isn't added, no direction is sent.
- Filters > Limit — Maximum number of messages to return (1–200, default 50 when added).
- Filters > Since — Only return messages after this timestamp.
Output shape
The JSON response from GET /api/instances/{id}/messages, emitted as n8n items. If the API returns an array, each element becomes its own item. If it returns an object, it becomes a single item.
The response structure isn't defined in the node, so check the Wasup API for the exact fields. Empty filter values are dropped before sending. With Continue On Fail enabled, a failed item returns {error: message}.
Examples
Example 1: Fetch the latest 20 inbound messages for a support number
Instance: select from list; Filters: Direction=Inbound, Limit=20
Example 2: Audit messages sent since the start of the day
Filters: Direction=Outbound, Since=today 00:00, Limit=200