Let's create a flow that sends your device data to an external system through MQTT. Rather than creating multiple endpoints separately, we can accomplish this in one single request.
Need HTTP POST instead of MQTT? Use the Webhook node.
Creating a complete flow with integrated MQTT node
The simplest approach is to define both your data sources and MQTT output endpoint directly in your flow creation request. To do it, send a request to the following endpoint:
flowCreate
post
/iot/logic/flow/create
Create a new data processing flow with nodes and connections. Flows define how data moves from devices through transformation stages to output destinations. Each flow requires at least one Data Source node and one Output Endpoint node. You can create flows with nodes and edges in a single request or add nodes later using the endpoint management API.
Authorizations
AuthorizationstringRequired
Enter an API key with the "NVX: " prefix, e.g. "NVX 123456abcdefg"
Body
Responses
200
Successful creation response
application/json
successbooleanRead-onlyOptional
true if request finished successfully
Example: true
idintegerRead-onlyOptional
ID of the created entity
Example: 1723
default
Error response object
application/json
post
/iot/logic/flow/create
Request example
The response will include the flow ID:
Congratulations!
You've now set up a flow that creates a complete end-to-end data pipeline in a single API call. This flow:
Connects to multiple vehicles in your fleet through a data source endpoint
Sends the device data to your external MQTT system
Uses your custom MQTT broker settings for secure data transfer