Device api