Skip to content
← Connectors Directory

Command · Knowledge & Docs

GitBook

Import pages from GitBook spaces into your projects.

ImportAuth: Personal access token

How it works

GitBook is a token-based import connector. Command calls the GitBook API with a personal access token, pulls the pages of the spaces you select, converts them to Markdown, and indexes them into your project's vector store.

01

Before you start

  • A GitBook organization you are a member of
  • Permission to create a personal access token in GitBook
  • A raia Command project with a destination folder
02

What you need to make the connection

FieldWhere to get it
Personal access tokenGitBook → click your avatar → Settings → Developer → Access tokens → Create token. Starts with gb_api_. Copy it immediately — GitBook shows it once.
Organization / spaceSelected from a dropdown in raia Command after the token validates — no manual ID needed.

Credentials are stored encrypted in raia Command and are never shown again after saving. Rotate them at the provider if they are exposed.

03

Setup steps

  1. 01

    Create the personal access token in GitBook and copy it.

  2. 02

    In raia Command, open Settings → Connectors, find the connector, and click Connect.

  3. 03

    Paste the token and save. Command validates it and lists your organizations.

  4. 04

    Pick the spaces to import and the destination project folder.

  5. 05

    Choose the destination project folder, run the first import, then set a sync schedule. Every run is recorded in Sync History.

04

Good to know

  • The token inherits your GitBook permissions — it can only read spaces your account can read.
  • Rotate the token in GitBook and re-paste it in Command if it is ever exposed.
05

Next steps

Other Knowledge & Docs connectors