Product Docs
Terms
Privacy
Search…
Welcome
API
Overview
Authentication
Rate Limiting
Errors
Pagination
Resources
Users
Organizations
Collections
Spaces
Change Requests
Content
Insights
Revisions
Integrations
URLs
Librairies
Integrations
Overview
Configurations
Runtime
Examples
CLI
Quickstart
Reference
CI
Changelogs
API
Integrations
Powered By
GitBook
Content
The GitBook API is currently in
beta
. This means you should not rely on it's availability, and that it may change without prior warning.
Retrieve content from a Space
get
https://api.gitbook.com/v1
/spaces/{spaceId}/content
Get the current primary content revision for a space
get
https://api.gitbook.com/v1
/spaces/{spaceId}/content/files
List all files for the latest primary revision content for a space
get
https://api.gitbook.com/v1
/spaces/{spaceId}/content/page/{pageId}
Get a page by its ID in the primary content.
get
https://api.gitbook.com/v1
/spaces/{spaceId}/content/path/{pagePath}
Get a page by its path in the primary content.
Import content to a Space
post
https://api.gitbook.com/v1
/spaces/{spaceId}/content/import
Import content in a space.
post
https://api.gitbook.com/v1
/spaces/{spaceId}/content/page/{pageId}/import
Import external content into a page by its ID.
Previous
Change Requests
Next
Insights
Last modified
24d ago
Copy link
Outline
Retrieve content from a Space
get
/spaces/{spaceId}/content
get
/spaces/{spaceId}/content/files
get
/spaces/{spaceId}/content/page/{pageId}
get
/spaces/{spaceId}/content/path/{pagePath}
Import content to a Space
post
/spaces/{spaceId}/content/import
post
/spaces/{spaceId}/content/page/{pageId}/import