HTTP Request: Passing Parameters in Body

Hi. I am trying to get data from the Airtable API, and have several parameters with the same Name “fields” but different values. So the URL would look like https://www.baseurl.com?fields=Name&fields=Address&fields=Phone

Since the HTTP Request wizard will not allow parameters with duplicate names, the documentation advises to pass the parameters through the body. Being new to this, i’m not sure how to do this. How would I define the Body Format? And what would the format be to express the paramters in the Body field.

PS: I did do some research on the forums, and only found cases related to posting, and form data, which did not apply here.

Thank you in advance for your help!

1 Like

Hey @jon4378

Could you please show that documentation once?

Thanks
#nK

Sure, you can find it here.

1 Like

Okay @jon4378

I’m gonna guess here,

  1. "fields=Name&fields=Address&fields=Phone"

  2. "{ ""fields""=""Name"", ""fields""=""Address"", ""fields""=""Phone""}"

Please try and let know.

Thanks
#nK

Will do, thank you! And how would you guess to define the body format?

1 Like

Hey @jon4378

The second method is the normal way of how we pass the body, whereas first one I just used the same parameter format.

Also I think you can try directly passing in the URL field which I’m just thinking may work.

Thanks
#nK