add agent/self endpoint