Commands
Send commands to devices. Commands are published to MQTT and their status is tracked.Send Command
Send a command to a device.
Request Body
Command name (e.g.,
lock, unlock, reboot)Device type. Defaults to the device’s configured type.
Command parameters
Available Commands
Foriotee_device:
| Command | Description | MQTT Payload |
|---|---|---|
lock | Lock the device | 1 |
unlock | Unlock the device | 0 |
reboot | Reboot the device | 1 |
Command Status Values
| Status | Description |
|---|---|
pending | Created, not yet published |
published | Sent to MQTT broker |
failed | Failed to publish |
acknowledged | Device acknowledged |
completed | Command executed |
timeout | No response |
Get Device Commands
Get command history for a device.
Query Parameters
Maximum records to return
List All Commands
List all commands across all devices. Admin only 🔐
Query Parameters
Maximum records to return
Get Command
Get a command by ID.
404 if command not found
Delete Command
Delete a command. Admin only 🔐
Retry Command
Retry a failed command. Admin only 🔐
Purge Old Commands
Delete commands older than specified days. Admin only 🔐
Request Body
Delete commands older than this many days