@hunar1997 this is not something that needs to be solved using API.
There is already feature request for this in ideas
ideas