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

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

<Warning>Credentials are valid for 180 days. Generating a new set keeps the previous set active for five more days if it had more than one week left, so update the connection within that window.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Generate Gateway API credentials in Magnit VMS</h2>

  <p>Credentials are generated by a supplier user with the API Admin (individual supplier) or Group API Admin (all supplier profiles in a Gateway subscription) permission.</p>

  <Steps>
    <Step title="Open API Management">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to Magnit VMS as a supplier user with API Admin or Group API Admin permission and open the API Management page.</p>

        <ul>
          <li>Group credentials cover every supplier profile in your Gateway subscription. Individual credentials cover one supplier.</li>
        </ul>
      </div>
    </Step>

    <Step title="Generate and copy the credentials">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Generate new credentials and copy all four values before saving. They are not shown again.</p>

        <ul>
          <li>Client Key</li>
          <li>Client Secret</li>
          <li>Credential Key (numeric)</li>
          <li>x-api-key header value</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Enter the credentials in StackOne</h2>

  <p>Paste the four values into the matching fields and choose Production or the Lower Environment (sandbox) when connecting.</p>
</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>Client Key</strong></li>
        <li><strong>Client Secret</strong></li>
        <li><strong>Credential Key</strong></li>
        <li><strong>API Key (x-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.