Fixed API endpoints