Retrieve messages from a conversation with comprehensive filtering and search capabilities.
conversation-messages if not specifiedascending=false)query parameter with comma-separated termsorderId to search by Shopify order IDquery and orderId togetheraction query parameter.| Action | Description | Required Parameters |
|---|---|---|
conversation-messages | Get messages from a conversation (default) | tenantId, whatsappNumber or contactId |
contacts | List all contacts | tenantId |
find-by-phone | Find a contact by phone number | tenantId, whatsappNumber |
| Sender Type | Description |
|---|---|
user-whatsapp | Message sent by the customer via WhatsApp |
bot-whatsapp | Automated bot response |
human-whatsapp | Message sent by a human agent |
system | System-generated message |
| Status | Description |
|---|---|
sent | Message has been sent |
delivered | Message has been delivered to recipient |
read | Message has been read by recipient |
failed | Message delivery failed |
| Media Type | Description |
|---|---|
image | Image attachment (JPEG, PNG, etc.) |
video | Video attachment |
audio | Audio message or voice note |
document | Document (PDF, DOCX, etc.) |
interactive | Interactive message (buttons, lists) |
| Status | Description |
|---|---|
active | Bot is actively responding to this contact |
paused | Bot responses are paused (human takeover) |
null | No bot configured for this contact |
Bearer token for authentication. Format: Bearer YOUR_BEARER_TOKEN
Organization tenant identifier
API action to perform
conversation-messages, contacts, find-by-phone WhatsApp phone number (required for message and find-by-phone actions)
Contact UUID (alternative to whatsappNumber)
Number of items per page (messages: default 10, contacts: default 50)
1 <= x <= 100Page number for pagination
x >= 1Search terms (comma-separated for multiple terms)
Shopify order ID to search for (fetches order number from Shopify)
Message order (false = newest first, true = oldest first)
Search contacts by name/phone (for contacts action)
Successful response
Whether the request was successful
true
Array of conversation messages
Number of messages returned in this response
x >= 010
Whether search filtering was applied
true
Search terms that were applied (if any)
["#4275", "urgent"]Whether messages were stored in contact record
false