Skip to main content

Get Dashboard Stats

GET 

/api/v1/devices/dashboard-stats

Get KPI statistics for the dashboard ops view.

Returns counts for:

  • live_count: Devices with location update in the last 10 minutes

  • offline_stale_count: Active devices without recent location

  • in_geofence_count: Devices currently inside a geofence

  • alerts_open: Open alert notifications (dashboard alerts)

  • workflow_failures_1h: Failed workflow executions in the last hour

  • webhook_retries_1h: Webhook deliveries pending retry in the last hour

  • Managers/owners: See stats for all workspace devices

  • Field workers: See stats for only their own device

Request

Responses

OK