What are the request details sent out in Webhook and how to map them?

Here is the payload sent for this form. 

Please see comments in the payload for details. 

{
  "event_id": "df69ea18-e5ac-4ad1-a554-718866adc094",
  "event_type": "survey_response",
  "survey_response": {
    "definition": {
      "id": "21b55038-ca41-4a93-9b86-9fae3e0915bc",
      "title": "Share your testimonials,"
      "fields": [
        {
          "id": "f581ca0d-9819-4293-a6a8-52faebd1fa16",
          "type": "commentbox",
          "title": "Your testimonial."
        },
        {
          "id": "f9ecb446-5eeb-4dbb-a6aa-04807448c6bb",
          "type": "fileupload",
          "title": "Your headshot"
        },
        {
          "id": "landed_at",
          "type": "textfield",
          "title": "Landed At"
        },
        {
          "id": "submitted_at",
          "type": "textfield",
          "title": "Submitted At"
        }
      ],
      "answers": [
        {
          "id": "f581ca0d-9819-4293-a6a8-52faebd1fa16",
          "type": "commentbox",
          "value": "Your testimonial"
        },
        {
          "id": "f9ecb446-5eeb-4dbb-a6aa-04807448c6bb",
          "type": "fileupload",
          "value": "Your headshot"
        },
        {
          "id": "landed_at",
          "type": "textfield",
          "value": "2020-07-31T18:38:20.908Z"
        },
        {
          "id": "submitted_at",
          "type": "textfield",
          "value": "2020-07-31T18:38:20.908Z"
        }
      ]
    },

/* above block is to be used for development purposes */ 

---------------------------------------------------------------------------------------------------------------------------

/* Use the below block for mapping to external integration tools 

   Note: Use the ID corresponding to question name if the question name is not shown directly.

    eg. for question Your Testimonial the id starts with "f581ca....'.  */

    "answers": {
      "f581ca0d-9819-4293-a6a8-52faebd1fa16": "Your testimonial",
      "f9ecb446-5eeb-4dbb-a6aa-04807448c6bb": "Your headshot",
      "landed_at": "2020-07-31T18:38:20.908Z",
      "submitted_at": "2020-07-31T18:38:20.908Z"
    }
  }
}
Here is the screenshot of how it is mapped in Integromat. Mapping 'Your testimonial' answer to 'Body of an email'. 

Still need help? Contact Us Contact Us