I'm using the YouTube Data API to create live broadcasts on behalf of users. My application uses OAuth2 authentication, where users grant permission, and I store their access and refresh tokens to make API calls.
Before creating a new live broadcast, I verify that the user has the necessary permissions by listing their existing live broadcasts via the liveBroadcasts.list
endpoint. This works fine for most users.
However, for some users, I get the following error when attempting to insert (liveBroadcasts.insert
) a new broadcast:
{
"message": "Request is not authorized",
"domain": "youtube.liveBroadcast",
"reason": "insufficientLivePermissions",
"extendedHelp": ";
}
liveBroadcasts.insert
?Any insights or workarounds would be appreciated!
youtube
, youtube.readonly
, and youtube.force-ssl
scopes.liveBroadcasts.list
) works, which suggests that the user is authenticated and the tokens are valid.liveBroadcasts.insert
, not liveBroadcasts.list
.