Comment on page
Search
Search in GitBook is the entity for searches made across organizations, spaces, and pages.
get
https://api.gitbook.com/v1
/search
Search content across spaces that is accessible by the currently authenticated target
Parameters
Query
query*
string
page
string
Identifier of the page results to fetch.
limit
number
The number of results per page
Responses
200: OK
OK
default
Unexpected Error
get
https://api.gitbook.com/v1
/orgs/{organizationId}/search
Search content in an organization
Parameters
Path
organizationId*
string
The unique id of the organization
Query
query*
string
page
string
Identifier of the page results to fetch.
limit
number
The number of results per page
Responses
200: OK
OK
default
Unexpected Error
get
https://api.gitbook.com/v1
/spaces/{spaceId}/search
Search content in a space
.png?alt=media&token=fd82df71-a966-4d53-a3ec-bad52b16124d)
GitBook Lens API
post
https://api.gitbook.com/v1
/orgs/{organizationId}/ask
Ask a question.
Parameters
Path
organizationId*
string
The unique id of the organization
Body
Example
Schema
{
"query": "string"
}
Responses
200: OK
OK
default
Unexpected Error
post
https://api.gitbook.com/v1
/spaces/{spaceId}/search/ask
Ask a question to an AI within the context of the space.
Parameters
Path
spaceId*
string
The unique id of the space
Body
Example
Schema
{
"query": "string"
}
Responses
200: OK
OK
default
Unexpected Error
post
https://api.gitbook.com/v1
/search/questions
Get a list of questions recommended by AI for a list of content.
Parameters
No parameters
Body
Example
Schema
{
"documents": [
"string"
]
}
Responses
200: OK
OK
default
Unexpected Error
Last modified 5d ago