The block and unblock users endpoints are only available under the Enterprise plan. You can fill out the Enterprise interest form here.
Overview
Blocked users
Get your blocked user list
Block
Block a user
Unblock
Unblock a user
Endpoints
| Method | Endpoint | Description | Availability |
|---|---|---|---|
| GET | /2/users/:id/blocking | Get blocked users | Pay-per-useEnterprise |
| POST | /2/users/:id/blocking | Block a user | Enterprise |
| DELETE | /2/users/:source_user_id/blocking/:target_user_id | Unblock a user | Enterprise |
Example: Get blocked users
Example: Block a user (Enterprise only)
Getting started
Prerequisites
- An approved developer account
- A Project and App in the Developer Console
- User Access Tokens via OAuth 2.0 PKCE
Quickstart
Get started with blocks
Integration guide
Key concepts and best practices
API Reference
Full endpoint documentation