Add API root configuration

Also fix host mutation bug.