Get list of Breakpoints via API

I’m trying to write a userscript that acts on breakpoints set in the current project. I can’t seem to figure out how to get breakpoints, though. The documentation on the API isn’t great… If I could get a list of all set breakpoints, including file path and line number, that would be perfect. I’ll keep digging when I get the chance, but if someone more familiar with the API could help me out, that would be much appreciated!