Updated server API endpoint