Postback Received

This event occurs when the user presses a Postback Button (which is a part of a Structured Message). You can react to this event by performing an action or by sending a reply.

{
  "event": "postback",
  "timestamp": "2020-03-01T15:49:02.243Z",
  "data": {
    "channel": {
      "id": "6456078759331238786",
      "type": "whatsapp"
    },
    "contact": {
      "id": "6456078781510718339",
      "phone_number": "15558576309",
      "platform_id": "15558576389",
      "name": "Han Solo"
    },
    "postback": {
      "payload": "{{DEVELOPER_DEFINED_PAYLOAD}}"
    }
  }
}

Parameter

Type

Description

postback.payload

string

Payload of the Postback Button that has been pressed.