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

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

<Warning>A Personal Access Token is created under the API menu of your Namely HRIS site. Use a token from an Administrator user (ideally a dedicated integrations profile) so it is not tied to an individual employee.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Finding your Namely subdomain</h2>

  <p>Your subdomain identifies your Namely site.</p>

  <Steps>
    <Step title="Locate your subdomain">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Your subdomain is the text before `.namely.com` in your Namely URL. For example, if you access Namely at `https://acme.namely.com`, your subdomain is `acme`.</p>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Create a Personal Access Token</h2>

  <p>Generate a Personal Access Token to authenticate API requests.</p>

  <Steps>
    <Step title="Open the API menu">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your Namely HRIS site as an administrator and click the <strong>API</strong> menu item. If you do not see it, contact your client success manager or Namely administrator for permission.</p>
      </div>
    </Step>

    <Step title="Create the token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>On the <strong>Personal Access Tokens</strong> tab, click <strong>New Access Token</strong>, give it a name for future reference, and click <strong>Create</strong>.</p>
      </div>
    </Step>

    <Step title="Copy the token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Copy and store the token securely - it is only shown once.</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>Subdomain</strong></li>
        <li><strong>Personal Access 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>
