Receiving messages

Inbound messages

In this section, you can find sample messages of every inbound message type supported by the Channels API from WhatsApp. The code snippets in every subsection demonstrate how a WhatsApp message is converted into a Channels API message.

See the following pages to understand more about retrieving messages or message statuses

Text

{
  "id": "96a0b5fa-a986-453d-be5c-3117f989f025",
  "channelId": "614208aa-b153-4d5d-9989-2fddfc0ce4c3",
  "sender": {
    "contact": {
      "id": "32cf5eee-f940-422c-ab8c-5f753aad5efd",
      "identifierKey": "phonenumber",
      "identifierValue": "+31612345678"
    }
  },
  "receiver": {
    "connector": {
      "id": "86cc4dc0-3dc0-41b7-ac43-8ec829ead56f"
    }
  },
  "body": {
    "type": "text",
    "text": {
      "text": "Sample incoming text message"
    }
  },
  "parts": [
    {
      "platformReference": "wamid.HBgLMzE2MjUzNDg2MjAVAgASGBQzQTE0NTY1MjU0Q0IxN0EwRjc3OQA="
    }
  ],
  "status": "delivered",
  "direction": "incoming",
  "lastStatusAt": "2022-12-22T08:32:50.736Z",
  "createdAt": "2022-12-22T08:32:50.736Z",
  "updatedAt": "2022-12-22T08:32:50.736Z"
}

Image

Sticker

Document

Video

Location

Audio

Interactive message reply

The following message is an example of an inbound message received when a WhatsApp user clicks on a button.

Last updated

Was this helpful?