JSON schema description
This page describes the structure of the JSON schema used by the Integrations module.
General structure
The JSON schema is an array of objects. Each object is either a node or a tab:
[
{
"label": "Hello World!",
"id": "1f24387b252057fe",
"type": "tab",
"disabled": false
},
{
"name": "run",
"id": "b51ab819b83e1915",
"type": "inject",
"x": 46.96875,
"y": 99.51171875,
"z": "1f24387b252057fe",
"wires": [
[
"bd07e1ff0aedba0b"
]
]
},
{
"id": "2b524ca59e4ed633",
"type": "debug",
"name": "debug",
"x": 610.05078125,
"y": 98.59765625,
"z": "1f24387b252057fe",
"wires": []
},
{
"name": "function",
"func": "msg.payload = 'World'\n\nreturn msg;",
"id": "bd07e1ff0aedba0b",
"type": "function",
"x": 229.62890625,
"y": 98.8515625,
"z": "1f24387b252057fe",
"wires": [
[
"2e1172b330c69aeb"
]
]
},
{
"id": "2e1172b330c69aeb",
"type": "template",
"name": "template",
"x": 418.66796875,
"y": 98.19140625,
"z": "1f24387b252057fe",
"syntax": "mustache",
"template": "Hello {{payload}} !",
"output": "str",
"wires": [
[
"2b524ca59e4ed633"
]
]
}
]
Main node parameters
Most nodes share these parameters:
id(string) - unique node IDtype(string) - node type (for example, "inject", "function", "template")name(string) - node name shown in the interfacex,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of arrays with the IDs of the nodes the output is connected to
System nodes
"tab" node
A tab node is a container for a group of nodes and appears as a tab in the interface.
Parameters:
label(string) - tab name shown in the interfaceid(string) - unique tab IDtype(string) - node type (tab)disabled(boolean) - whether the tab is disabled
"debug" node
A debug node outputs messages to the debug panel.
Main parameters:
id(string) - unique node IDtype(string) - node type (debug)name(string) - node name shown in the interfacex,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of output connections
Connections between nodes
The wires parameter defines connections between nodes. Each array element corresponds to one node output and contains an array with the IDs of the nodes connected to that output.
Example:
"wires": [
[
"bd07e1ff0aedba0b"
]
]
Node parameters
"inject" node
Use the inject node to create messages and send them into the flow manually.
Main parameters:
id(string) - unique node IDtype(string) - node type (inject)name(string) - node name shown in the interfacex,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of output connections
"function" node
A function node lets you run arbitrary JavaScript code.
Main parameters:
id(string) - unique node IDtype(string) - node type (function)name(string) - node namefunc(string) - code to runx,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of output connections
"template" node
A template node transforms messages using templates.
Main parameters:
id(string) - unique node IDtype(string) - node type (template)name(string) - node namesyntax(string) - template syntax (mustacheorplain)template(string) - message templateoutput(string) - output type (strfor plain text,json, oryaml)x,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of output connections
"interval-node" node
An interval-node node generates messages at specified time intervals.
Main parameters:
id(string) - unique node IDtype(string) - node type (interval-node)name(string) - node nameinterval(number) - interval between messages, in minutesx,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of output connections
"switch" node
A switch node routes messages along different paths depending on conditions.
Main parameters:
id(string) - unique node IDtype(string) - node type (switch)name(string) - node nameproperty(string) - message property to checkrules(array) - array of routing rulesoutputs(number) - number of output portscheckall(string) - whether to check all rules (trueorfalse)repair(boolean) - whether to repair invalid messagesx,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of output connections
"split" node
A split node splits messages into multiple parts.
Main parameters:
id(string) - unique node IDtype(string) - node type (split)name(string) - node nameproperty(string) - message property to splitpropertyType(string) - property type (msg,flow,global)splt(string) - delimiter for stringsspltType(string) - delimiter type (str,bin)arraySplt(number) - part size for arraysarraySpltType(string) - array split type (len,index)stream(boolean) - streaming processing modex,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of output connections
"http in" node
An http in node creates HTTP endpoints and receives incoming HTTP requests.
Main parameters:
id(string) - unique node IDtype(string) - node type (http in)name(string) - node name (optional)url(string) - endpoint URL pathmethod(string) - HTTP method (get,post,put,delete,patch)x,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of connections that process requests
"http request" node
An http request node sends outgoing HTTP requests.
Main parameters:
id(string) - unique node IDtype(string) - node type (http request)name(string) - node nameurl(string) - request URLmethod(string) - HTTP method (GET,POST,PUT,DELETE, etc.)ret(string) - response format (obj,txt,bin)headers(array) - array of request headerspaytoqs(string) - where to put the payload (body,query)useAuth(boolean) - whether to use authenticationauthType(string) - authentication type (basic,bearer)x,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of connections that process the response
"http response" node
An http response node sends HTTP responses to the client.
Main parameters:
id(string) - unique node IDtype(string) - node type (http response)name(string) - node namestatusCode(number) - HTTP status code of the responsex,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of connections (usually empty)
"cms-events" node
Use this node to track events from the Events module and inject them into the flow.
Main parameters:
id(string) - unique node IDtype(string) - node type (cms-events)name(string) - node nameeventMarker(string) - event IDproperty(string) - message property to processtargetType(string) - processing target type (msg,flow,global)x,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of connections for further processing
"admin-api" node
Use this node to interact with various APIs.
Main parameters:
id(string) - unique node IDtype(string) - node type (admin-api)name(string) - node namepath(string) - API endpoint pathmethod(string) - HTTP method (post,get,put,delete)operation(string) - operation IDdata(string) - request data in JSON formatwires(array) - array of connections that process the response
"telegram" node
A telegram node sends messages through the Telegram Bot API. The fields are described in detail on the telegram node page.
Main parameters:
id(string) - unique node IDtype(string) - node type (telegram)name(string) - node namebotToken(string) - bot tokenchatId(string) - chat IDtext(string) - message textparseMode(string) - text format (none,Markdown,MarkdownV2, orHTML)replyMarkup(array) - rows of Inline buttons; each button hastextandcallbackDatacallbackQueryId(string) - callback query IDshowAlert(boolean) - whether to show the notification in a modal windownotificationText(string) - notification text (whenshowAlert: true)x,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of output connections
"whatsapp" node
A whatsapp node sends messages through the WhatsApp Business Cloud API. The fields are described in detail on the whatsapp node page.
Main parameters:
id(string) - unique node IDtype(string) - node type (whatsapp)name(string) - node namephoneNumberId(string) - sender phone number IDaccessToken(string) - access tokenapiVersion(string) - Graph API version (default:v20.0)action(string) - message type (messageortemplate)to(string) - recipient phone numbertext(string) - message text (whenaction: message)templateName(string) - template name (whenaction: template)locale(string) - template language (whenaction: template)components(array) - template parameters; each hastype(headerorbody),parameter_name, andtextx,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of output connections
"notification" node
A notification node sends a notification using an event template from the Events module. The fields are described in detail on the notification node page.
Main parameters:
id(string) - unique node IDtype(string) - node type (notification)name(string) - node nameeventId(number | null) - event template IDvariables(object) - template variable values, keyed by their markersrecipientsPath(string) - path to the array of recipients in the messagex,y(number) - node coordinates in the workspacez(string) - ID of the tab the node belongs towires(array) - array of output connections