add device api