Overview
Register a new application in the Twitch Developer Console to use the Twitch API.
Prerequisites
- Twitch account with Two-Factor Authentication enabled
- If 2FA is not enabled, see twitch/enable-2fa guide first
Steps
1. Navigate to Developer Console
- Go to https://dev.twitch.tv/console
- Log in with your Twitch account (may require 2FA code)
- If prompted for OAuth authorization, click "Authorize"
2. Create New Application
- Click "Register Your Application" button
- Fill in the registration form:
- Name: Your application name (3-100 characters)
- OAuth Redirect URLs: Enter your callback URL (must use HTTPS, except localhost)
- Category: Select appropriate category (e.g., "Chat Bot", "Website Integration")
- Client Type: Select "Confidential" for server-side apps, "Public" for client-side apps
- Click "Create"
3. Get Credentials
- After creation, you'll see your app in the Applications list
- Click "Manage" next to your application
- Copy the Client ID (visible in the form)
- Click "New Secret" to generate a Client Secret
- Confirm the dialog to generate the secret
- Copy the Client Secret immediately (it won't be shown again)
Important Notes
- OAuth Redirect URLs must exactly match what your application sends
- For local development, you can use
http://localhostorhttps://localhost - Client Secret should be kept confidential and never exposed in client-side code
- You can add up to 10 redirect URLs per application
Common Categories
| Category | Use Case |
|---|---|
| Chat Bot | Bots that interact with Twitch chat |
| Website Integration | Web applications using Twitch login |
| Broadcaster Suite | Tools for streamers |
| Analytics Tool | Data analysis applications |
Next Steps
After registration, configure your application to:
- Implement OAuth 2.0 authorization flow
- Request appropriate scopes for your use case
- Handle token refresh for long-running applications