Generate the Authorization URL
https://blaze.stream/bapi/oauth2/generate-auth-urlRequest body
clientIdstringrequired
Application Client ID.
clientSecretstringrequired
Application Client Secret.
redirectUristringrequired
Exact registered callback URL.
scopesstring[]optional
Optional scopes to request for this authorization. For a chat bot user authorization, send users.read, offline.access, channel.moderate, and users.bot.
Responses
- 200OKapplication/json
- 400Bad Requestapplication/json
- 401Unauthorizedapplication/json
- 404Not Foundapplication/json
- 500Internal Server Errorapplication/json
POST /bapi/oauth2/generate-auth-url HTTP/1.1
Host: blaze.stream
content-type: application/json
accept: application/json
{
"clientId": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_CLIENT_SECRET",
"redirectUri": "https://yourapp.com/callback",
"scopes": [
"users.read",
"offline.access",
"channel.moderate",
"users.bot"
]
}{
"url": "https://blaze.stream/oauth2/authorize?...",
"state": "RANDOM_NONCE_VALUE",
"codeVerifier": "PKCE_CODE_VERIFIER"
}