Generate Access Tokens

Learn to generate app access and user access tokens for the Twitch API.

Generate an app access token

With our client ID and secret, we finally have everything we need to generate our access tokens. Let's start with the app access token.

We'll use the OAuth client credential grant flow to get our app access token. In this grant flow, the server directly authorizes an application, rather than a user, by generating an access token for the application once it provides its client ID and secret.

The illustration below gives an overview of this grant flow.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy