Read WhatsApp Messages

-------------------------
3. READ WHATSAPP MESSAGES
-------------------------

Read WhatsApp Messages: Returns recent WhatsApp messages for a given conversation, using a unified messaging endpoint with type = "whatsapp".

Endpoint: POST /messages/read

Parameters (JSON body):

  • api_key (required, string): Your WhatsApp Messaging API key.
  • type (required, string): Must be "whatsapp" for WhatsApp messages.
  • recipient (required, string): WhatsApp number you want to read messages for (e.g. conversation partner or own number, depending on implementation).
  • limit (optional, integer): Maximum number of messages to return (default if omitted).

Example Request:

curl -X POST "https://umva.net/api/messaging/messages/read" \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "YOUR_WHATSAPP_API_KEY",
    "type": "whatsapp",
    "recipient": "250788123456",
    "limit": 5
  }'

Response: Returns an array of messages with fields such as content, direction (inbound/outbound), timestamps and any associated media metadata. The exact schema may evolve; always check for success and message first.