Receiving messages

Inbound messages

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

See the following page to understand more about retrieving messages

HTML

{
  "id": "96a0b5fa-a986-453d-be5c-3117f989f025",
  "channelId": "614208aa-b153-4d5d-9989-2fddfc0ce4c3",
  "sender": {
    "contact": {
      "id": "86c4bf7e-d3b4-444e-ae2e-440f3451122",
      "identifierKey": "emailaddress",
      "identifierValue": "john.smith@example.com"
    }
  },
  "receiver": {
    "connector": {
      "id": "86cc4dc0-3dc0-41b7-ac43-8ec829ead56f"
    }
  },
 
 "body": {
    "type": "html",
    "html": {
      "text": "sometext"
      "html": "<somehtml>"
    }
  },

  "parts": [
    {
      "platformReference": "1234459590994@mail.mail.com"
    }
  ],
  "status": "delivered",
  "reason": "",
  "details": "",
  "direction": "incoming",
  "lastStatusAt": "2022-12-22T08:32:50.736Z",
  "createdAt": "2022-12-22T08:32:50.736Z",
  "updatedAt": "2022-12-22T08:32:50.736Z"
}

Last updated