endpoint to fetch a single task.