Skip to content

IntegrationsKnowledge Management

GitBook API integration

Put GitBook in your product or your AI agent. Truto handles the sign-in and the token refresh, and keeps the connection working after launch.

Elaichi

From the team behind Truto

Control plane for MCP servers

Put your team’s own apps to work in their AI. Connect an app once, and everyone’s AI can use it.

Works in

  • Each person’s AI gets exactly their access. Nothing more.
  • Share an app with your team, not a password.
  • Every call is checked and logged.

No credit card required · 1000+ apps

01Proxy API

Call the GitBook API directly. Every endpoint, through Truto.

Truto’s Proxy API is a 1-to-1 mapping of the GitBook API. You call us, we call GitBook, and pass the response back in the same cycle. Truto handles authentication and token refresh.

On every plan, including Free.

How the Proxy API works

Proxy APIGitBook

GEThttps://api.truto.one/proxy/user?integrated_account_id=…

  • GET/proxy/organizations
  • GET/proxy/sites
  • GET/proxy/collections
  • GET/proxy/spaces

GitBook’s own response, passed back

02MCP server

GitBook tools for any AI agent. Any MCP client, or the agent you build.

Whatever your agent runs on, it gets GitBook tools for each customer’s account: through an MCP server, or straight from the tools API.

On every plan, including Free.

What an agent can doin GitBook
  • UserList, Get one, Update
  • OrganizationsList, Get one, Create, Update, Delete
  • Organization membersList, Get one, Update, Delete
  • Organization invitesList, Create, Delete
  • Organization teamsList, Get one, Create, Update, Delete
  • Team membersList
  • SitesList, Get one, Create, Update, Delete
  • Site spacesList
  • Site sectionsList
  • Site redirectsList
  • Site share linksList, Create, Delete
  • CollectionsList, Get one, Create, Update, Delete
  • SpacesList, Get one, Create, Update, Delete
  • Space contentGet one
  • PagesList, Get one
  • FilesList, Get one
  • Change requestsList, Get one, Create, Update
  • Change request reviewsList, Create
  • Space permissions usersList
  • Space permissions teamsList
  • IntegrationsList, Get one
  • Custom hostnamesList, Get one
Show tool names59 tools, for developers
  • list_all_git_book_userGet the currently authenticated user in GitBook. Returns the user object for the account associated with the active credentials.
  • get_single_git_book_user_by_idGet a single GitBook user by id. Returns the user object. Required: id.
  • update_a_git_book_user_by_idUpdate a GitBook user by id using a partial payload. Required: id.
  • list_all_git_book_organizationsList all GitBook organizations accessible to the caller. Returns a collection of organization objects from the items array.
  • get_single_git_book_organization_by_idGet a single GitBook organization by id. Returns the full organization object. Required: id.
  • create_a_git_book_organizationCreate a new GitBook organization. Returns the created organization object.
  • update_a_git_book_organization_by_idUpdate an existing GitBook organization by id. Returns the updated organization object. Required: id.
  • delete_a_git_book_organization_by_idDelete a GitBook organization by id. Returns an empty response on success. Required: id.
  • list_all_git_book_organization_membersList all members of a GitBook organization. Returns a collection of member objects. Required: organization_id.
  • get_single_git_book_organization_member_by_idGet a single GitBook organization member by id. Returns the member object for the specified member. Required: organization_id, id.
  • update_a_git_book_organization_member_by_idUpdate a GitBook organization member by id. Required: organization_id, id.
  • delete_a_git_book_organization_member_by_idDelete a GitBook organization member by id, removing them from the organization. Returns an empty response on success. Required: organization_id, id.
  • list_all_git_book_organization_invitesList the invites (invite links) of a GitBook organization. Returns id, role, and redundant for each invite. Required: organization_id.
  • create_a_git_book_organization_inviteCreate a new invite for a GitBook organization. Required: organization_id.
  • delete_a_git_book_organization_invite_by_idDelete an invite (invite link) from a GitBook organization by id. Returns an empty response on success. Required: organization_id, id.
  • list_all_git_book_organization_teamsList all teams within a GitBook organization. Returns a collection of team objects. Required: organization_id.
  • get_single_git_book_organization_team_by_idGet a single team in a GitBook organization by id. Returns the team object. Required: organization_id, id.
  • create_a_git_book_organization_teamCreate a new team within a GitBook organization. Returns the created team object. Required: organization_id.
  • update_a_git_book_organization_team_by_idUpdate an existing team in a GitBook organization by id. Returns the updated team object. Required: organization_id, id.
  • delete_a_git_book_organization_team_by_idDelete a team from a GitBook organization by id. Returns an empty response on success. Required: organization_id, id.
  • list_all_git_book_team_membersList members belonging to a specific team in a GitBook organization. Returns a collection of team member objects. Required: organization_id, team_id.
  • list_all_git_book_sitesList gitbook sites belonging to an organization. Returns a collection of site items. Required: organization_id.
  • get_single_git_book_site_by_idGet a single gitbook site by id within an organization. Returns the site object. Required: organization_id, id.
  • create_a_git_book_siteCreate a new gitbook site within an organization. Returns the created site object. Required: organization_id.
  • update_a_git_book_site_by_idUpdate an existing gitbook site by id within an organization. Returns the updated site object. Required: organization_id, id.
  • delete_a_git_book_site_by_idDelete a gitbook site by id within an organization. Returns an empty response on success. Required: organization_id, id.
  • list_all_git_book_site_spacesList site spaces within a gitbook site. Returns a collection of site space items. Required: organization_id, site_id.
  • list_all_git_book_site_sectionsList all site sections for a gitbook site within an organization. Returns a collection of site section items. Required: organization_id, site_id.
  • list_all_git_book_site_redirectsList redirects configured for a GitBook site within an organization. Returns a collection of redirect items. Required: organization_id, site_id.
  • list_all_git_book_site_share_linksList all share links for a GitBook site. Returns a collection of share link items. Required: organization_id, site_id.
  • create_a_git_book_site_share_linkCreate a new share link for a GitBook site. Returns the created share link object. Required: organization_id, site_id.
  • delete_a_git_book_site_share_link_by_idDelete a share link from a GitBook site by id. Returns an empty response on success. Required: organization_id, site_id, id.
  • list_all_git_book_collectionsList all gitbook collections belonging to an organization. Returns a list of collection items. Required: organization_id.
  • get_single_git_book_collection_by_idGet a single gitbook collection by id. Returns the collection object.
  • create_a_git_book_collectionCreate a new gitbook collection within an organization. Required: organization_id.
  • update_a_git_book_collection_by_idUpdate an existing gitbook collection by id. Required: id.
  • delete_a_git_book_collection_by_idDelete a gitbook collection by id. Returns an empty response on success. Required: id.
  • list_all_git_book_spacesList gitbook spaces belonging to an organization. Returns an array of space objects. Required: organization_id.
  • get_single_git_book_space_by_idGet a single gitbook space by id. Returns the full space object. Required: id.
  • create_a_git_book_spaceCreate a new gitbook space within an organization. Returns the created space object. Required: organization_id.
  • update_a_git_book_space_by_idUpdate an existing gitbook space by id. Returns the updated space object. Required: id.
  • delete_a_git_book_space_by_idDelete a gitbook space by id. Returns an empty response on success. Required: id.
  • get_single_git_book_space_content_by_idGet the content of a GitBook space. Returns the content structure for the specified space. Required: space_id.
  • list_all_git_book_pagesList all pages in a GitBook space. Returns an array of page objects from the space's content. Required: space_id.
  • get_single_git_book_page_by_idGet a single page from a GitBook space by id. Returns the page object for the specified page. Required: space_id, id.
  • list_all_git_book_filesList files within a GitBook space. Returns an array of file items belonging to the specified space. Required: space_id.
  • get_single_git_book_file_by_idGet a single file by id from a GitBook space. Returns the file object for the specified file. Required: space_id and id.
  • list_all_git_book_change_requestsList change requests for a GitBook space. Returns a collection of change request items. Required: space_id.
  • get_single_git_book_change_request_by_idGet a single change request by id from a GitBook space. Returns the change request object. Required: space_id, id.
  • create_a_git_book_change_requestCreate a new change request in a GitBook space. Returns the created change request object. Required: space_id.
  • update_a_git_book_change_request_by_idUpdate an existing change request in a GitBook space. Returns the updated change request object. Required: space_id, id.
  • list_all_git_book_change_request_reviewsList reviews for a GitBook change request within a space. Returns a collection of review items. Required: space_id, change_request_id.
  • create_a_git_book_change_request_reviewCreate a review for a GitBook change request within a space. Required: space_id, change_request_id.
  • list_all_git_book_space_permissions_usersList user permissions for a GitBook space. Returns a collection of user permission records associated with the specified space. Required: space_id.
  • list_all_git_book_space_permissions_teamsList team permissions for a GitBook space. Returns the collection of team permission entries associated with the specified space. Required: space_id.
  • list_all_git_book_integrationsList all integrations available in GitBook. Returns a collection of integration objects.
  • get_single_git_book_integration_by_idGet a single GitBook integration by id. Returns the full integration object. Required: id.
  • list_all_git_book_custom_hostnamesList all custom hostnames configured for a GitBook organization. Returns a collection of custom hostname items. Required: organization_id.
  • get_single_git_book_custom_hostname_by_idGet a single custom hostname by id for a GitBook organization. Returns the custom hostname object. Required: organization_id, id.

AMCP serverno code

For any MCP client

One URL per connected GitBook account. Paste it into Claude, ChatGPT, Cursor, Windsurf, VS Code, Cline, Zed or a custom agent.

Server URLhttps://api.truto.one/mcp/<token>

BTools APIfor developers

For the agent you build

One call returns every GitBook tool for an account, with its description and JSON schema, ready for any LLM framework.

GEThttps://api.truto.one/integrated-account/<id>/tools

Tools come as JSON schema, so they plug into any agent framework.

  • Always up to date

    Tools are generated from curated documentation, not hand-coded. As the integration changes, the tools stay current.

  • You set the limits

    Scope each MCP server to read-only, write-only, specific methods or tagged tool groups. Expose only what the agent needs.

  • One customer each

    Each MCP server is scoped to one connected account with its own credentials. Nothing leaks across tenants.

  • Tools you can edit

    Tool descriptions and schemas are editable in your Truto account. A change updates at once, with no deploy.

  • Sign-in handled

    Tool calls run through Truto’s proxy layer, with OAuth refresh, rate-limit handling and normalized errors.

  • Access can expire

    Create time-limited servers for contractors or automated workflows. Optionally require a Truto API token as well.

How MCP servers work

03Unified API

One API for GitBook and every other Knowledge Base app. One mapping to go.

The Unified Knowledge Base API gives every Knowledge Base app the same call and the same data shape. GitBook is not mapped to it yet. Map it yourself, or ask us.

GitBookon Truto
  1. Sign-in and tokensTruto handles themReady
  2. Proxy APIWorks today, on FreeReady
  3. Unified Knowledge Base APIOne mapping to goTo do

Then: one call for every Knowledge Base app

  • Path 1 Self-serve

    Map it yourself

    • Mapping editor, with version history
    • Live for every connected account
    • No deploy

    Get a free sandbox

  • Path 2 We do it

    Ask Truto

    • Tell us the GitBook data you need
    • We add the mapping

    Talk to us

  • Price Add-on

    $499 per category a month

    • 30-day trial on Free
    • Your own unified models: Pro add-on, $499 a month

    See pricing

04Sync and webhooks

Sync GitBook data on a schedule. Sent to your webhook.

A sync job reads GitBook records on a schedule and sends each page to your webhook or your datastore. Signed webhooks tell you when an account connects or needs to sign in again.

On every plan, including Free.

05Custom actions

Add any GitBook endpoint. With the Truto CLI.

Need a GitBook endpoint or method that is not here yet? Add it with the Truto CLI and your coding agent, or call any GitBook path through the Custom API.

On every plan, including Free. Truto CLI

For your own AI tools

Use GitBook in ChatGPT, Claude or Cursor with Elaichi.

Truto puts GitBook in the product you build. To use GitBook yourself, in the AI your team already has, we recommend Elaichi.

For your product

Ship GitBook tools in your product

Give the AI in your product access to each customer’s own GitBook account, with one MCP server per connected account.

Get a sandbox with GitBook

Rather talk it through? Book a demo

Elaichi

For your own team

Use GitBook in your own AI

Connect your company’s GitBook once, then ask in the AI you already use, with exactly your own access.

Works in

GitBook on Elaichi

From the team behind Truto · 14-day free trial

Use cases

Why integrate with GitBook.

  1. Power AI support agents with GitBook knowledge

    Customer support and AI copilot platforms can let users connect their GitBook workspace to ingest spaces, pages, and collections into a vector store, grounding chatbot responses in the customer's own documentation.

  2. Keep API docs in sync with code changes

    API management, CI/CD, and developer tooling platforms can push documentation updates as Change Requests in GitBook, ensuring published docs stay aligned with the latest API spec while preserving human review.

  3. Automate release notes and spec drafts

    Project management and engineering tools can auto-generate draft pages in a designated GitBook space when epics ship, eliminating the manual documentation tax on engineers.

  4. Provision documentation access during onboarding

    HR, IT, and identity platforms can invite new hires to GitBook organizations, assign them to teams, and audit space-level permissions as part of automated onboarding and offboarding flows.

  5. Centralize knowledge in enterprise search

    Enterprise search and internal wiki aggregators can crawl GitBook spaces, pages, and files to make customer documentation discoverable alongside other internal knowledge sources.

What you can build

Ship these with Truto and GitBook.

  • Full content sync across the GitBook hierarchy

    Traverse organizations, collections, spaces, and pages to mirror the entire documentation tree into your product with structured metadata.

  • Change Request–based publishing workflow

    Programmatically create change requests, push updates, and trigger reviews so automated edits flow through GitBook's branch-and-merge review process before going live.

  • Site and share link management

    List published sites, manage their spaces and sections, and generate or revoke share links to control who can access documentation portals.

  • Team and member provisioning

    Create organization invites, manage teams, and update or remove members to automate access provisioning for internal knowledge bases.

  • Permissions auditing for sensitive docs

    Report on which users and teams have access to specific spaces so security and compliance tools can flag overexposed documentation.

  • File and asset ingestion

    Pull GitBook files alongside pages to build complete knowledge indexes that include attachments, images, and uploaded assets.

Security

Your customers’ GitBook data stays theirs. Truto passes it through.

  • Records pass through

    Customer records are not kept. Truto fetches them when your product asks and passes them on.

  • Truto managed OAuth apps or yours

    Where an app signs in with OAuth, use Truto’s OAuth apps or your own, on every plan. Each customer’s login is kept encrypted (AES-256) while connected.

  • SOC 2 · TYPE IIAUDITEDISO/IEC 27001CERTIFIEDGDPRHIPAACASA · TIER 2TAC SECURITY

    Audited and certified

    SOC 2 Type II, ISO 27001, GDPR and HIPAA. CASA Tier 2, verified by TAC Security. Trust Centre

How it works

From zero to integrated. Start free, no card.

  1. Link your customer’s GitBook account

    Use Truto’s frontend SDK to connect your customer’s GitBook account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

  2. We handle authentication

    Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

  3. Call our API, we call GitBook

    Truto’s Proxy API is a 1-to-1 mapping of the GitBook API. You call us, we call GitBook, and pass the response back in the same cycle.

  4. Unified response format

    Every response follows a single format across all integrations. We translate GitBook’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about GitBook on Truto.

How does authentication work for end users connecting their GitBook account?

Truto handles the GitBook auth flow on your behalf, including token storage and refresh. Your users connect their GitBook organization through a hosted connection flow, and your app calls Truto's unified endpoints without managing credentials directly.

Can I write content back to GitBook, or is the integration read-only?

The integration supports both. You can read users, organizations, spaces, pages, files, and permissions, and you can write by creating spaces, collections, sites, share links, organization invites, teams, and change requests with reviews.

How should automated documentation updates be published?

GitBook's recommended pattern is to create a Change Request rather than overwriting live content. Use the change request and change request review tools to propose updates and route them through human review before merge.

How is GitBook's hierarchy represented?

Content is organized as Organizations → Collections → Spaces → Pages, with Sites representing published portals over one or more spaces. The available list and get tools let you traverse each level and fetch page-level content for indexing.

Can I audit who has access to specific GitBook spaces?

Yes. You can list user-level and team-level permissions on a space, list organization teams and their members, and reconcile this against your own identity system for access reviews.

How fresh is the data my application receives?

Data is fetched on-demand via Truto's API calls, so reads always reflect GitBook's current state. For ongoing sync, you can schedule polling against the list endpoints to detect changes to spaces, pages, change requests, and members.

GitBook

Get GitBook integrated into your app

Sign up free, connect a test GitBook account and make your first call today. No card and no sales call.