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



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?


I believe using this endpoint will cancel the request,


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


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.



There is any other direct way to do it?


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.