Get paginated inventory history for a specific system. Supports date range filtering.
GET
/systems/{id}/inventory
curl \
--request GET 'https://collect.your-domain.com/api/systems/sys_123456789/inventory' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"code": 200,
"message": "inventory history retrieved successfully",
"data": {
"records": [
{
"id": 42,
"system_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"timestamp": "2026-02-20T14:30:00Z",
"data": {
"facts": {
"distro": {
"name": "NethServer",
"version": "8.2.0"
},
"memory": {
"total_bytes": 17179869184
},
"network": {
"hostname": "ns8.example.com",
"public_ip": "203.0.113.10"
}
}
},
"data_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"data_size": 24576,
"processed_at": "2026-02-20T14:31:00Z",
"has_changes": true,
"change_count": 5,
"created_at": "2026-02-20T14:30:05Z",
"updated_at": "2026-02-20T14:31:00Z"
}
],
"pagination": {
"page": 1,
"page_size": 20,
"total_count": 156,
"total_pages": 8,
"has_next": true,
"has_prev": false,
"next_page": 2,
"prev_page": 42,
"sort_by": "name",
"sort_direction": "asc"
}
}
}
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (403)
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}
Response examples (404)
{
"code": 400,
"message": "validation failed",
"data": {
"type": "validation_error",
"errors": [
{
"key": "username",
"message": "required",
"value": "string"
}
]
}
}