I'm a user of Elastic and Kibana via the cloud.elastic.co service. I have an aggregation search query which works perfectly from the Kibana devtools console. I now need to perform this query via a REST HTTP call from another application. Which URL endpoint and API path would I use for this and what authentication method? I know how to get the URL endpoints from the portal for Elasticsearch and Kibana, but which one do I use? I have tried POSTing to '/api/v1/_search' but do not get the same response as the devtools console.