Spaces

Get the details about a space.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
shareKeystringOptional

For sites published via share-links, the share key is useful to resolve published URLs.

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}

Soft-deletes a space. Soft-deleted spaces will be permanently removed after 7 days.

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Responses
delete
/spaces/{spaceId}

No content

Update the details of a space

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
and
anyOptional
or
or
Responses
chevron-right
200

The space has been updated

application/json
patch
/spaces/{spaceId}

Create a duplicate of the space.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Responses
post
/spaces/{spaceId}/duplicate

Restore a recently soft-deleted space.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Responses
chevron-right
200

Space restored

application/json
post
/spaces/{spaceId}/restore

Move a space to a new position.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
parentstring | nullableOptional

The unique id of the parent collection

Responses
chevron-right
200

Space moved

application/json
post
/spaces/{spaceId}/move

Transfer a space to another organization, collection or both.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
organizationstringRequired

The unique id of the target organization

Responses
chevron-right
200

Space transferred

application/json
post
/spaces/{spaceId}/transfer

Resolve a URL to an embed in a given space

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
urlstringRequired

URL to resolve

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/embed

Import a Git repository

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
urlstringRequired

URL of the Git repository to import. It can contain basic auth credentials.

refstringRequired

Git ref to import in the format "refs/heads/main"

repoCacheIDstringOptional

Unique identifier to use to cache the Git repository across multiple operations.

repoTreeURLstringOptional

URL to use as a prefix for external file references.

repoCommitURLstringOptional

URL to use as a prefix for the commit URL.

repoProjectDirectorystringOptional

Path to a root directory for the project in the repository.

timestampstring · date-timeOptional

The timestamp of the event that triggered this import. It ensures that Git sync import and export operations are executed in the same order on GitBook and on the remote repository.

forcebooleanOptional
standalonebooleanOptional

If true, the import will generate a revision without updating the space primary content.

Responses
post
/spaces/{spaceId}/git/import

No content

Export the space content to a Git repository.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
urlstringRequired

URL of the Git repository to export to. It can contain basic auth credentials.

refstringRequired

Git ref to push the commit to in the format "refs/heads/main"

commitMessagestringRequired

Message for the commit generated by the export

repoCacheIDstringOptional

Unique identifier to use to cache the Git repository across multiple operations.

repoTreeURLstringOptional

URL to use as a prefix for external file references.

repoCommitURLstringOptional

URL to use as a prefix for the commit URL.

repoProjectDirectorystringOptional

Path to a root directory for the project in the repository.

timestampstring · date-timeOptional

The timestamp of the event that triggered this export. It ensures that Git sync import and export operations are executed in the same order on GitBook and on the remote repository.

forcebooleanOptional
Responses
post
/spaces/{spaceId}/git/export

No content

Get metadata about the Git Sync provider currently set up on the space

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Responses
chevron-right
200

The Git Sync info for the space

application/json
get
/spaces/{spaceId}/git/info

Invite to a space

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
or
Responses
post
/spaces/{spaceId}/permissions

No content

Remove a team from a space

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

teamIdstringRequired

The unique ID of the Team

Responses
delete
/spaces/{spaceId}/permissions/teams/{teamId}

No content

Remove a user from a space

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

userIdstringRequired

The unique ID of the User

Responses
delete
/spaces/{spaceId}/permissions/users/{userId}

No content

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

fileIdstringRequired

The unique id of the file

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/content/files/{fileId}/backlinks
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

pageIdstringRequired

The unique id of the page

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

statusstring · enumOptional

Text to display to represent the reference. Possible values include:

  • ok - No problems detected for this content reference.
  • broken - The target does not exist in the revision.
  • in-app - The target is a URL link pointing to an internal location in the app.
Possible values:
Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/content/page/{pageId}/links
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

pageIdstringRequired

The unique id of the page

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/content/page/{pageId}/backlinks

List change requests for a space.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

statusstring · enumOptional

If defined, only change requests matching this status will be returned.

Default: openPossible values:
contributorstringOptional

If defined, only change requests with contributions from this user will be returned.

Responses
chevron-right
200

List of the space's change requests

application/json
get
/spaces/{spaceId}/change-requests

Create a new change request for a space.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
subjectstringOptional

Subject of the change-request

Responses
post
/spaces/{spaceId}/change-requests

Get the change request with the given id.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Responses
chevron-right
200

The matching change request

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}

Update the details of a change request

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Body
subjectstring · max: 100Optional

Subject of the change request

statusstring · enumOptionalPossible values:
Responses
chevron-right
200

The change request has been updated

application/json
patch
/spaces/{spaceId}/change-requests/{changeRequestId}

Merge a change request in the primary content of a space.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Responses
chevron-right
200

OK

application/json
post
/spaces/{spaceId}/change-requests/{changeRequestId}/merge

Update a change-request with changes from primary content.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Responses
chevron-right
200

OK

application/json
post
/spaces/{spaceId}/change-requests/{changeRequestId}/update

Get all reviews for a change request.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Query parameters
formatstring · enumOptional

Output format for the content.

Possible values:
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
chevron-right
200

All reviews for the given change request.

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}/reviews

Submit a review for a change request.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Body
statusstring · enumRequired

The status of the submitted review.

Possible values:
commentone ofOptional

Optionally, provide a comment along with the review.

or
or
object · EmptyOptional
Responses
post
/spaces/{spaceId}/change-requests/{changeRequestId}/reviews

Get all requested reviewers for a change request.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
chevron-right
200

A list of requested reviewers

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers

Request reviewers on a change request. Note that requesting a review from teams is not yet supported.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Body
usersstring[]Required

An array of user ids that will be requested.

subjectstringOptional

Optionally, update the subject of the change request when requesting reviewers.

Responses
chevron-right
200

The requests have successfully been sent.

application/json
post
/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

statusstring · enumOptional

Text to display to represent the reference. Possible values include:

  • ok - No problems detected for this content reference.
  • broken - The target does not exist in the revision.
  • in-app - The target is a URL link pointing to an internal location in the app.
Possible values:
brokenContextstring · enumOptionalPossible values:
Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}/links

List all the comments in a change request.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

orderstring · enumOptional

An order for the items in the list

Default: descPossible values:
formatstring · enumOptional

Output format for the content.

Possible values:
statusstring · enumOptional

When provided, only comments with the given status are returned. Defaults to "all".

Default: allPossible values:
targetPagestringOptional

The target page of the comment

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}/comments

Post a new comment in a change request.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Body
nodestringOptional

The node to which the comment is posted, if any.

pagestringOptional

The page to which the comment is posted, if any.

bodyone ofRequired

The content of the comment.

or
or
object · EmptyOptional
Responses
chevron-right
200

The comment was posted.

application/json
post
/spaces/{spaceId}/change-requests/{changeRequestId}/comments

Get a comment in a change request.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

commentIdstringRequired

The unique id of the comment

Query parameters
formatstring · enumOptional

Output format for the content.

Possible values:
Responses
chevron-right
200

The returned comment.

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}

Update a comment in a change request.

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

commentIdstringRequired

The unique id of the comment

Body
resolvedbooleanOptional

Whether the comment is resolved or not.

bodyone ofOptional

Content of the comment.

or
or
object · EmptyOptional
addedReactionsstring[]Optional

Reactions to add to the comment.

removedReactionsstring[]Optional

Reactions to remove from the comment.

Responses
chevron-right
200

The comment was updated.

application/json
put
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}

Delete a comment in a change request.

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

commentIdstringRequired

The unique id of the comment

Responses
delete
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}

No content

List all the replies to a comment in a change request.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

commentIdstringRequired

The unique id of the comment

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

formatstring · enumOptional

Output format for the content.

Possible values:
Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies

Post a new reply to a comment in a change request.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

commentIdstringRequired

The unique id of the comment

Query parameters
formatstring · enumOptional

Output format for the content.

Possible values:
Body
bodyone ofRequired

The content of the comment.

or
or
object · EmptyOptional
Responses
chevron-right
200

The reply was posted.

application/json
post
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies

Get a comment reply in a change request.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

commentIdstringRequired

The unique id of the comment

commentReplyIdstringRequired

The unique id of the comment reply

Query parameters
formatstring · enumOptional

Output format for the content.

Possible values:
Responses
chevron-right
200

The returned comment reply.

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}

Update a comment reply in a change request.

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

commentIdstringRequired

The unique id of the comment

commentReplyIdstringRequired

The unique id of the comment reply

Body
resolvedbooleanOptional

Whether the comment is resolved or not.

bodyone ofOptional

Content of the comment.

or
or
object · EmptyOptional
addedReactionsstring[]Optional

Reactions to add to the comment.

removedReactionsstring[]Optional

Reactions to remove from the comment.

Responses
chevron-right
200

The reply was updated.

application/json
put
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}

Delete a comment reply in a change request.

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

commentIdstringRequired

The unique id of the comment

commentReplyIdstringRequired

The unique id of the comment reply

Responses
delete
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}

No content

Get all contributors for the change request with the given id.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Responses
chevron-right
200

Contributors on the change request

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}/contributors
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

fileIdstringRequired

The unique id of the file

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

pageIdstringRequired

The unique id of the page

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

pageIdstringRequired

The unique id of the page

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/backlinks

Generate a URL to export the content of a change request as a PDF.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Query parameters
onlybooleanOptional

Generate a PDF only for the provided page.

pagestringOptional

ID of a specific page to generate a PDF for.

Responses
chevron-right
200

URL of the PDF

application/json
get
/spaces/{spaceId}/change-requests/{changeRequestId}/pdf

Brainstorm with AI on a change request and stream the results as a Server-Sent Events.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Body
Responses
chevron-right
200

Updated session.

text/event-stream
post
/spaces/{spaceId}/change-requests/{changeRequestId}/task/brainstorm

Implement a task on a change request and stream the results as a Server-Sent Events.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

changeRequestIdstringRequired

The unique ID of the change request or its number identifier in the space

Body
Responses
chevron-right
200

Task being implemented.

text/event-stream
post
/spaces/{spaceId}/change-requests/{changeRequestId}/task/implement

List all the comments in a space.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

orderstring · enumOptional

An order for the items in the list

Default: descPossible values:
statusstring · enumOptional

When provided, only comments with the given status are returned. Defaults to "all".

Default: allPossible values:
formatstring · enumOptional

Output format for the content.

Possible values:
targetPagestringOptional

The target page of the comment

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/comments

Post a new comment in a space.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
nodestringOptional

The node to which the comment is posted, if any.

pagestringOptional

The page to which the comment is posted, if any.

bodyone ofRequired

The content of the comment.

or
or
object · EmptyOptional
Responses
chevron-right
200

The comment was posted.

application/json
post
/spaces/{spaceId}/comments

Get a comment in a space.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

commentIdstringRequired

The unique id of the comment

Query parameters
formatstring · enumOptional

Output format for the content.

Possible values:
Responses
chevron-right
200

The returned comment.

application/json
get
/spaces/{spaceId}/comments/{commentId}

Update a comment in a space.

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

commentIdstringRequired

The unique id of the comment

Body
resolvedbooleanOptional

Whether the comment is resolved or not.

bodyone ofOptional

Content of the comment.

or
or
object · EmptyOptional
addedReactionsstring[]Optional

Reactions to add to the comment.

removedReactionsstring[]Optional

Reactions to remove from the comment.

Responses
chevron-right
200

The comment was updated.

application/json
put
/spaces/{spaceId}/comments/{commentId}

Delete a comment in a space.

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

commentIdstringRequired

The unique id of the comment

Responses
delete
/spaces/{spaceId}/comments/{commentId}

No content

List all the replies to a comment in a space.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

commentIdstringRequired

The unique id of the comment

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

formatstring · enumOptional

Output format for the content.

Possible values:
Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/comments/{commentId}/replies

Post a new reply to a comment in a space.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

commentIdstringRequired

The unique id of the comment

Body
bodyone ofRequired

The content of the comment.

or
or
object · EmptyOptional
Responses
chevron-right
200

The reply was posted.

application/json
post
/spaces/{spaceId}/comments/{commentId}/replies

Get a comment reply in a space.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

commentIdstringRequired

The unique id of the comment

commentReplyIdstringRequired

The unique id of the comment reply

Query parameters
formatstring · enumOptional

Output format for the content.

Possible values:
Responses
chevron-right
200

The returned comment reply.

application/json
get
/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}

Update a comment reply in a space.

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

commentIdstringRequired

The unique id of the comment

commentReplyIdstringRequired

The unique id of the comment reply

Body
bodyone ofOptional

Content of the comment.

or
or
object · EmptyOptional
addedReactionsstring[]Optional

Reactions to add to the comment.

removedReactionsstring[]Optional

Reactions to remove from the comment.

Responses
chevron-right
200

The reply was updated.

application/json
put
/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}

Delete a comment reply in a space.

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

commentIdstringRequired

The unique id of the comment

commentReplyIdstringRequired

The unique id of the comment reply

Responses
delete
/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}

No content

Deprecated

Get the publishing customization configuration for a space.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/publishing/customization
Deprecated

Update the publishing customization configuration for a space.

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
inheritbooleanRequired

Inherit customization settings from the parent collection.

titlestringOptional

Title to use for the published content. If not defined, it'll fallback to the content title.

faviconone ofRequired
or
or
objectOptional
Responses
chevron-right
200

OK

application/json
put
/spaces/{spaceId}/publishing/customization

List the scripts to embed in published content for a space.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/integration-scripts

Get the values of the custom fields set on a space

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/custom-fields

Update the custom fields in a space

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Body
Responses
patch
/spaces/{spaceId}/custom-fields

No content

Get a page feedback by a visitor.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

pageIdstringRequired

The unique id of the page

visitorIdstringRequired

The id of the visitor

Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/pages/{pageId}/feedbacks/{visitorId}

Create a page feedback by a visitor.

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

pageIdstringRequired

The unique id of the page

visitorIdstringRequired

The id of the visitor

Body
ratingstring · enumRequiredPossible values:
Responses
chevron-right
200

Feedback updated

application/json
put
/spaces/{spaceId}/pages/{pageId}/feedbacks/{visitorId}

Generate a URL to export the content of the space as a PDF.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
onlybooleanOptional

Generate a PDF only for the provided page.

pagestringOptional

ID of a specific page to generate a PDF for.

Responses
chevron-right
200

URL of the PDF

application/json
get
/spaces/{spaceId}/pdf
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequired

The unique id of the space

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

statusstring · enumOptional

Text to display to represent the reference. Possible values include:

  • ok - No problems detected for this content reference.
  • broken - The target does not exist in the revision.
  • in-app - The target is a URL link pointing to an internal location in the app.
Possible values:
Responses
chevron-right
200

OK

application/json
get
/spaces/{spaceId}/links

Create an organization space

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

Body
titlestring · max: 50Optional
emojistring · emoji · max: 50Optional

Unicode codepoint or character of the emoji

Example: 🎉
privatebooleanOptionalDeprecated

Private spaces are no longer supported by GitBook.

parentstringOptional

ID of a parent collection

Responses
post
/orgs/{organizationId}/spaces

List integrations owned by an organization

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

searchstringOptional

A search string to filter integrations by name

Responses
chevron-right
200

List of integrations.

application/json
get
/orgs/{organizationId}/integrations

List installations of integrations in an organization.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

searchstringOptional

A search string to filter integrations by name

Responses
chevron-right
200

List of integrations with the associated installations.

application/json
get
/orgs/{organizationId}/installations

Last updated

Was this helpful?