> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onyx.app/llms.txt
> Use this file to discover all available pages before exploring further.

# GitBook

> Access documentation from GitBook

## How it works

The GitBook connector will pull in all the documentation content from your specified GitBook spaces.

## Setting up

### Authorization

<Steps>
  <Step title="Open Developer settings">
    Go to your GitBook account settings and navigate to 'Developers' section ([https://app.gitbook.com/account/developer](https://app.gitbook.com/account/developer))
  </Step>

  <Step title="Create API token">
    Click on 'Create new token'. Give your token a name and select the appropriate scopes.
    Click 'Create' to generate your API token.
  </Step>

  <Step title="Copy and store token">
    Copy and save your token securely — you won't be able to see it again.
  </Step>
</Steps>

<img className="rounded-image" src="https://mintcdn.com/danswer/aj13v1mzLf028SWE/assets/admins/connectors/gitbook/gitbook_1.png?fit=max&auto=format&n=aj13v1mzLf028SWE&q=85&s=aa9f8137bfaeda7b6dd9b09a62e71886" alt="GitBook Developer Page" width="3216" height="1910" data-path="assets/admins/connectors/gitbook/gitbook_1.png" />

### Indexing

<Steps>
  <Step title="Open GitBook connector">
    Navigate to the Admin Panel and select the **GitBook** Connector
  </Step>

  <Step title="Enter API token">
    In **Step 1**, paste your **API Token** from the previous step

    <img className="rounded-image" src="https://mintcdn.com/danswer/24Ocig51qMqahMaT/assets/admins/connectors/gitbook/gitbook_2.png?fit=max&auto=format&n=24Ocig51qMqahMaT&q=85&s=51b0a2f853f0121548e5f1535b223bdf" alt="GitBook API Configuration" width="3216" height="1910" data-path="assets/admins/connectors/gitbook/gitbook_2.png" />
  </Step>

  <Step title="Enter Space ID and connect">
    Enter your **Space ID** - you can find this in the URL of your GitBook space (e.g.,
    `https://app.gitbook.com/o/<organization>/s/<space-id>`). Click 'Connect' to begin indexing your GitBook content.

    <img className="rounded-image" src="https://mintcdn.com/danswer/24Ocig51qMqahMaT/assets/admins/connectors/gitbook/gitbook_3.png?fit=max&auto=format&n=24Ocig51qMqahMaT&q=85&s=1d305f95ad0be1ab6f723ef20164d81e" alt="GitBook Space Configuration" width="3216" height="1910" data-path="assets/admins/connectors/gitbook/gitbook_3.png" />
  </Step>
</Steps>
