/images/favicon.ico
NEXhome Developer Platform
  • English
  • 简体中文
NEXhome Developer Platform
  • English
  • 简体中文
  • API Basic Information
  • API Request parameters
  • Response
  • Related data models

Get Sub-Devices Under Edge Gateway

API Basic Information


API Description: N/A

Request method: get

API Request path: /api/v1/cits/devices/{gatewayIotId}/subDevices

API Request parameters


Path request parameters

parameter nametyperequiredremark
gatewayIotIdstringRequiredEdge gateway IoT ID

Query parameters

parameter nametyperequiredremark
needRealtimebooleanOptionalWhether to read in real time from the edge (fetch extra space/SIP info; returns offline error if the edge is offline). Default false, read from cloud cache
macstringOptionalDevice MAC
customEncodestringOptionalDevice-side custom code
productIdstringOptionalProduct ID
typestringOptionalDevice type
Options:
UNSPECIFIED - Unknown.
ACCESS - Access device.
INTERCOM - Intercom device.
INDOOR - Indoor unit.
GATEWAY - Edge gateway.
IPC - Camera.
CENTER - Master station.
ROBOT - Robot.
SIGNAGE - Door signage
iotIdListarrayOptionalSub-device IoT ID list
macListarrayOptionalSub-device MAC list
spaceIdListarrayOptionalSpace IDs mounted on the edge gateway (supported only when needRealtime is true)
includeParentSpacebooleanOptionalInclude parent spaces with spaceIdList, default false
includeSubSpacebooleanOptionalInclude sub spaces with spaceIdList, default false
permissionSpaceIdListarrayOptionalSpace IDs authorized on the edge gateway (only when needRealtime is true)
typeListarrayOptionalDevice type list (same options as type)
productIdListarrayOptionalProduct ID list
onlineStatusstringOptionalOnline status: UNSPECIFIED/ONLINE/OFFLINE
isCloudEnabledbooleanOptionalWhether device is cloud-enabled (only when needRealtime is true)
spaceLayerListarrayOptionalSpace layer list on the edge (only when needRealtime is true)
unpagedbooleanOptionalWhether to disable paging
pageintegerOptionalCurrent page (0-based)
sizeintegerOptionalPage size (default 50)

Request body

None

Response


parameter nametyperequiredremark
currentPageintegerOptionalCurrent page number, 0-based
totalElementsintegerOptionalTotal number of records
totalPagesintegerOptionalTotal pages
elements[]DeviceDtoOptionalDevice list of current page

Related data models


Device

nexhome.iotdomain.cits.v1.devices.DeviceDto

parameter nametyperequiredremark
idintegerOptionalDevice ID
iotIdstringOptionalDevice IoT ID
productIdstringOptionalProduct ID
namestringOptionalDevice name
positionstringOptionalDevice position
typestringOptionalDevice type (same options as above)
brandstringOptionalBrand
remarkstringOptionalRemark
macstringOptionalMAC
ipstringOptionalIP
maskstringOptionalSubnet mask
gatewaystringOptionalGateway
dnsstringOptionalDNS
softVersionstringOptionalSoftware version
softVersionCodeintegerOptionalSoftware version code
hardVersionstringOptionalHardware version
onlineStatusstringOptionalOnline status: UNSPECIFIED/ONLINE/OFFLINE
lastOnlineTimeintegerOptionalLast online timestamp (ms)
lastOfflineTimeintegerOptionalLast offline timestamp (ms)
snstringOptionalDevice SN
sipNumberstringOptionalSIP number (intercom devices)
modelstringOptionalModel
coverstringOptionalCover file key (currently for IPC devices; call /api/v1/cits/devices/{iot_id}/files:generateOssUrl for URL)
gatewayIotIdstringOptionalParent device IoT ID (when querying sub-devices)
spaceIdstringOptionalSpace ID (when querying from edge)
spaceNamestringOptionalSpace full name (when querying from edge)
spaceLayerintegerOptionalSpace layer (when querying from edge)
developerIdstringOptionalDeveloper ID
developerAppIdstringOptionalDeveloper App ID
createdTimeintegerOptionalCreate timestamp (ms)
lastModificationTimeintegerOptionalUpdate timestamp (ms)
relayListRelayDetailOptionalRelay list
platformstringOptionalPlatform
Options:
UNSPECIFIED - Unknown.
NEXHOME - NEXHOME.
HTW - HTW

Device Relay List

nexhome.iotdomain.cits.v1.devices.RelayDetail

parameter nametyperequiredremark
codeintegerOptionalRelay code
namestringOptionalRelay name
Last Updated: 10/16/25, 7:27 PM
Contributors: lwq
Prev
Get Device List
Next
Query Device Binding QR Code Info