Add warning and fix API endpoint name