Retrieving data from API

I have an API (from easyship.com) that returns couriers and shipping rates based on parameters passed to it. In the Bubble API I am using POST, I have the “use as” set to “Action”, The body of the API requests includes the following
{
“origin_address”: {
“country_alpha2”: <from_countrycode>,
},
“destination_address”: {
“country_alpha2”: <to_countrycode>
},
}

I have a button that when I press it I want the API to return data based upon the parms.

  1. Do I have to use a backend workflow? If so how do i set it up?

  2. Where do I initialise the parms to_countrycode and from_countrycode

thanks

You can do it in normal workflow. When the button is clicked, call the API, then you will see the params for the API, you can “insert dynamic” values there.