> ## 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 GitBook with Personal Access Token – StackOne Hub

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

> [!WARNING]
>
> Access to GitBook Developer tools is required to generate a Personal Access Token.

## Generating a Personal Access Token

To connect GitBook with StackOne, generate a Personal Access Token from your GitBook account.

**1. Sign in to GitBook**

Sign in to your [GitBook account](https://app.gitbook.com).

![GitBook sign-in page](https://mintcdn.com/stackone-60/MWWqCynAD54jCJRQ/connectors/gitbook/images/api-key-config-signin.png?fit=max\&auto=format\&n=MWWqCynAD54jCJRQ\&q=85\&s=61ac420a05a8f2518c10b4d2a276ef56)

**2. Access Developer tools**

Navigate to the Developer tools page in your account settings.

<ul>
  <li>Click **Settings** in the left sidebar under Organization.</li>
  <li>Click **Developer tools** in the left sidebar under Organization.</li>
  <li>Navigate to the **API Access Tokens** tab.</li>
</ul>

![GitBook Settings page showing Developer tools](https://mintcdn.com/stackone-60/MWWqCynAD54jCJRQ/connectors/gitbook/images/api-key-config-org-settings.png?fit=max\&auto=format\&n=MWWqCynAD54jCJRQ\&q=85\&s=634034f235fc90c64235d2c06887adec)

**3. Create a new access token**

Click the **+ Create new API token** button to generate a new Personal Access Token.

<ul>
  <li>Enter a descriptive label for your token (e.g., StackOne Integration).</li>
  <li>Click the **Create** button.</li>
</ul>

![GitBook Create new API token dialogue](https://mintcdn.com/stackone-60/MWWqCynAD54jCJRQ/connectors/gitbook/images/api-key-config-create-token.png?fit=max\&auto=format\&n=MWWqCynAD54jCJRQ\&q=85\&s=684cd22665e1999ece6a605cd3c28fbe)

**4. Copy the access token**

Copy the generated Personal Access Token and store it securely.

<ul>
  <li>Format: `gb_api_` followed by alphanumeric characters.</li>
  <li>Click the **Copy** button to copy the token to your clipboard.</li>
  <li>Click `X` to close the token generation modal.</li>
  <li>Note: If you lose your token, you will need to generate a new one.</li>
</ul>

![GitBook showing the generated Personal Access Token to copy](https://mintcdn.com/stackone-60/MWWqCynAD54jCJRQ/connectors/gitbook/images/api-key-config-copy-token.png?fit=max\&auto=format\&n=MWWqCynAD54jCJRQ\&q=85\&s=e8a7df36874354d7118b03deac697161)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</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>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/gitbook/guides/webhook-setup.md)
>
> Configure receiving Events for GitBook into StackOne.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.