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.