normalize agentd rest api interface