Add API endpoint for polling widgets.