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

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

<Warning>Ensure you have admin access to your Prismic repository to generate permanent tokens.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Getting Your Prismic Credentials</h2>

  <p>To connect Prismic with StackOne, you'll need your repository name and a permanent write token.</p>

  <Steps>
    <Step title="Find Your Repository Name">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Your repository name is the subdomain of your Prismic dashboard URL.</p>

        <ul>
          <li>If your dashboard URL is `https://my-repo-name.prismic.io`, your repository name is `my-repo-name`</li>
        </ul>
      </div>
    </Step>

    <Step title="Generate a Permanent Write Token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Navigate to your Prismic repository settings to create a permanent token.</p>

        <ul>
          <li>Log in to your <a href="https://prismic.io/dashboard" target="_blank" rel="noopener noreferrer">Prismic Dashboard</a></li>
          <li>Select your repository (or create one if you don't have one yet)</li>
          <li>Click the <strong>Settings</strong> gear icon in the left sidebar</li>
          <li>Select <strong>API & Security</strong></li>
          <li>Click the <strong>Write APIs</strong> tab at the top</li>
          <li>Enter an application name in the <strong>My application name</strong> field</li>
          <li>Click <strong>Add a token</strong> to create a new permanent write token</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy Your Credentials">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Copy both your repository name and permanent token for use in StackOne. The token does not expire unless manually regenerated.</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>Repository Name</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>
