improved

API - Added query parameters to filter devices and segments