Updated API endpoints