API to fetch Tasks from Task Table

I have a usecase, wherein I want to fetch the Tasks from Task Table, and take some action on them.

Is there some API exposed by Flowable that can help in interacting with the Task Table?

Fetching data directly by running sql query on my db seems cubersome.

Can someone please help?

Can someone please direct me in this ?

is there some way to fetch the user tasks ?
i see in flowable, we can fetch the jobs from dead letter. need to understand if same can be achieved from task table.

@Mahima If you need REST API you will find docs to task related methods here: REST API · Flowable Open Source Documentation
If you mean engine API you need to check TaskService object: The Flowable API · Flowable Open Source Documentation