Skip to main content

Get Messages

Retrieve all WhatsApp messages for a specific contact with pagination and search support.

GET/whatsapp/send-whatsapp-message/

Headers

NameValue
AuthorizationBearer Access Token

Query Parameters

NameTypeRequiredDescription
contact_idintegerYesContact ID to retrieve messages for
phone_number_idstringNoPhone number ID to filter messages
searchstringNoSearch term to filter messages by message content, contact number or message ID

Response

{
"message": "Successfully retrieved all messages",
"success": true,
"data": {
"next": "<URL to next page>",
"previous": "<URL to previous page>",
"count": 50,
"results": [
{
"id": 1,
"message": "Hello, this is a test message",
"message_id": "<WhatsApp message ID>",
"status": "<status (SENT/RECEIVED)>",
"created_at": "<timestamp>"
}
]
}
}