Message Echo

Message echo event is invoked whenever a message is sent to a contact. This callback allows you to track all messages being sent no matter if they're sent by your channel or by someone else. For example, messages sent to Facebook users directly from Facebook Page administration or messages sent by some other Amio channel can be easily recorded.

{
  "event": "message_echo",
  "timestamp": "2016-10-06T13:42:48Z",
  "data": {
    "id": "{{MESSAGE_ID}}",
    "channel": {
      "id": "{{CHANNEL_ID}}",
      "type": "{{CHANNEL_TYPE}}",
      "name": "{{CHANNEL_NAME}}"
    },
    "contact": {
      "id": "{{CONTACT_ID}}"
    },
    "content": {
      "type": "text",
      "payload": "We know, we try really hard to bring always something more to our beloved customers!"
    },
    "metadata": {
      "any": "arbitrary data"
    }
  }
}
ParameterTypeDescription
dataobjectObject representing message which is echoed. Different type of messages can be received (text, image, etc.). The structure matches Send Message response body.