Blocking Users
Learn to block and unblock users on Twitch.
The block endpoint
Sometimes on social media platforms, we may find ourselves in situations where we’re forced to block another user.
Twitch allows us to block users from both the console and the API. The API also gives us the capability to unblock users, as well as to view the list of blocked users.
The API provides a blocks endpoint for these purposes. The URL for this endpoint is as follows:
https://api.twitch.tv/helix/users/blocks
Block a user
To block a user through the blocks endpoint, we need to send a PUT request authorized with a user access token that has the user:manage:blocked_users
scope.
To make a successful request, we need to provide the ID of a user to be blocked as a required query parameter. If we want, we can also use a few ...