Unifi icon

Unifi

Interact with Unifi API

Device → List All Devices

AI-generated

Summary

Retrieve a list of all UniFi devices for a specified site and optionally split each device into its own output item.

Inputs

  • siteId (required) — The identifier of the site to list devices from, found in the 'name' field of the 'List All Devices' API response.
  • splitIntoItems — Boolean flag to determine if each device should be output as a separate item (true) or if the entire raw response should be returned as one item (false). Defaults to true.

Output shape

A list of device items if 'Split Into Items' is true; otherwise, a single item containing the raw API response for all devices.

When 'Split Into Items' is enabled, the node outputs one item per device with each item's JSON containing an individual device's data. If disabled, the node outputs a single item with the full API response data. The operation requires valid authentication credentials and site ID, and returns data from the UniFi API's 'List All Devices' endpoint.

Examples

Example 1: Output as individual items

Provide the siteId (site name) and set 'Split Into Items' to true (default). The output will then consist of multiple items, each representing a single device on the site.

Example 2: Output raw response

Provide the siteId (site name) and set 'Split Into Items' to false. The output will be a single item containing the entire API response JSON with all devices listed.

Discussion