Elasticsearch · Authentication Profile

Elasticsearch Authentication

Authentication

Elasticsearch secures its APIs with apiKey and http across 2 declared security schemes, as derived from its OpenAPI definitions.

AnalyticsDatabaseFull-Text SearchNoSQLSearch
Methods: apiKey, http Schemes: 2 OAuth flows: API key in: header

Security Schemes

basicAuth http
scheme: basic
apiKeyAuth apiKey
· in: header (Authorization)

Source

Authentication Profile

Raw ↑
generated: '2026-06-20'
method: searched
source: openapi/elasticsearch-openapi.yml
docs: https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth
summary:
  types:
  - apiKey
  - http
  api_key_in:
  - header
  model: >-
    Elasticsearch REST API authentication is per-cluster. HTTP Basic and API
    keys are the primary programmatic mechanisms; the security layer also
    supports bearer/service tokens, PKI (mutual TLS), and enterprise SSO realms
    (SAML, OIDC, Kerberos, LDAP/Active Directory). Authorization is
    role-based (RBAC) via cluster and index privileges, not OAuth scopes.
schemes:
- name: basicAuth
  type: http
  scheme: basic
  sources:
  - openapi/elasticsearch-openapi.yml
- name: apiKeyAuth
  type: apiKey
  in: header
  parameter: Authorization
  format: '"Authorization: ApiKey <base64(id:api_key)>"'
  docs: https://www.elastic.co/docs/reference/elasticsearch/rest-apis/create-api-keys
  sources:
  - openapi/elasticsearch-openapi.yml
realms:
- native
- api_key
- token (bearer / service account tokens)
- pki (mutual TLS)
- saml
- oidc
- kerberos
- ldap
- active_directory
authorization:
  model: rbac
  concepts:
    - cluster privileges
    - index privileges
    - application privileges
    - roles and role mappings
  docs: https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/user-roles

Work with this as data

Every security artifact here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for security posture

4 MCP tools reach this
  • find_securityBrowse and filter every security artifact in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This security artifact
curl "https://apis.io/api/v1/security/elasticsearch-authentication"
All security posture
curl "https://apis.io/api/v1/security?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.