Site AI ask
Allow AI-driven queries within a specific docs site.
Give your users a way to ask content-aware AI queries that are scoped entirely to the site’s published documents.
Ask a question in a site
post
The response is streamed.
organizationIdstringRequiredThe unique id of the organization
siteIdstringRequiredThe unique id of the site
formatstring · enumOptionalOutput format for the content.
Possible values: questionstring · max: 512Required
scopeone ofRequired
or orPOST /v1/orgs/{organizationId}/sites/{siteId}/ask HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 109
{
"question": "text",
"context": {
"siteSpaceId": "text"
},
"scope": {
"mode": "default",
"includedSiteSpaces": [
"text"
]
}
}
List recommended questions to ask in a site
get
The response is streamed.
organizationIdstringRequiredThe unique id of the organization
siteIdstringRequiredThe unique id of the site
GET /v1/orgs/{organizationId}/sites/{siteId}/ask/questions HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*