Add API endpoints