Can I just grab the AJAX part of this?
method: 'POST',
headers: {
authorization: 'Bearer ' + window.Twitch.ext.viewer.sessionToken
The coding software I’m using is quite bespoke, and as I said, I’m very new to all of this.

Can I set this up as a websocket? That would be my preference.