Message Echo

Message echo event is invoked whenever message is sent to user. This callback allows you to track all messages being sent no matter if they're sent by you or by someone else.

{
  "event": "message_echo",
  "timestamp" : "2017-12-29T17:26:17.331Z",
  "data" : {
    "id": "6456078996108088196",
    "channel": {
      "id": "6456078759331238786",
      "type": "mobile"
    },
    "contact": {
      "id": "6456078781510718339",
      "phone_number": "15558576309"
    },
    "content": {
      "type": "text",
      "payload": "We know, we try really hard to bring always something more to our great users!"
    },
    "metadata": {
      "any": "arbitrary data"
    }
  }
}

Parameter

Type

Description

data

object

Object representing message which is echoed. Different type of messages can be received (text, image, etc.). The structure matches Send Message response body.