Created API query model