Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Chat → Get Recent Messages

AI-generated

Summary

Fetches recent persisted messages for a specified chat from the Baileys Instance API.

Inputs

  • Chat JID (required) — The chat JID whose messages to retrieve.
  • Limit — Maximum number of recent messages to return; defaults to 10 and accepts values from 1 to 100.

Output shape

A list of message items, with each object in the API response's items array returned as a separate n8n item.

If the response does not contain an items array, the response is returned as a single n8n item. Non-object entries in items are ignored.

Links

Discussion