Skip to main content
GET
/
devices
/
stats
Fleet Status
curl --request GET \
  --url https://api.example.com/devices/stats \
  --header 'Authorization: Bearer <token>'
Following the Samsara model, Bota provides a dedicated endpoint for monitoring the health of your entire device fleet.

Usage

This endpoint is designed for operational dashboards and monitoring systems. It returns aggregate stats and individual health metrics for all devices in a project.

Response Fields

FieldTypeDescription
online_countintegerNumber of devices currently synced and active
low_battery_countintegerNumber of devices with < 15% battery
storage_full_countintegerNumber of devices with > 90% storage used
devicesarrayList of individual device health objects

Individual Device Health

Each device object in the devices array includes:
  • id: The Bota device ID
  • serial_number: Physical serial number
  • battery_level: Percentage (0-100)
  • storage_used: Percentage of 32GB/64GB used
  • last_sync_at: ISO 8601 timestamp of last sync with mobile SDK
  • firmware_version: Current version running on device