destroyBlock abstract method

Future<TwitterResponse<BlockStateData, void>> destroyBlock({
  1. required String userId,
  2. required String targetUserId,

Allows a user or authenticated user ID to unblock another user.

The request succeeds with no action when the user sends a request to a user they're not blocking or have already unblocked.


  • userId: The user ID who you would like to initiate an unblock on behalf of. The user’s ID must correspond to the user ID of the authenticating user, meaning that you must pass the Access Tokens associated with the user ID when authenticating your request.

  • targetUserId: The user ID of the user that you would like to unblock.

Endpoint Url

Authentication Methods

  • OAuth 2.0 Authorization Code with PKCE
  • OAuth 1.0a

Required Scopes

  • block.write

Rate Limits

  • User rate limit (OAuth 2.0 user Access Token): 50 requests per 15-minute window per each authenticated user



Future<TwitterResponse<BlockStateData, void>> destroyBlock(
    {required String userId, required String targetUserId});