JSON rest API for polling