An upper GI endoscopy is a diagnostic procedure used by your doctor to inspect the inside of your throat, esophagus, stomach and upper intestine.