**Introduction:** We identified patterns of postoperative pain and opioid consumption and associated factors following ureteroscopy for kidney stones by acquiring real-time data through automated text messages. **Methods:** Adult patients undergoing …