Skip to content

Authorizing within Twitch

Creating a Twitch Application.

First of all we have to create a Twitch Application for interacting within the Twitch API and being able to create our own custom chatbot. We can create it going through the Twitch Developer Console.

Having created a Twitch Application you will have to get and save the Client-Id and Client Secret in your application dashboard.

Creating an authorizing a chatbot account.

Chatbots on Twitch are essentially user accounts designed to execute actions programmatically. Its recommended to create an unique account for running your chatbot.

After creating your chatbot account you will need to authorize within your app and get an user access token to perform bot actions and join diffrent chatrooms over Twitch. It’s highly recommended to get an user access token from the Authorization Code Grant Flow as tokens generated within this flow can be refreshed, this library handle this refresh automatically. For further information about generating user access tokens see the official Twitch API documentation.