Doctors do GI endoscopy to find and often treat problems in your esophagus, stomach, intestine, and rectum. Even if you're not having symptoms, doctors may do endoscopy to screen for serious problems like colon cancer, which can be treated if found.