When testing out the https://api.twitch.tv/helix/moderation/bans?broadcaster_id=123456&moderator_id=123456, where the broadcaster_id and moderator_id are my channel’s id, I get a Status Code 500, Internal Server Error, I tested the same authorization token using another endpoint such as https://api.twitch.tv/helix/moderation/banned?broadcaster_id=123456 and I get a Status Code 200 and the list of banned users is returned, so I thinking there might be an issue with the /moderation/bans endpoint understanding that one is a post requests and the other is a get requests, I am also requesting the correct scope of “moderator:manage:banned_users” otherwise I’m not sure what issue is.
This was user error, as I was passing the username and not the numeric id of the user I was trying to ban, after correcting this issue, it works perfectly
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.