The block and unblock users endpoints are only available under the Enterprise plan. You can fill out the Enterprise interest form here.
Authentication
Blocks endpoints require user authentication:Required scopes (OAuth 2.0)
Endpoints overview
Fields and expansions
Default response
Available fields
user.fields
user.fields
expansions
expansions
What happens when you block
They can't
- See your Posts (unless logged out)
- Follow you
- Send you DMs
- Add you to Lists
- Tag you in photos
You can't
- See their Posts
- Follow them
- Send them DMs
When you block someone who follows you, they are automatically unfollowed.
Pagination
For users with large block lists, results are paginated:cURL
Error handling
Next steps
Quickstart
Make your first blocks request
Mutes
Mute users instead of blocking
API Reference
Full endpoint documentation
Sample code
Working code examples