New Twitch API error responses

Is there a definition for error responses returned by the New Twitch API for when server status is 200, but something wasn’t correct like a missing or bad parameter? I’m having trouble finding this information in the documentation. I’ve observed that the response contains a “message” field and I’ve seen message values about invalid auth codes and invalid access tokens so far. It would be good to know what the value of that field can be for general errors, or endpoint-specific errors so we can handle them correctly. I couldn’t find this in the New Twitch API documentation. Thanks!

In the example of:

https://api.twitch.tv/helix/users/follows

The response is:

{
"error": "Bad Request",
"status": 400,
"message": "Must provide either from_id or to_id"
}

So you should see similar on other end points

Like

https://api.twitch.tv/helix/videos

{
"error": "Bad Request",
"status": 400,
"message": "Must provide one of the following query params: user ID, game ID, or one or more video IDs."
}

TLDR: you don’t get a data key and you get an error/status key

Which end points are not doing this if any and/or what end points are you trying?

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