Glad you got it figured out! I’ve got a bunch of topics that are me taking to myself.
Mostly these are the docs, and they are continually updated: How to reverse engineer the Discourse API
I generally forget that there are any docs besides just seeing how it works in the browser development tools.