-
infinidatAsked 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?
-
John Support Team LeadReplied 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/
-
infinidatReplied on June 21, 2019 at 1:14 PM
-
infinidatReplied on June 21, 2019 at 1:15 PMSee the screenshot from webhook.site, similar to requestbinThe content type is not application/jsonThe JSON string is just a one part in the response bodyIs it possible to have it send just the JSON with content type application/json?
-
John Support Team LeadReplied on June 21, 2019 at 6: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?
-
infinidatReplied on June 22, 2019 at 3:41 AM
The automation platform we are using can’t handle multipart webhooks, they can only handle a JSON body.
-
roneetReplied on June 22, 2019 at 1: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