Getting Error Code 500 when calling /moderation/bans API endpoint

When testing out the, 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 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.