Elastic Cloud API Keysedit

Elastic Cloud API keys are organization-wide objects shared between all users in the organization. An API key allows you to perform most of the operations available in the UI console through API calls. You can create and manage deployments, configure remote clusters, set up traffic filters, manage extensions, and much more.

Only Organization owners and can create API keys for every user role. Like users, API keys can be assigned roles to control their access to organizational resources, such as deployments. You can have multiple API keys for different purposes, and you can revoke them when you no longer need them.

To create an API key:

  1. Log in to the Elasticsearch Service Console.
  2. Go to your avatar in the upper right corner and choose Organization.
  3. On the API keys tab of the Organization page, click Create API Key.

    The Elastic Cloud API keys that you create here can only be used for authenticating Elastic Cloud API calls, not for deployment-level APIs, such as Elasticsearch or Kibana APIs.

    From the Create API Key page, you can configure your new key by adding a name, set expiration, or assign roles.

    By default, the API key will expire three months after its creation date, but you can set the expiration to Never. The API key has no expiration, so it can be used indefinitely.

  4. Click Create API key, copy the generated API key, and store it in a safe place. You can also download the key as a CSV file.

To revoke an API key:

  1. Log in to the Elasticsearch Service Console.
  2. Go to your avatar in the upper right corner and choose Organization. The keys currently associated with your organization are listed under the API keys tab of the Organization page.
  3. Find the key you want to revoke, and click the trash icon under Actions.