Depending on the type of endoscopy, you may need to stop the use of certain medications for a few days before the procedure or you may need to fast for few hours before the procedure. These requirements vary, so it’s important to discuss them with your doctor.