Tasks endpoint for the API