> ## 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 Deel with API Token – StackOne Hub

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

<section data-guide-section data-guide-scopes="">
  <h2>Choosing Your Environment</h2>

  <p>Deel provides separate environments for development and production. Choose the appropriate environment based on your use case.</p>

  <Steps>
    <Step title="Select the right environment">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>When connecting Deel to StackOne, you will be asked to select an environment.</p>

        <ul>
          <li><strong>Production</strong> — Uses your live Deel organization with real employee and contractor data at `app.deel.com`</li>
          <li><strong>Sandbox</strong> — Uses simulated data for testing at `app.demo.deel.com`. Create a sandbox from the Developer Center if you don't have one</li>
          <li>Each environment requires its own API token</li>
          <li>You can switch environments later by creating a new connection</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

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

  <p>Create an API token in the Deel Developer Center to authenticate API requests.</p>

  <Steps>
    <Step title="Open the Developer Center">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your Deel account and navigate to the Developer Center.</p>

        <ul>
          <li><strong>Production</strong> — Sign in at <a href="https://app.deel.com/" target="_blank" rel="noopener noreferrer">app.deel.com</a>. Click <strong>More</strong> in the top navigation bar, then select <strong>Developer</strong> from the products and services grid. You will land on the <strong>Access Tokens</strong> tab.</li>
          <li><strong>Sandbox</strong> — Sign in at <a href="https://app.demo.deel.com/" target="_blank" rel="noopener noreferrer">app.demo.deel.com</a>. Click the <strong>Settings</strong> icon (gear) in the top bar, then scroll to the <strong>Services</strong> section in the left sidebar and click <strong>Developer</strong> > <strong>Tokens</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Create a new token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>On the <strong>Access Tokens</strong> tab, click <strong>Generate new token</strong> to open the token creation wizard.</p>

        <ul>
          <li><strong>Step 1 — Token details</strong> — Enter a descriptive label (e.g., "StackOne Integration") and select <strong>Organization</strong> token type (recommended)</li>
          <li><strong>Step 2 — Select scopes</strong> — Choose the required API scopes for your integration</li>
          <li><strong>Step 3 — Permission levels</strong> — Configure the permission levels</li>
          <li><strong>Step 4 — Select groups</strong> — Choose which groups to grant access to</li>
          <li><strong>Step 5 — Sensitive data</strong> — Configure sensitive data access permissions</li>
          <li><strong>Step 6 — Review</strong> — Review your settings and confirm token creation</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy and store the token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Copy the generated token immediately and store it securely for use later.</p>

        <ul>
          <li><strong>Critical</strong> — The token is shown only once. You cannot retrieve it after closing this page</li>
          <li>If the token is lost, you must generate a new one</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Matching Your Token to Your Environment</h2>

  <p>Ensure your API token matches the environment you selected in StackOne.</p>

  <ul>
    <li>If you selected <strong>Production</strong>, use a token generated from `app.deel.com`</li>
    <li>If you selected <strong>Sandbox</strong>, use a token generated from `app.demo.deel.com`</li>
    <li>Using a token from the wrong environment will cause authentication errors</li>
  </ul>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Important Notes</h2>

  <p>Key information about Deel API token authentication.</p>

  <ul>
    <li>Organization tokens grant access to all organizational resources (contracts, timesheets, invoices, accounting, SCIM)</li>
    <li>Personal tokens are limited to user-specific resources (contract creation, SSO)</li>
    <li>Tokens do not expire but can be revoked from the Developer Center</li>
    <li>Rotate credentials quarterly or when team members depart</li>
  </ul>
</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>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>
