Interactive

User replies to your List message

{
  "app": "DemoApp",
  "timestamp": 1580228523976,
  "version": 2,
  "type": "message",
  "payload": {
    "id": "ABEGkYaYVSEEAhCzqobr15BdMPcRup1fIXAJ",
    "source": "918x98xx21x4",
    "type": "list_reply",
    "payload": {
            "title": "section 1 row 1",
            "id": "list1",
            "reply":"section 1 row 1 1",
            "postbackText":"section 1 row 1 postback payload",
            "description": "first row of first section description"
        },
    "sender": {
      "phone": "918x98xx21x4",
      "name": "John",
      "country_code": "91",
      "dial_code": "8x98xx21x4"
    },
    "context": {
        "id": "gBEGkYaYVSEEAgnPGGVYGg1uNU4",
        "gsId": "cbdafe39-1023-42a7-89d6-6c01a3388bb5"
    }
  }
}

Payload object description

KeyDescriptionExample
titleThe section's title of the selected messagesection 1 row 1
idThe developer defined message ID i.e. the custom ID(alpha-numeric) provided in API request when sending the list message.list1
replyThe title of the list item selected from the section of the list message along with the index of the list item.section 1 row 1 1
postbackTextThe developer defined postback payload for a particular item in the list.section 1 row 1 postback payload
descriptionThe description of the selected list itemfirst row of first section description

User replies to Quick Reply message

{
    "app": "DemoApp",
    "timestamp": 1580228523976,
    "version": 2,
    "type": "message",
    "payload": {
        "id": "ABEGkYaYVSEEAhCzqobr15BdMPcRup1fIXAJ",
        "source": "918x98xx21x4",
        "type": "quick_reply",
        "payload": {
            "title": "First",
            "id": "qr1",
            "reply": "First 1"
        },
        "sender": {
            "phone": "918x98xx21x4",
            "name": "John",
            "country_code": "91",
            "dial_code": "8x98xx21x4"
        },
        "context": {
            "id": "gBEGkYaYVSEEAgkvE0f1ZkfXX78",
            "gsId": "123b0fb2-0620-493b-8f7e-5a1ceb6d8c58"
        }
    }
}

Payload object description

KeyDescriptionExample
titleThe title of the button selected by the userFirst
idThe developer-defined message ID i.e. the custom ID(alpha-numeric) provided in API request when sending the list message.qr1
replyThe title of the button clicked along with the index of the buttonFirst 1

User replies to your location request message

{
    "app": "Jeet20",
    "phone": "918452850482",
    "timestamp": 1682505204576,
    "version": 2,
    "type": "message",
    "payload": {
        "id": "ABEGkWIFlHeVAhCz32ByUk3D11ju98UPw_BE",
        "source": "916205947795",
        "type": "location",
        "payload": {
            "longitude": "86.1941876",
            "latitude": "22.7622767"
        },
        "sender": {
            "phone": "916205947795",
            "name": "Vishal Kumar",
            "country_code": "91",
            "dial_code": "6205947795"
        },
        "context": {
            "id": "gBEGkWIFlHeVAglFUZUUf5DKWfc",
            "forwarded": false,
            "frequently_forwarded": false
        }
    }
}

Payload object description

KeyDescriptionExample
idThe developer-defined message ID i.e. the custom ID(alpha-numeric) provided in the API request when sending the list message.ABEGkWIFlHeVAhCz32ByUk3D11ju98UPw_BE
longitudeLongitude of user's location in degrees86.1941876
latitudeLatitude of user's location in degrees22.7622767

What’s Next

In the next chapter of this guide, you'll learn about inbound message type: Other messages