Add endpoint to get task