Incoming message location

Webhook Incoming message- Location

This webhook send incoming message as and when user send a location.

Location data will contain lat and long.

When user gives a reply to a previous message then context will be provided.

Method: POST

Parameters:

Parameter

Description

Data Type

ncmessage_id

ncmessage_id is unique id which is given when you send any message via PUSH api.

String

message_id

Unique message id

String

received_at

The time of status. The time when the message is received

Date - Time

mesage_type

The type of message will be “location”

String

latitude

The latitude of location

String

longitude

The longitude of location

String

from

The user mobile number

number

Webhook Payload


    "incoming_message": [{ 
        "message_id": "ABEGkZlgQyWAAhC3CZb1ttzQo0mvQBbL2pFk", 
        "from": "919960432580", 
        "received_at": "1567092229", 
        "context": { 
            "ncmessage_id": null, 
            "message_id": null 
        }, 
        "message_type": "LOCATION", 
        "location_type": { 
            "address": "Dosti Pinnacle, Unit No. G1, Plot No. E7, Th\u0101ne, 
Mah\u0101r\u0101shtra 400604", 
            "latitude": 19.198988196033, 
            "name": "Passport Seva Kendra", 
            "url": "http:\/\/www.passportindia.gov.in", 
            "longitude": 72.948932751057 

    }] 

Last updated