added api endpoint for tasks