API Node
API Node
The API Node invokes an API endpoint and returns back the status code, raw output, and JSON output if applicable. These APIs can be either publicly accessible or privately defined within your backend through the help of Authorization headers and Secrets. Simply define a URL, HTTP Method, relevant additional headers, and the body that you would like to send to the desired endpoint.
Tip: Creating Dynamic URLs
You can use a Templating Node and the “Dynamic” field of an API Node to quickly and flexibly make API calls in your Workflows. See the example below for more details. Notice how we do string concatenation in the Templating Node using Jinja2’s ~
syntax.
It’s better to use API Nodes over Code Execution Nodes for API calls. Code Execution Nodes add more latency to your Workflow. Reserve them for more complex tasks.