Sign In
Sign In
  1. Home
  2. APIs
  3. Receive a message
  4. Body examples
APIs
37 articles
WhatsApp Push v1.03
Agent Handover v1.04
Data Compliance API4
Widget Javascript API4
Message Trigger v1.12
Messaging v1.14
Send a message2
Receive a message4
Attachment payloads
Request authenticity signature
Expected response code
Body examples
Introduction
Change log

Body examples

Review example webhook body payloads for text, image, generic template, and CSAT survey messages.

Updated on September 24, 2026

Text message

JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "quick_replies": [],
    "text": "A text message"
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c",
  "sender_type": "bot"
}

Text message with image

The above example results from 2 calls to the webhook, one with the text message, and one with the image:

JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": null,
    "quick_replies": [],
    "text": "Enjoy the Eiffel tower:"
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c",
  "sender_type": "bot"
}
JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": {
      "type": "image",
      "payload": {
        "url": "http://url_or_the_image",
        "alt_text": "http://url_or_the_image",
      }
    },
    "text": "",
    "quick_replies": []
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c",
  "sender_type": "bot"
}

Video message

JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": {
      "type": "video",
      "payload": {
        "url": "http://url_or_the_video"
      }
    },
    "text": "",
    "quick_replies": []
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c",
  "sender_type": "bot"
}

Text message with quick replies

JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "quick_replies": [
      {
        "payload": "{\"title\": \"Thank you πŸ˜‰\", \"target_intent_id\": 22450}",
        "title": "Thank you πŸ˜‰"
      },
      {
        "payload": "{\"title\": \"🚩 Change city\", \"target_intent_id\": 22451}",
        "title": "🚩 Change city"
      }
    ],
    "text": "It is sunny in Paris"
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c"
}

Text message with generic template (with one element)

The above example results from 2 calls to the webhook, one with the text message, and one with the generic template:

JSON

{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": null,
    "quick_replies": [],
    "text": "It is sunny in Paris"
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c",
  "sender_type": "bot"
}
JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": {
      "type": "template",
      "payload": {
        "template_type": "generic",
        "elements": [
          {
             "title": "Paris",
             "subtitle": "Eiffel tower",
             "image_url": "http://url_or_the_image",
             "buttons": [
               {
                  "title": "Book a hotel",
                  "type": "web_url",
                  "payload": "http://link_to_redirect_to" 
               },
               {
                  "title": "Thank you πŸ˜‰",
                  "type": "postback",
                  "payload": "{\"title\": \"Thank you πŸ˜‰\", \"target_intent_id\": 22451}"
               }
             ]
          }
        ]
      }
    },
    "text": ""
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c"
}

Text message with generic template (with multiple elements)

The above example results from 2 calls to the webhook, one with the text message, and one with the generic template:

JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": null,
    "quick_replies": [],
    "text": "Check out the weather in those European cities:"
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c",
  "sender_type": "bot"
}
JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": {
      "type": "template",
      "payload": {
        "template_type": "generic",
        "elements": [
          {
             "title": "London",
             "subtitle": "Big Ben",
             "image_url": "http://url_or_the_image"
          },
          {
             "title": "Paris",
             "subtitle": "Eiffel tower",
             "image_url": "http://url_or_the_image",
             "buttons": [
               {
                  "title": "Book a hotel",
                  "type": "web_url",
                  "payload": "http://link_to_redirect_to" 
               },
               {
                  "title": "Thank you πŸ˜‰",
                  "type": "postback",
                  "payload": "{\"title\": \"Thank you πŸ˜‰\", \"target_intent_id\": 22451}"
               }
             ]
          },
          {
             "title": "Madrid",
             "subtitle": "Plaza Mayor",
             "image_url": "http://url_or_the_image"
          }
        ]
      }
    },
    "text": ""
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c"
}

Attachment with list template

JSON
{
  "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
  "message": {
    "attachment": {
      "type": "template",
      "payload": {
        "template_type": "list",
        "elements": [
          {
             "title": "Title Element 1",
             "subtitle": "Subtitle Element 1",
             "image_url": "http://url_or_the_image",
             "buttons": [
               {
                  "title": "Button",
                  "type": "web_url",
                  "payload": "http://link_to_redirect_to" 
               }
             ]
          },
          {
             "title": "Title element 2",
             "subtitle": "Subtitle element 2",
             "image_url": "http://url_or_the_image",
          },
          {
             "title": "Title element 3",
             "subtitle": "Subtitle element 3",
             "image_url": "http://url_or_the_image"
          }
        ]
      }
    },
    "text": ""
  },
  "request_id": "33cf5e95-d39e-428a-96a8-fa5de30ebc1c"
}

Text message with CSAT

If the CSAT survey is enabled in a step on the platform, the chatbot will send the the following payload to the webhook endpoint:

JSON
{
    "end_user_token": "df6a0edc-b31d-461x-ydcx-f7d5f02cd3d0",
    "request_id": "be94586d-96cc-46ac-a70a-df5b12c807d2",
    "event": {
        "type": "csat_activation_event",
        "meta_content": {
            "message_id": "ecafc028-f92e-459b-a172-2bdffb13e867",
            "service_record_id": 17,
            "case_statement_record_id": 11
        },
    },
}

Was this article helpful?

On this page
  • Text message
  • Text message with image
  • Video message
  • Text message with quick replies
  • Text message with generic template (with one element)
  • Text message with generic template (with multiple elements)
  • Attachment with list template
  • Text message with CSAT

Made from France πŸ’™

Categories

  • ANALYTICS
  • BUILD
  • LOUIS AI
  • INTEGRATE

πŸ”— Useful Links

  • Sign In
  • Website
  • Terms & Conditions

Β© 2026

MindsayPowered by Mindsay

Search the help center…

Search help center articles