sample device api