DELETE /2/users/:source_user_id/blocking/:target_user_id

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.



Endpoint URL

https://api.twitter.com/2/users/:source_user_id/blocking/:target_user_id

Authentication and rate limits

Authentication methods
supported by this endpoint

OAuth 1.0a User context

Rate limit

User rate limit: 50 requests per 15-minute window

Path parameters

NameTypeDescription
source_user_id
 Required 
stringThe 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.
target_user_id
 Required 
stringThe user ID of the user that you would like the source_user_id to unblock.


Example requests

      curl -X DELETE https://api.twitter.com/2/users/2244994945/blocking/6253282 -H "Authorization: OAuth $OAUTH_SIGNATURE"
    
      twurl -X DELETE /2/users/2244994945/blocking/6253282

    

Example responses

      {
  "data": {
    "blocking": false
  }
}
    

Response fields

NameTypeDescription
blockingbooleanIndicates whether the user is blocking the specified user as a result of this request. The returned value is false for a successful unblock request.