Webhooks - POST Body that isn't form-data

  • Profile Image
    Asked on September 23, 2019 at 04:12 PM

    Dear Jotform,

    Your service is marvelous and it is awesome that you have an option to post data through a webhook. This is incredibly useful for sending data to consuming services. I may be looking at it wrong, but it appears that the only way the POST body comes through is as multipart/form-data.

    To make your service even easier, is there a way it could be JSON instead?

    Then it would play nicely with services like AWS API gateway, and others. Customers could easily parse the data. As an alternative, is it possible to take the "boundary" out of the header, so there is a consistent header, which I can use to define a model in AWS?

    Again, I am grateful for the features in your forms that make my work easier. Please respond at your convenience.

    Thank you!

  • Profile Image
    Answered on September 23, 2019 at 05:34 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 can 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 more details on Webhooks, you can refer to the API docs here: http://api.jotform.com/docs

  • Profile Image
    Answered on September 24, 2019 at 03:16 PM

    I appreciate your direction to that online guide. Using the guide, and looking at my data in RequestBin, this is what I have been able to see so far (see below).

    As you can see, the header states "multipart/form-data". 

    Could you show me an example of the data coming into RequestBin as JSON? I am delighted to hear that it is possible. Please let me know what I am doing wrong, or what I am seeing wrong here.

    1569352529Annotation 2019-09-24 131441.j

  • Profile Image
    Answered on September 24, 2019 at 03:50 PM

    I'm sorry, but I'm afraid that this goes a bit out of our scope here in support, so I would advise you to reach our API support: api@jotform.com since they will be more knowledgable about the topic.

    Thank you!

  • Profile Image
    Answered on September 24, 2019 at 03:56 PM

    Thank you Nik! I appreciate your help!