Fixed API endpoint