info: name: Get Device Usage type: http seq: 2 http: method: GET url: '{{base_url}}/api/analytics/device-usage' auth: inherit body: type: none runtime: scripts: - type: tests code: "test(\"status must be 200\", function() {\n expect(res.status).to.eql(200);" docs: |- Get usage statistics for all devices. **Endpoint**: GET /api/analytics/device-usage **Auth**: Required (Bearer token) ## Response Fields | Field | Type | Description | |-------|------|-------------| | devices | array | List of device usage statistics | | devices[].id | string | Device ID | | devices[].device_name | string | Device name | | devices[].device_type | string | Device type (kobo, kindle, koreader) | | devices[].sync_count | int | Number of sync operations | | devices[].last_sync | string | Last sync timestamp | | devices[].total_reading_minutes | int | Total reading time on device | | devices[].books_read | int | Number of books completed on device | ## Example Response ```json { "devices": [ { "id": "789e4567-e89b-12d3-a456-426614174001", "device_name": "My Kobo Clara", "device_type": "kobo", "sync_count": 45, "last_sync": "2026-02-08T17:25:00Z", "total_reading_minutes": 1250, "books_read": 3