HTTP Request Block

Make an HTTP Request.

Response

Handle the response of the request.

  • Response type
    Type of the response, defaults to JSON.

  • Data path
    The dot notation to the data of the response. For example, when the response is returning these data:

    {
    	"status": 200,
    	"data": {
    		"name": "Prices",
    		"values": [
    			{ "id": 1, "value": 4000 },
    			{ "id": 2, "value": 24000 }
    		]
    	}
    }
    

    To get the values array, write data.values as the path. And to get the first value of the values array, write data.values.0.

  • Assign to variable
    Whether assign the value into a variable or not.

  • Variable name
    Name of the variable to assign the value.

  • Insert to table
    Whether insert the value into the table or not.

  • Select column
    The column where the value will be inserted.

Form Data

When using the multipart/form-data as the header, the request body will be sent as FormDataopen in new window. And because of that, you must follow the below format when writing the body

[
	["name", "value"],
	["name 2", "value 2"]
]

Referencing Data Inside Body

When referencing data like variables, table, etc, inside the body is a bit tricky because the result of it must be a valid JSON. And to prevent the "Content body is not valid JSON" error, follow these rules:

  • String value
    If the value of the data you reference is a string, you must wrap the mustache tag inside a double-quote ("). For example,
{
	"name": "{{variables@name}}",
	"email": "{{variables@email}}"
}
  • Multiline string value
    If the value of the data you reference is a string and has a new line in it, you must add an exclamation mark(!) before writing the keyword of the data. For example,
{
	"longText": {{!variables@article}}
}
  • Other
    If the value of the data you reference is object, array, etc, you can directly write the mustache tag inside the body. For example,
{
	"profile": {{variables@userProfile}}, // { name: 'John Doe', email: 'john@example.com' }
	"stats": {{variables@stats}} // [10, 200, 87, 21]
}