add devices and users api interface