List Messages in a Chat
View All WhatsApp Messaging API APIs →Return the most recent messages of one chat from the local store, oldest to newest. Provide the chatJid (e.g. 8613800138000@s.whatsapp.net for a direct chat or 120363...@g.us for a group). Each message includes id, chatJid, fromMe, timestamp, text, and type. Use limit to control how many are returned.
API Features
Ordered history Returns a chat's recent messages oldest-to-newest for natural conversation rendering
Direction flag fromMe distinguishes your outgoing messages from the contact's incoming ones
Adjustable depth Use limit to fetch just the latest few or a longer slice of history
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 1000 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page.Dashboard →
API Response (JSON)
{} Query Result
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Use Cases
- Display full conversation threads in a support or sales UI
- Sync chat history into a CRM or data warehouse
- Provide context to an LLM assistant before generating a reply