Messages are returned in reverse chronological order (newest first) by default.
Request
Chat JID identifier:
- For individual chats:
[email protected] - For group chats:
[email protected]
[email protected]Device identifier for multi-device support. Required when multiple devices are registered. If only one device is registered, it will be used as the default.
Maximum number of messages to return per page (max: 100)
Number of messages to skip for pagination
Filter messages from this timestamp (ISO 8601 format)Example:
2024-01-01T00:00:00ZFilter messages until this timestamp (ISO 8601 format)
Only return messages with media content (images, videos, audio, documents)
Filter messages by sender:
true: Messages sent by youfalse: Messages received from others- Omit parameter: All messages
media_only=true and is_from_me=false, media_only takes precedenceSearch messages by text content
Response
Response code (e.g.,
SUCCESS)Response message describing the result
