This document provides guidelines from the American Society for Gastrointestinal Endoscopy on the role of endoscopy in evaluating patients with dyspepsia. It recommends that patients over 50 years old or those exhibiting alarm features should undergo endoscopic evaluation, while those under 50 without alarm features can be initially treated with noninvasive H. pylori testing and treatment if positive or a short course of PPIs. For patients who do not respond to or have recurring symptoms after these initial approaches, endoscopy is recommended to exclude structural diseases. The guidelines aim to optimize the use of endoscopy for diagnosing conditions like peptic ulcer disease or malignancy while avoiding unnecessary endoscopies.