Share feedback, ideas and get community help

Updated 4 months ago

Block WebHook with Form-Data

At a glance

The community member is asking how to implement an API POST using a block WEBHOOK but using form-data. They provide an example curl command that includes various form fields. In the comments, another community member suggests that the user can add a specific header (Content-Type: x-www-form-urlencoded) and then include a JSON body with the required fields (uuid and field1). However, there is no explicitly marked answer in the post.

Useful resources
Hi, community and masters
How to implement a api POST using block WEBHOOK but using form-data?

example:
curl --location 'https://domain.com/?step=1&variation=default' \
--form 'uuid=""' \
--form 'field1=""' \
--form 'email="xpto@gmail.com"' \
--form 'phone="12312"' \
--form 'field2="on"'
B
1 comment
In theory you should be able to do that by adding the following header:

Key: Content-Type
Value: x-www-form-urlencoded

Then you can add a JSON body, something like:

Plain Text
{
  "uuid": "id",
  "field1": "{{Name}}"
}
Add a reply
Sign up and join the conversation on Discord