unifi_list_client_history
Fetch historical client records (names, MACs, first/last seen) to identify offline or past devices using the controller v2 API.
Instructions
List historical/offline client inventory using the controller v2 API. Includes names, MACs, first_seen and last_seen epoch seconds when available. This is inventory, not session history; use unifi_list_client_sessions for past connections. Requires controller history API-key support; errors never mean zero activity. Retention depends on the controller.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| withinHours | No | Lookback in hours, up to one year; does not extend controller retention | |
| siteReference | Yes | Site internalReference from unifi_list_sites (often default), not the Integration API UUID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| count | Yes | ||
| coverage | Yes | ||
| withinHours | Yes |