I spent a while working this out, so figured I’d write it up and share it!
Also included: Some discussion of the process I use to figure out undocumented parts of the API. May be useful if you’ve been wanting to use the API and haven’t been able to figure it out!