Revisions
Revisions in GitBook are the entity for updates made to content.
GET
a specific revision in a space by it's ID
GET
a specific revision in a space by it's IDGet a specific revision in a space
GEThttps://api.gitbook.com/v1/spaces/{spaceId}/revisions/{revisionId}
Authorization
Path parameters
spaceId*string
The unique id of the space
revisionId*string
The unique id of the revision
Query parameters
Response
OK
Body
Revision (one of)
Request
Response
GET
a specific page in a revision by it's ID
GET
a specific page in a revision by it's IDGet a page by its ID in a revision.
GEThttps://api.gitbook.com/v1/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}
Authorization
Path parameters
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 parameters
Response
OK
Body
RevisionPage (one of)
Request
Response
GET
a specific revision in a space by it's path
GET
a specific revision in a space by it's pathGet a page by its path in a revision.
GEThttps://api.gitbook.com/v1/spaces/{spaceId}/revisions/{revisionId}/path/{pagePath}
Authorization
Path parameters
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 parameters
Response
OK
Body
one of
Request
Response
GET
files in a specific revision by it's ID
GET
files in a specific revision by it's IDList all files in a revision
GEThttps://api.gitbook.com/v1/spaces/{spaceId}/revisions/{revisionId}/files
Authorization
Path parameters
spaceId*string
The unique id of the space
revisionId*string
The unique id of the revision
Query parameters
Response
OK
Body
nextobject
countnumber
Total count of objects in the list
items*array of RevisionFile (object)
Request
Response
Last updated