Webhooks with JSON data instead of form multipart

  • Profile Image
    infinidat
    Asked on June 21, 2019 at 10:33 AM

    Hi,


    Is it possible to have Jotform send a webhook data in JSON format instead of form multipart?

  • Profile Image
    JohnRex
    Answered on June 21, 2019 at 12:07 PM

    Please note that the Webhook data is sent out in JSON format. You need to input a URL to which the JSON data is sent.

    You may refer to this guide : https://www.jotform.com/help/245-How-to-Setup-a-Webhook-with-JotForm

    When you receive the data using Pastebin, you can inspect JSON data sent.

    For further details on Webhooks you can refer to the API docs here: http://api.jotform.com/docs/

     

  • Profile Image
    infinidat
    Answered on June 21, 2019 at 01:14 PM

    15611372355021D9CC-2AB2-42F7-B61D-608780

  • Profile Image
    infinidat
    Answered on June 21, 2019 at 01:15 PM
    See the screenshot from webhook.site, similar to requestbin
     
    The content type is not application/json
     
    The JSON string is just a one part in the response body
     
    Is it possible to have it send just the JSON with content type application/json?
     
     
  • Profile Image
    JohnRex
    Answered on June 21, 2019 at 06:21 PM

    Unfortunately, the data is posted in multipart/form-data content type only.

    May we know your purpose in having the content type be in JSON, so we could check for  workarounds?

  • Profile Image
    infinidat
    Answered on June 22, 2019 at 03:41 AM

    The automation platform we are using can’t handle multipart webhooks, they can only handle a JSON body. 

  • Profile Image
    roneet
    Answered on June 22, 2019 at 01:55 PM

    You can build a custom page where you would be able to receive the Form data on Form's submission by using the HTTP post method.

    The HTTP Post method is a way for you to send data or your submission on a target endpoint where it can be received.


    To learn more about this, you can check this guide: https://www.jotform.com/help/51-How-to-Post-Submission-Data-to-Thank-You-Page


    Other helpful guides related to this is about PHP Forms: https://www.jotform.com/help/237-PHP-Forms-Explained 


    I hope this workaround helps!

    Thanks