The placement of a gastrointestinal stent is typically done using endoscopy. The procedure is minimally invasive and usually performed under sedation. A flexible tube with a camera, called an endoscope, is inserted through the mouth or rectum to guide the stent into the obstructed area. Once in place, the stent expands to keep the passage open.