For the complete documentation index, see llms.txt. This page is also available as Markdown.
ReferenceBeta

IoT Logic API reference

How the IoT Logic reference is organized: one page for flows, with their node types, transitions, inputs, queries, and mutations.

The IoT Logic API reference documents every operation and type of IoT Logic. All of them are on one page, Flows, because every IoT Logic type belongs to a flow. The page covers the queries and mutations, the object and input types, and the enums, with a field table for every type.

The reference states what each operation and field is. For how to use them together, see the IoT Logic guides, and for the GraphQL fundamentals behind the notation, see GraphQL basics, including the type syntax that the field tables use.

Where the operations live

All IoT Logic queries are nested under the iotLogic field of the Query type, and all mutations under the iotLogic field of the Mutation type. Every response has the same shape under data.iotLogic. Every operation acts in the workspace that your access token names, so no query or mutation takes a workspace ID. For what the product covers and how to start, see the product overview.

A flow is also a Node, so the common node and nodes queries return flows by ID. The nodes in the graph of a flow are a different type, IotLogicFlowNode, and you read them only through their flow.

Pages

Page
Covers

IotLogicFlow, the IotLogicFlowNode interface with its node types, the actions and the device mapping of a Device Action node with the IotLogicDeviceCommandAction union, IotLogicFlowTransition, the flow and flows queries with their filter and order inputs, the deviceFlowLinks query with IotLogicDeviceFlowLink and its filter and order inputs, the deviceAttributes query with IotLogicDeviceAttributes and IotLogicDeviceAttribute, the flowDebugValues query with IotLogicFlowDebugValues, and the flowCreate, flowUpdate, and flowDelete mutations with their inputs.

Shared types

The scalars, interfaces, and pagination types that IoT Logic shares with the other products are on the Common resources page. The devices of a data source are Device records from Business Data Repository, documented on the Devices page. The Core API reference indexes the reference pages of every product.

How the reference pages are structured

The page follows the same order as every reference page: queries, then mutations, then objects, inputs, enums, interfaces, and unions, with pagination types in a section of their own at the end. Field tables use the GraphQL type notation, where ! marks a value that is never null and [...] marks a list: see Type syntax.

Other ways to explore the API

See also

  • IoT Logic overview: Learn what IoT Logic covers and how its concepts fit together.

  • IoT Logic node types: Read the fields, the behavior, and the rules of each node type in one place.

  • IoT Logic guides: Build a flow from these operations, and handle the errors that a write returns.

  • Optimistic locking: Learn about the version check that every flow update and delete makes.

  • Error handling: See the error structure, the codes, and the common error scenarios.

Last updated

Was this helpful?