RyzeAPI icon

RyzeAPI

Send WhatsApp messages and manage your RyzeAPI instances

Chat → Get History

AI-generated

Summary

Retrieve the message history of a specified chat within a chosen WhatsApp instance, optionally filtered by date range and limited by message count.

Inputs

  • Instance Name or ID (required) — Select the WhatsApp instance to operate on, either from the provided list or by specifying an ID via expression.
  • Number (required) — Specify the chat identifier to fetch history from; can be a phone number, JID, group, or newsletter.
  • Count — Set the maximum number of messages to retrieve, defaulting to 50 if not specified.
  • Date Range — Optionally define a start and end date/time to limit the retrieved chat messages within that period.

Output shape

a list of chat messages

The response includes up to the specified count of messages from the chat history, optionally filtered by the provided date range. The output is a list of message objects containing message details.

Links

Discussion