Added API endpoints