Get Distribution Box by ID
Retrieves a single Distribution Box by its unique ID with full details including system, tenant, room, and associated MCBs.
path Parameters
idGet Distribution Box by ID › Responses
Distribution Box retrieved successfully
_idPrimary ID of the Distribution Box
nameName/identifier of the Distribution Box
systemSystem to which this distribution box belongs
createdAtDate and time when the distribution box was created
updatedAtDate and time when the distribution box was last updated
boxNumberUnique box number for identification within a system
numberOfRowsNumber of rows in the distribution box
mcbsArray of MCB IDs or partially populated MCB objects (_id, deviceName, macId, onStatus)
hasMainBreakerWhether the distribution box has a main circuit breaker
mainBreakerRatingMain breaker rating in amperes (if hasMainBreaker is true)
locationPhysical location where the distribution box is installed
remarksAdditional remarks or notes about the distribution box
tenantTenant to which this distribution box belongs
zoneZone to which this distribution box belongs
roomRoom where this distribution box is located
Array of sandbox (non-smart) devices in the distribution box
Array of wire connections between devices in the distribution box
digitalTwinWidthWidth of the digital twin canvas in pixels
digitalTwinHeightHeight of the digital twin canvas in pixels
singleLineDiagramKeyS3 key for the single line diagram image
singleLineDiagramUrlCDN URL for the single line diagram image
Get all Distribution Boxes with pagination and sorting
Retrieves a paginated list of Distribution Boxes for a system. Supports filtering by tenant, zone, and room. Includes search and comprehensive sorting capabilities (by createdAt, updatedAt, name, boxNumber, location, numberOfRows, totalMCBs, totalEnergyUsage, tenantName, zoneName, systemName).
path Parameters
systemIdquery Parameters
pagePage number for pagination
sizeItems per page
searchSearch keyword in error message or metadata
sort_byFields to sort by (comma-separated for multiple fields)
sort_orderSort order for each field (comma-separated, must match sort_by length)
tenantIdFilter by tenant ID
zoneIdFilter by zone ID
roomIdFilter by room ID
Get all Distribution Boxes with pagination and sorting › Responses
List of Distribution Boxes retrieved successfully
Array of Distribution Boxes
totalTotal number of Distribution Boxes
pageCurrent page number
sizeNumber of items per page
Get all MCBs in Distribution Box
Retrieves all MCBs contained in a Distribution Box with their full details including current status and energy usage.
path Parameters
idGet all MCBs in Distribution Box › Responses
MCBs retrieved successfully
_idPrimary ID of the Device
deviceTypeType of device (discriminator field)
macIdMAC ID of the Device (from IoT device)
deviceNameName of the Device
deviceNumberUnique device number for identification
onStatusStatus of the Device (ON / OFF / INACTIVE / ERROR)
locationPhysical location or address where the device is installed
remarksRemarks for the Device
batchNumberManufacturing batch number for tracking production groups
chipModelHardware chip model identifier used in the device
versionNumberFirmware version number currently running on the device
ssidNetwork SSID (Wi-Fi name) that the device is connected to
tenantTenant ID reference
Tagged Zone
roomRoom ID reference
systemSystem ID reference
createdAtDate Time of the Creation
updatedAtDate Time of the Update
lastSeenLast time the device was seen/reported
isLockedWhether the device is locked. When locked, the device on/off status cannot be toggled.
totalEnergyUsageTotal cumulative energy usage in kWh
totalEnergySavedTotal energy saved through optimization in kWh
autoUpdateAttemptsNumber of auto-update OTA attempts sent to this device
autoUpdateBlacklistedWhether device is blacklisted from auto-updates (max retries exceeded)
manualUpdateBlacklistWhether device is manually blacklisted from auto-updates by admin
inactivityNotificationEnabledWhether inactivity notifications are enabled for this device
mcbTypeType of MCB
mcbPolesNumber of poles in the MCB
ratedCurrentRated current capacity in amperes
ratedVoltageRated voltage in volts
realTimeVoltageReal-time voltage in volts
powerFactorPower factor (0-1)
Parent distribution box containing this MCB
isReversePowerWhether power/current readings should be reversed (made absolute). When true, negative values are converted to positive.
deviceModelModel name or identifier of the device
deviceBrandBrand or manufacturer of the device
isSpareWhether the device is a spare/inventory device. Spare devices can be filtered out of user-facing dashboards.
Schedule configuration for the device. Contains recurring weekly schedules and one-time scheduled tasks.
realTimePowerReal-time power consumption in watts
realTimeCurrentReal-time current in amperes
lastAutoUpdateAttemptTimestamp of last auto-update OTA attempt
inactivityNotificationSentAtTimestamp when the last inactivity notification was sent for this device
measurementTypeType of load/circuit being measured by this MCB
digitalTwinXX coordinate for digital twin SVG positioning
rowLineRow line number (1-6) the MCB is connected to
slotNumberSlot/position number on the busbar
voltageMaxMax Threshold voltage reading in volts
currentMaxMax Threshold current reading in amps
powerMaxMax Threshold power reading in watts
notificationThresholdHourHourly notification threshold — minimum hours between repeat notifications of the same type
Get Distribution Box energy usage
Retrieves current energy usage data for a specific distribution box. Returns the sum of all MCBs contained in this distribution box including voltage, current, power, and energy consumption.
path Parameters
idGet Distribution Box energy usage › Responses
Energy usage retrieved successfully
distributionBoxIdDistribution Box ID
nameDistribution Box name
totalEnergyUsageTotal energy usage in kWh (sum of all MCBs)
mcbCountNumber of MCBs in this distribution box
Individual MCB energy usage details
Get system distribution box energy usage
Retrieves aggregated energy usage for all distribution boxes in a system. Provides system-wide distribution box analytics including total energy consumption and individual box breakdowns. Requires CIRCUIT_BREAKER feature.
path Parameters
systemIdGet system distribution box energy usage › Responses
Aggregated energy usage retrieved successfully
totalEnergyUsageTotal aggregated energy usage in kWh
distributionBoxCountNumber of distribution boxes included
Individual distribution box energy usage details
Get tenant distribution box energy usage
Retrieves aggregated energy usage for all distribution boxes assigned to a specific tenant. Useful for tenant billing and energy monitoring.
path Parameters
tenantIdGet tenant distribution box energy usage › Responses
Aggregated energy usage retrieved successfully
totalEnergyUsageTotal aggregated energy usage in kWh
distributionBoxCountNumber of distribution boxes included
Individual distribution box energy usage details