Revisions
Revisions in GitBook are the entity for updates made to content.
get
https://api.gitbook.com/v1
/spaces/{spaceId}/revisions/{revisionId}
Get a specific revision in a space
Parameters
Path
spaceId*
string
The unique id of the space
revisionId*
string
The unique id of the revision
Responses
200: OK
OK
default
Unexpected Error
get
https://api.gitbook.com/v1
/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}
Get a page by its ID in a revision.
Parameters
Path
spaceId*
string
The unique id of the space
revisionId*
string
The unique id of the revision
pageId*
string
The unique id of the page
Query
format
string
Output format for the content.
Responses
200: OK
OK
default
Unexpected Error
get
https://api.gitbook.com/v1
/spaces/{spaceId}/revisions/{revisionId}/path/{pagePath}
Get a page by its path in a revision.
Parameters
Path
spaceId*
string
The unique id of the space
revisionId*
string
The unique id of the revision
pagePath*
string
The path of the page in the revision.
Query
format
string
Output format for the content.
Responses
200: OK
OK
default
Unexpected Error
get
https://api.gitbook.com/v1
/spaces/{spaceId}/revisions/{revisionId}/files
List all files in a revision
Parameters
Path
spaceId*
string
The unique id of the space
revisionId*
string
The unique id of the revision
Query
page
string
Identifier of the page results to fetch.
limit
number
The number of results per page
Responses
200: OK
OK
default
Unexpected Error
Last modified 1mo ago