Authentication

Elasticsearch Service supports only API key-based authentication.

To obtain an API key:

  1. Log in to the Elasticsearch Service Console.
  2. Go to Account and then API Keys.
  3. Click Generate API key.
  4. Provide your account password.
  5. Specify a name for the API key.
  6. Copy the generated API key and store it in a safe place. You can also download the key as a CSV file.

The API key has no expiration, so it may be used indefinitely. The API key has the same permissions as the API key owner. You may have multiple API keys for different purposes and you can revoke them when you no longer need them.

The API key needs to be supplied in the Authorization header of a request, in the following format:

Authorization: ApiKey $EC_API_KEY

To revoke an API key:

  1. Log in to the Elasticsearch Service Console.
  2. Go to Account and then API Keys.
  3. Click the trash icon under the Revoke column for any keys that you want to delete.