Facebook Channel

When there are new incoming messages, or message status is updated (e.g., sent, read), iSlash will post data to the Webhook URL.

Incoming

{
  "object": "page",
  "entry": [
    {
      "id": "101577621799715",
      "time": 1692603667565,
      "messaging": [
        {
          "sender": {
            "id": "5696251489156017"
          },
          "recipient": {
            "id": "101577621799715"
          },
          "timestamp": 1692603667024,
          "message": {
            "mid": "m_P10R86QejqZGH_elIs8rtx-fllvb5gZ6gtMVyjR2CaW96qcItvaMPY0Os84-jit8H5cVZDdmzXFBRfN3eFqD7A",
            "text": "Hi"
          }
        }
      ]
    }
  ]
}

Other Message Status

Please refer to https://developers.facebook.com/docs/whatsapp/api/webhooks/inbound for other incoming message types.

{
    "object": "page",
    "entry": [
        {
            "time": 1692604786155,
            "id": "101577621799715",
            "messaging": [
                {
                    "sender": {
                        "id": "5696251489156017"
                    },
                    "recipient": {
                        "id": "101577621799715"
                    },
                    "timestamp": 1692604786005,
                    "delivery": {
                        "mids": [
                            "m_JiJWPqr36dPtP3qjT-1Bfh-fllvb5gZ6gtMVyjR2CaWeqI38tMhiZGv9vFVv78PsnStQ2O4G4p-dN6K0EgD_zw"
                        ],
                        "watermark": 1692604785165
                    }
                }
            ]
        }
    ]
}

Last updated