Added API endpoint