> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Elastic Cloud with API Key – StackOne Hub

> Link a Elastic Cloud account in the StackOne Hub using API Key. End-user guide to authorize the integration and start using Elastic Cloud actions.

<Warning>Only Organization owners can create and manage API keys. Keys are not tied to individual users and remain valid even if the creator leaves the organization.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Log in to the Elastic Cloud Console</h2>

  <p>Navigate to the <a href="https://cloud.elastic.co/login" target="_blank" rel="noopener noreferrer">Elastic Cloud Console</a> and log in with your credentials.</p>

  <img src="https://mintcdn.com/stackone-60/wsP2Fy1wWVzB77bo/connectors/elasticcloud/images/elastic-api-key-login.png?fit=max&auto=format&n=wsP2Fy1wWVzB77bo&q=85&s=c79c5b5c3f63264dc15efe67e92107cd" alt="Elastic Cloud login" width="804" height="479" data-path="connectors/elasticcloud/images/elastic-api-key-login.png" />
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Generate a Cloud API key</h2>

  <p>Create an API key for authenticating with the Elastic Cloud REST API.</p>

  <Steps>
    <Step title="Open the Organization page">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>From the Cloud home page, click your avatar in the top-right corner and select <strong>Organization</strong> from the dropdown menu.</p>

        <img src="https://mintcdn.com/stackone-60/wsP2Fy1wWVzB77bo/connectors/elasticcloud/images/elastic-api-key-dashboard.png?fit=max&auto=format&n=wsP2Fy1wWVzB77bo&q=85&s=c34e21af90c1815b641c9b73900b2999" alt="Organization dropdown" width="1312" height="700" data-path="connectors/elasticcloud/images/elastic-api-key-dashboard.png" />
      </div>
    </Step>

    <Step title="Navigate to the API keys tab">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>On the <strong>Organization</strong> page, select the <strong>API keys</strong> tab in the left-hand sidebar to view and manage your API keys.</p>

        <img src="https://mintcdn.com/stackone-60/wsP2Fy1wWVzB77bo/connectors/elasticcloud/images/elastic-api-key-page.png?fit=max&auto=format&n=wsP2Fy1wWVzB77bo&q=85&s=64aae016d9ac680ffdfdf88448d5d20e" alt="API keys tab" width="1453" height="948" data-path="connectors/elasticcloud/images/elastic-api-key-page.png" />
      </div>
    </Step>

    <Step title="Create a new API key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click <strong>Create API key</strong> and fill in the required details.</p>

        <ul>
          <li>Enter a descriptive <strong>Name</strong> (e.g. "StackOne Integration").</li>
          <li>Set an <strong>Expiration</strong> period (up to 1 year).</li>
          <li>Enable the <strong>Organization owner</strong> role and set the <strong>API Access</strong> dropdown to <strong>Cloud API</strong>.</li>
          <li>Click <strong>Create API key</strong>.</li>
        </ul>

        <img src="https://mintcdn.com/stackone-60/wsP2Fy1wWVzB77bo/connectors/elasticcloud/images/elastic-api-key-create-key.png?fit=max&auto=format&n=wsP2Fy1wWVzB77bo&q=85&s=12e9af50cf8758c5644e38391cd070a6" alt="Create API key form" width="1350" height="1123" data-path="connectors/elasticcloud/images/elastic-api-key-create-key.png" />
      </div>
    </Step>

    <Step title="Copy the API key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>The API key is displayed only once after creation. Copy it immediately and store it securely.</p>

        <ul>
          <li>If you lose the key, you must create a new one.</li>
          <li>Use the copy icon next to the key value to copy it to your clipboard.</li>
        </ul>

        <img src="https://mintcdn.com/stackone-60/wsP2Fy1wWVzB77bo/connectors/elasticcloud/images/elastic-api-key-copy.png?fit=max&auto=format&n=wsP2Fy1wWVzB77bo&q=85&s=0814f8dc9d86149ad5eaa878e67fc8bb" alt="Copy API key" width="1295" height="697" data-path="connectors/elasticcloud/images/elastic-api-key-copy.png" />
      </div>
    </Step>
  </Steps>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/connect/managing-connectors/linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>API Key</strong></li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></li>
        <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
        <li>Once authorization is successful, you will see a confirmation popup</li>
      </ul>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/gateway/concepts/linked-accounts">Accounts</a> page.</p>
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.