JSON Schema Description
This document describes the structure of the JSON schema for the Integrations module.
General Structure
The JSON schema is an array of objects, where 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 have the following common parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (e.g., "inject", "function", "template")name(string) - displayed name of the nodex,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of arrays of node identifiers to which the output is connected
System Nodes
"tab" Node
A tab type node serves as a container for a group of nodes, visually displayed as a tab in the interface.
Parameters:
label(string) - displayed name of the tabid(string) - unique identifier of the tabtype(string) - type of the node (tab)disabled(boolean) - whether the tab is disabled
"debug" Node
A debug type node is used to output messages to the debug panel.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (debug)name(string) - displayed name of the nodex,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for outputs
Connections Between Nodes
The wires parameter defines the connections between nodes. Each element of the array corresponds to the output of a node and contains an array of identifiers of nodes to which this output is connected.
Example:
"wires": [
[
"bd07e1ff0aedba0b"
]
]
Node Parameter Descriptions
"inject" Node
The inject node is used to create and send messages into the flow manually.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (inject)name(string) - displayed name of the nodex,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for outputs
"function" Node
A function type node allows executing arbitrary JavaScript code.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (function)name(string) - name of the nodefunc(string) - code to be executedx,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for outputs
"template" Node
A template type node is used to transform messages using templates.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (template)name(string) - name of the nodesyntax(string) - template syntax (mustacheorplain)template(string) - message templateoutput(string) - output type (str— plain text,jsonoryaml)x,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for outputs
"interval-node" Node
An interval-node type node is used to generate messages at specified time intervals.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (interval-node)name(string) - name of the nodeinterval(number) - interval in minutes between messagesx,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for outputs
"switch" Node
A switch type node is used to route messages along different paths based on conditions.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (switch)name(string) - name of the nodeproperty(string) - message property to checkrules(array) - array of rules for routingoutputs(number) - number of output portscheckall(string) - check all rules (trueorfalse)repair(boolean) - repair invalid messagesx,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for outputs
"split" Node
A split type node is used to split messages into multiple parts.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (split)name(string) - name of the nodeproperty(string) - message property to splitpropertyType(string) - type of property (msg,flow,global)splt(string) - delimiter for stringsspltType(string) - type of delimiter (str,bin)arraySplt(number) - size of parts for arraysarraySpltType(string) - type of array splitting (len,index)stream(boolean) - streaming mode processingx,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for outputs
"http in" Node
An http in type node is used to create HTTP endpoints and receive incoming HTTP requests.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (http in)name(string) - name of the node (optional)url(string) - URL path of the endpointmethod(string) - HTTP method (get,post,put,delete,patch)x,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for processing requests
"http request" Node
An http request type node is used to perform outgoing HTTP requests.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (http request)name(string) - name of the nodeurl(string) - URL address for the requestmethod(string) - HTTP method (GET,POST,PUT,DELETE, etc.)ret(string) - response format (obj,txt,bin)headers(array) - array of request headerspaytoqs(string) - where to place the payload (body,query)useAuth(boolean) - use authenticationauthType(string) - type of authentication (basic,bearer)x,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for processing the response
"http response" Node
An http response type node is used to send HTTP responses to the client.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (http response)name(string) - name of the nodestatusCode(number) - HTTP status code of the responsex,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections (usually empty)
"cms-events" Node
This node allows tracking events from the Events module and injecting them into the flow.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (cms-events)name(string) - name of the nodeeventMarker(string) - event identifierproperty(string) - message property for processingtargetType(string) - type of target for processing (msg,flow,global)x,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for further processing
"admin-api" Node
This node allows interaction with various APIs.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (admin-api)name(string) - name of the nodepath(string) - path of the API endpointmethod(string) - HTTP method (post,get,put,delete)operation(string) - operation identifierdata(string) - request data in JSON formatwires(array) - array of connections for processing the response
"telegram" Node
A telegram type node sends messages via the Telegram Bot API. The fields are detailed on the telegram node page.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (telegram)name(string) - name of the nodebotToken(string) - bot tokenchatId(string) - chat identifiertext(string) - message textparseMode(string) - text format (none,Markdown,MarkdownV2, orHTML)replyMarkup(array) - rows of Inline buttons, each button hastextandcallbackDatacallbackQueryId(string) - identifier of the callback requestshowAlert(boolean) - show notification in a modal windownotificationText(string) - notification text (whenshowAlert: true)x,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for outputs
"whatsapp" Node
A whatsapp type node sends messages via the WhatsApp Business Cloud API. The fields are detailed on the whatsapp node page.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (whatsapp)name(string) - name of the nodephoneNumberId(string) - identifier of the sender's numberaccessToken(string) - access tokenapiVersion(string) - version of the Graph API (default isv20.0)action(string) - type of message (messageortemplate)to(string) - recipient's numbertext(string) - message text (whenaction: message)templateName(string) - name of the template (whenaction: template)locale(string) - language of the template (whenaction: template)components(array) - template parameters, each withtype(headerorbody),parameter_name, andtextx,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for outputs
"notification" Node
A notification type node sends notifications based on event templates from the Events module. The fields are detailed on the notification node page.
Main Parameters:
id(string) - unique identifier of the nodetype(string) - type of the node (notification)name(string) - name of the nodeeventId(number | null) - identifier of the event templatevariables(object) - values of template variables by their markersrecipientsPath(string) - path to the array of recipients in the messagex,y(number) - coordinates of the node on the workspacez(string) - identifier of the tab to which the node belongswires(array) - array of connections for outputs