Add a draft version of QueryAPI. Send func implemented