Camunda tasklist, fetch all task

Is there any way we can get the list of the task once the workflow is deployed, I am trying to fetch a list of the task using the get tasks API but its only return the active task.