Skip to main content

API Function

Overview

A function with pre-defined inputs and outputs that can be used as an API endpoint. You could describe functions as Formulas, Workflows, Flows or Automations.

If you want to provide response headers, you need to place an object (not array) containing key/value pairs of headers into the Response Headers output data structure.


Parameters

ParameterParameterValid BlocksRequired
API InputsThese parameters are set by the incoming request when an API call is received. These are read-only.Basic Type Block GroupNo
Input ParametersSet values (that you choose) as inputs to the API request. These are read-only.Basic Type Block GroupNo
Internal VariablesFor variables and constants that you need in this function (these are not asked for or returned from this function). These are read/write.Basic Type Block GroupNo
Output ParametersSet values (that you choose) as outputs from the API request. These parameters are used to populate the body of the API response. These are write-only.Basic Type Block GroupNo
If a single Data Structure output, set as root Response BodyIf there is only one output parameter and it's a Data Structure, make it the entire (root) Response BodyBoolean Block GroupNo
Response OutputsThese parameters are always returned with your API response. These are write-only.Basic Type Block GroupNo
LogicThis is where you build logic and call other functions. Blocks will be executed as a sequence of instructions in order (top to bottom, following tree branches on the way down).Process Block GroupNo