Twitch · Setup guide
How to Get a Twitch Client ID and Client Secret
Twitch game and streamer alerts use credentials from your own Twitch developer application. StreamBruh exchanges the Client ID and Client Secret for an application access token to read public Twitch data.
Step-by-step setup
Prepare your Twitch account
Sign in to Twitch, verify your email address, and enable two-factor authentication in Security and Privacy. Twitch requires these steps before registering an application. Refresh the developer console if you enabled them in another tab.
Register an application
Open the Twitch Developer Console, choose Applications, then Register Your Application. Enter a unique name, select an appropriate category, add the OAuth Redirect URL requested by Twitch, complete the verification prompt, and create the application.
StreamBruh uses Twitch’s server-to-server client credentials flow for public data. The registration redirect URL is not a StreamBruh callback and is not used when StreamBruh requests its app access token. Use a URL you control if the Twitch form requires one.
Copy the Client ID and generate a secret
Under Applications, select Manage for the new application. Copy its Client ID. Then choose New Secret, copy the Client Secret, and store it privately. A new secret invalidates the previous one, so update StreamBruh if you rotate it.
Save and test in StreamBruh
Open Bot & integrations. Paste the two values into Twitch Client ID and Twitch Client Secret, save, then use Test Twitch credentials. Existing saved values are masked; leaving a field blank while editing keeps its stored value.
Never paste the secret into a public page, support message, or code repository. Twitch treats it as a password.
Configure alerts
For a streamer notification, enter the Twitch username or channel URL. For a game notification, search for a Twitch category, choose a language if desired, and set a minimum viewer count of at least 5. Choose a Discord channel your bot can use and customize the message. Checks are scheduled, so alerts are not instant.
Check your setup
- Test Twitch credentials reports a successful result.
- The selected category or streamer resolves in the notification form.
- Your bot can send to the selected Discord channel.
Troubleshooting
Cannot register an application
Check email verification and 2FA, then refresh the developer console. Make sure the application name is unique and the redirect URL is accepted by Twitch.
Credential test fails
Recheck the Client ID and the current Client Secret from the same application. If you generated a new secret, the previous one is invalid.
No alert appears
Check whether the streamer is live or a stream meets the category, language, and viewer filters. Scheduled checks, Twitch availability, and Discord permissions affect delivery.

