Managing your flows and endpoints
List, inspect, and update IoT Logic flows and endpoints via the REST API. Shows how to view node configs and modify existing flows with curl request examples.
Prerequisites
Viewing your flows
Authorizations
AuthorizationstringRequired
Enter an API key with the "NVX " prefix, e.g. "NVX 123456abcdefg"
Responses
200
Successful response to read a list of flows
application/json
successbooleanRead-onlyOptionalExample:
true if request finished successfully
truedefault
Error response object
application/json
get/iot/logic/flow/list
GET /v2/iot/logic/flow/list HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Accept: */*
{
"success": true,
"list": [
{
"id": 1234,
"title": "Super flow",
"description": null,
"enabled": true,
"modified": "2024-01-15T10:30:00Z",
"devices_count": 42
}
]
}Viewing flow details
Authorizations
AuthorizationstringRequired
Enter an API key with the "NVX " prefix, e.g. "NVX 123456abcdefg"
Query parameters
flow_idintegerRequiredExample:
Flow ID
12Responses
200
Successful response to read a flow
application/json
successbooleanRead-onlyOptionalExample:
true if request finished successfully.
truedefault
Error response object
application/json
get/iot/logic/flow/read
GET /v2/iot/logic/flow/read?flow_id=12 HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Accept: */*
{
"success": true,
"value": {
"id": 543,
"title": "Super flow",
"description": null,
"enabled": true,
"nodes": [
{
"id": 1,
"type": "data_source",
"data": {
"title": "Standard Data Source",
"source_ids": [
123458,
123459
],
"push_type": "http",
"primary_key": "vehicle_id",
"mappings": [
{
"source_id": 123458,
"primary_key_value": "truck_12"
},
{
"source_id": 123459,
"primary_key_value": "truck_07"
}
]
},
"view": {
"position": {
"x": 25,
"y": 25
}
}
}
],
"edges": [
{
"from": 1,
"to": 2,
"type": "simple_edge"
}
]
}
}Updating a flow
Authorizations
AuthorizationstringRequired
Enter an API key with the "NVX " prefix, e.g. "NVX 123456abcdefg"
Body
Responses
200
Successful creation response
application/json
successbooleanRead-onlyOptionalExample:
true if request finished successfully
trueidintegerRead-onlyOptionalExample:
ID of the created entity
1723default
Error response object
application/json
post/iot/logic/flow/update
POST /v2/iot/logic/flow/update HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 422
{
"flow": {
"title": "Super flow",
"description": null,
"enabled": true,
"nodes": [
{
"id": 1,
"type": "data_source",
"data": {
"title": "Standard Data Source",
"source_ids": [
123458,
123459
],
"push_type": "http",
"primary_key": "vehicle_id",
"mappings": [
{
"source_id": 123458,
"primary_key_value": "truck_12"
},
{
"source_id": 123459,
"primary_key_value": "truck_07"
}
]
},
"view": {
"position": {
"x": 25,
"y": 25
}
}
}
],
"edges": [
{
"from": 1,
"to": 2,
"type": "simple_edge"
}
]
}
}{
"success": true,
"id": 1723
}Last updated
Was this helpful?