Make the API Call (action)
After configuring your API Call element, you can make calls to the endpoint you specified using the "Make the Call" action.
All the values you provide to the action are given in key/value pairs, that will be turned into a JSON object and sent to the API provider.


Headers
The list of headers to add to a call, like, for instance, an "Authorization" header to send the user's access token.

If no "Content-Type" header is provided, the plugin will fill it with an "application/json" value.
URL Parameters
The list of parameters to be sent on the URL as parameters.
For instance: https://endpoint.com?param1=hello¶m2=world sends 2 parameters: param1 = "hello" and param2 = "world".

Body
The JSON body of a call, that can be composed of different types of data, like texts, numbers, dates et cetera.
These field will be ignored for GET calls.
Ignore empty fields
If you set this to "yes", body values that come from empty inputs won't be included on the call.
Sometimes though, you'll want "null" values on a call. In that case, change this option to "no".

JSON fields
If you wish to send JSON structured data or lists/arrays, you must provide them as JSON texts, that will be parsed as JSON Objects by the plugin, to make the API Call.

Raw body
If you wish, you can build a JSON body without using the key/value pairs.
Using the Raw body will parse the text as JSON, but it probably won't understand date types.


Last updated