Is there any REST API to cancel "Follow Request Sent"?

restapi

#1

I know that there is follow/unfollow apis. But I want to cancel the follow request sent . How can I achieve this via twitter api?


#2

I believe using this endpoint will cancel the request, https://dev.twitter.com/rest/reference/post/friendships/destroy


#3

No , Only follow can be unfollowed by using this api endpoint. But sent request cant be cancelled.


#4

To cancel a follow request you can block then unblock the user. This will have as a side effect the cancelation of the follow request.

Block: https://dev.twitter.com/rest/reference/post/blocks/create
Unblock: https://dev.twitter.com/rest/reference/post/blocks/destroy


#5

There is any other direct way to do it?


#6

No, there’s not. We’ve played around with this too and found that the only way to do it is to block/unblock, which is unfortunate.


#7

Ok


#8