Elasticsearch All Elasticsearch interaction is via REST API using . No SDK or client library required. Authentication Every request needs the cluster URL and an API key: API key format: Base64-encoded string. Pass as-is in the header. If the user provides a URL and key, export them as and before running commands. Important — variable expansion in curl: - Always use instead of in curl headers. The variable may not expand correctly in the shell, resulting in empty headers and 401 errors. - Always use to strip any trailing slash from the URL, preventing double-slash path issues (e.g., ). Quick H…