Bot to create markers?


In my case I would like to create markers through API. But from what I understand, you need an oauth token with appropriate scopes.

But in my situation, I would like my chat bot to create those. So is there a way to accomplish this ?

The flow i’m aiming for :

  • User have my bot on his channel
  • User gives moderation profile to the bot
  • user types a specific command
  • the bot creates a marker for current timestamp

Thats entirely possible.

The bot will “own” the markers.
And chat will trigger the bot and the bot calls the API

Basically the flow you wrote is what you do.
So you answered your own question really

The only caveate is that in order to make markers on streamers x channel, you either

  • use streamer x’s token
  • streamer adds your bot as an editor of the channel, and the bot uses it’s own token
  • use an editors token of the target channel

As per:

Markers can be created by the stream owner or editors. The user creating the marker is identified by a Bearer token.

on the docs

Ok great ! So as long as the owner gives the role, my bot will be able to create the marker ; no need for the user token

Awesome, I’ll try that

Well you’d still need the bots user token

Yes which is fine, I was worried It worked solely with the owner’s token