GitBook API
The GitBook REST API enables you to programmatically manage your GitBook content, organizations, spaces, collections, and integrations. It supports creating, updating, and deleting organizations, spaces, collections, and published docs sites; managing users, teams, and access permissions; importing and exporting content; creating, listing, reviewing, merging, and updating change requests; managing comments; configuring custom hostnames and URLs; and managing integrations and OpenAPI documentation.
What You Can Do
MCP Tools
getcurrentuser
GitBook Get the authenticated user
getuserbyid
GitBook Get a user by ID
listorganizations
GitBook List organizations
getorganization
GitBook Get an organization
updateorganization
GitBook Update an organization
listorganizationmembers
GitBook List organization members
getorganizationmember
GitBook Get an organization member
updateorganizationmember
GitBook Update an organization member
removeorganizationmember
GitBook Remove an organization member
listorganizationteams
GitBook List organization teams
getorganizationteam
GitBook Get a team
listspacesinorganization
GitBook List spaces in an organization
createspaceinorganization
GitBook Create a space in an organization
getspace
GitBook Get a space
updatespace
GitBook Update a space
deletespace
GitBook Delete a space
duplicatespace
GitBook Duplicate a space
movespace
GitBook Move a space
transferspace
GitBook Transfer a space
restorespace
GitBook Restore a deleted space
listspaceusers
GitBook List space user permissions
updatespaceuser
GitBook Update space user permissions
removespaceuser
GitBook Remove a space user
getspacecontent
GitBook Get space content
getpageinspace
GitBook Get a page in a space
updatepageinspace
GitBook Update a page in a space
listfilesinspace
GitBook List files in a space
listcollectionsinorganization
GitBook List collections
createcollection
GitBook Create a collection
getcollection
GitBook Get a collection
deletecollection
GitBook Delete a collection
listchangerequests
GitBook List change requests
createchangerequest
GitBook Create a change request
getchangerequest
GitBook Get a change request
updatechangerequest
GitBook Update a change request
mergechangerequest
GitBook Merge a change request
getchangerequestcontent
GitBook Get change request content
getpageinchangerequest
GitBook Get a page in a change request
updatepageinchangerequest
GitBook Update a page in a change request
listchangerequestreviewers
GitBook List change request reviewers
requestchangerequestreview
GitBook Request a review
listdocssites
GitBook List docs sites
createdocssite
GitBook Create a docs site
getdocssite
GitBook Get a docs site
updatedocssite
GitBook Update a docs site
deletedocssite
GitBook Delete a docs site
listsitespaces
GitBook List site spaces
addsitespace
GitBook Add a space to a docs site
updatesitespace
GitBook Update a site space
removesitespace
GitBook Remove a space from a docs site
movesitespace
GitBook Move a site space
asksiteai
GitBook Ask a question to a site
searchorganizationcontent
GitBook Search content in an organization
listopenapispecs
GitBook List OpenAPI specifications
uploadopenapispec
GitBook Upload an OpenAPI specification
getopenapispec
GitBook Get an OpenAPI specification
listintegrations
GitBook List integrations
getintegration
GitBook Get an integration
importcontenttospace
GitBook Import content to a space
resolvecontenturl
GitBook Resolve a content URL