Get all diffs from the most recent inventory snapshot. Returns the complete batch (not paginated), ordered by severity (critical first) then by creation time descending.
GET
/systems/{id}/inventory/diffs/latest
curl \
--request GET 'https://api.your-domain.com/api/systems/sys_123456789/inventory/diffs/latest' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"code": 200,
"message": "latest inventory diffs retrieved successfully",
"data": {
"diffs": [
{
"id": 101,
"system_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"previous_id": 41,
"current_id": 42,
"diff_type": "update",
"field_path": "facts.distro.version",
"previous_value": "8.1.0",
"current_value": "8.2.0",
"severity": "high",
"category": "os",
"notification_sent": false,
"created_at": "2026-02-20T14:31:00Z"
}
],
"count": 5,
"current_inventory_id": 42
}
}
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"
}
]
}
}