The block and unblock users endpoints are only available under the Enterprise plan. You can fill out the Enterprise interest form here.
PrerequisitesBefore you begin, you’ll need:
- A developer account with an approved App
- User Access Token (OAuth 1.0a or OAuth 2.0 PKCE)
Get blocked users
1
Get your user ID
You need your authenticated user’s ID to retrieve your block list. You can get it from the
/2/users/me endpoint or use the ID from your tokens.2
Request your block list
cURL
3
Review the response
Block a user (Enterprise only)
1
Identify the target user
Get the user ID of the account you want to block.
2
Send a block request
cURL
3
Confirm the block
Unblock a user (Enterprise only)
1
Send an unblock request
cURL
2
Confirm the unblock
Next steps
Mutes
Mute users instead of blocking
Follows
Manage follows
Integration guide
Key concepts and best practices
API Reference
Full endpoint documentation