Getting API 400 error on Create Video

This is my api call to create video

$http({
				method:'POST',
				url:"https://api.twitch.tv/kraken/videos?channel_id="+response.data._id+"&title=sample test",
				
				headers:{
					"Accept": "application/vnd.twitchtv.v5+json",
					"Client-ID":clientId,
					"Authorization": "OAuth "+token
				}
			}).then(function(response){
				console.log(response);
			})

Getting response like this

{"error":"Bad Request","status":400,"message":"Your email must be verified, and you must be a partner, affiliate, or developer to upload videos"}

As the error says

  • Your email must be verified

AND

  • You must either be
    • a partner
    • an affiliate
    • marked as a developer in Twitch’s system (which I’m not sure off hand how to obtain this flag)

And the user you have authenticated as to create the video doesn’t fall into one of these categories or the email is not verified, hence the error.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.