Device's query api