An endoscopy involves examining the inside of a person's body using an endoscope, which is a long, flexible tube with a light source and video camera. An endoscope allows doctors to view the interior surfaces of organs and tissues in a minimally invasive way. It has components like a flexible or rigid tube, light source, video camera, and channel for medical instruments. Endoscopy is used for diagnosis and treatment and can accurately diagnose GI diseases while also removing polyps or stopping bleeding. However, there are risks like bleeding, infection, or injury to organs.