adding file_ids api

api to get ids of files answering to the search criteria