The _query API accepts an ES|QL query string in the query parameter, runs it, and returns the results.