> ## 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 Gladly with API Key – StackOne Hub

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

<section data-guide-section data-guide-scopes="">
  <h2>Retrieve Your Organization Slug</h2>

  <p>Your organization slug is the subdomain in your Gladly URL. For example, if your Gladly URL is `https://acme.gladly.com`, then your organization slug is `acme`.</p>

  <Steps>
    <Step title="Find Your Organization Slug">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Open your Gladly instance in a browser and note the subdomain in your URL (e.g., `https://acme.gladly.com` — the slug is `acme`). Enter this value in the <strong>Organization Slug</strong> field in StackOne.</p>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Create a Dedicated API User</h2>

  <p>Gladly recommends creating a dedicated user account for API access.</p>

  <Steps>
    <Step title="Enable API User Permission">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>- Log in to your Gladly instance.<br />- Open the menu in the top-left corner and navigate to <strong>Settings > Users</strong>.<br />- Search for and click the user profile you wish to use for API access.<br />- Enable the <strong>API User</strong> permission while keeping the Agent role intact.<br />- Click <strong>Save</strong>.</p>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Generate an API Token</h2>

  <p>Create an API token for the API user account.</p>

  <Steps>
    <Step title="Open API Token Settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Log in as the API user and click <strong>More settings</strong> in the navigation menu.</p>
      </div>
    </Step>

    <Step title="Create Token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click <strong>API Tokens</strong>, then click the <strong>Create Token</strong> button in the upper right. Copy the generated token immediately — it is shown only once. Store it securely.</p>
      </div>
    </Step>

    <Step title="Enter Credentials in StackOne">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Enter the API user's email address in the <strong>Agent Email</strong> field and the copied token in the <strong>API Token</strong> field in StackOne.</p>
      </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="/guides/accounts-section#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>Organization Slug</strong></li>
        <li><strong>Agent Email</strong></li>
        <li><strong>API Token</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="/guides/accounts-section">Accounts</a> page.</p>
</div>
