Request the stored messages of a chat with optional date filters
Auth:Documentation Index
Fetch the complete documentation index at: https://docs.ryzeapi.cloud/llms.txt
Use this file to discover all available pages before exploring further.
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
count and filter by a date window with from/to.
from and to filters. The hasMore field is a heuristic: it is true when the number of returned messages == count (likely there are more).number and use the default count of 50 messages, returning the most recent ones in the chat ordered from newest to oldest.
from/to in ISO 8601). Useful to extract history for a specific interval or to paginate using to as a cursor.
number pointing to a group JID (@g.us) and count of 100. Each item in messages[] carries senderJid filled with the message author within the group.
messages carries the messages in reverse chronological order (newest first). count indicates how many items came in this page and hasMore is true when you reached exactly the requested count, signaling that there may be more messages, paginate by using the from/to from the last returned message. chat_jid is the resolved JID of the requested chat.
| Name | Required | Example | Description |
|---|---|---|---|
Content-Type | yes | application/json | — |
token | yes (or Authorization) | a1b2c3d4-... | TokenAccount or TokenInstance. |
...@s.whatsapp.net or ...@lid), group JID (...@g.us), or newsletter.to = timestamp of the oldest message already received in the previous call.hasMore=true does not guarantee 100% that more messages exist, it is just a heuristic based on the requested count.| HTTP | error.message | When it happens |
|---|---|---|
| 400 | Instance name is required | — |
| 400 | Invalid request body: <...> | Malformed JSON. |
| 400 | Number is required | — |
| 400 | invalid 'from' date format. Use ISO 8601 format (e.g., '2026-02-16T18:32:39Z') | — |
| 400 | invalid 'to' date format. Use ISO 8601 format (e.g., '2026-02-16T18:32:39Z') | — |
| 401 | Invalid token | — |
| 404 | Instance not found | — |