API Reference [Sample]

Get information about the state of the GitBook API

get

Access the release version and build date of the GitBook codebase

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/json
get
/
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
querystring Β· max: 512Required
pagestringOptional

Identifier of the page results to fetch.

limitnumber Β· max: 1000Optional

The number of results per page

Responses
200

OK

application/json
get
/search
Deprecated

Ask a question to an AI across spaces that is accessible by the currently authenticated target.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
querystringRequired
formatstring Β· enumOptional

Output format for the content.

Possible values:
detailsbooleanOptional

Return query details in the result

Responses
200

OK

application/json
get
/search/ask

Ask a question to an AI across spaces that is accessible by the currently authenticated target.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
formatstring Β· enumOptional

Output format for the content.

Possible values:
detailsbooleanOptional

Return query details in the result

Body
querystringRequired
previousQueriesstring[] Β· max: 10OptionalDeprecated
Responses
200

OK

application/json
post
/search/ask

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
200

The space has been updated

application/json
patch
/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

Was this helpful?