How to get the tasklist with, response showing the ACTIVE/Completed task. with POST/GET TASK API? or HISTORY POST/GET API? how can we check that task is completed or in active state?

I need to check my all the tasklist status with respect to the task is active or completed or deleted or something else in TASK API , can someone help me with the req params or req body or url to get me ACTIVE/Completed/deleted ? thanks

https://localhost:8080/engine-rest/process-instance?businessKey=MyBusinessKey&finished=false&variables=myBoolean_eq_true

Would check for all process instances with the supplied business key, that are not finished, and that have the variable myBoolean set to true. The docs on this are at Get Instances | docs.camunda.org

for example */history/task i am getting the deleted reason as "Completed " and in task list api i am getting the state as “active”, can we get it in single endpoint with query params with camunda? any solution on this? thanks