Fetch WhatsApp Chats

-------------------------
4. FETCH WHATSAPP CHATS
-------------------------

Fetch WhatsApp Chats: Returns the list of chats (conversations) for a given WhatsApp device/number.

Endpoint: POST /whatsapp/chats

Parameters (JSON body):

  • api_key (required, string): Your WhatsApp Messaging API key.
  • sender_number (required, string): WhatsApp device number whose chats you want to fetch.
  • limit (optional, integer): Maximum number of chats to return.

Example Request:

curl -X POST "https://umva.net/api/messaging/whatsapp/chats" \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "YOUR_WHATSAPP_API_KEY",
    "sender_number": "250789000111",
    "limit": 10
  }'

Response: Returns a list of chat objects (e.g. contact name, last message preview, last activity time, unread counts, etc.).