API - Basic API calls

Oh actually never mind since query_id_existence will return nothing and user will see 404. Nevermind