How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitBook Site Questions API

Inspect the canonical questions asked on your site, the generated answers linked to each question, and the sources used for each answer.{% openapi-schemas spec="gitbook" schemas="SiteQuestion,SiteQuestionAnswer,SiteQuestionAnswerWithResponse,SiteQuestionAnswerSource" grouped="false" %} The Site Questions objects{% endopenapi-schemas %}

GitBook Site Questions API is one of 65 APIs that GitBook publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 7 JSON Schema definitions.

Tagged areas include site-questions. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, a JSON-LD context, and 7 JSON Schemas.

This API exposes 8 operations across 8 paths, and defines 186 schemas. It is described by OpenAPI 3.2.0, at version 0.0.1-beta.

Requests are made against a single base URL, {host}/v1.

8 operations 8 paths 186 schemas 8 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
0.0.1-beta
Server
{host}/v1
Authentication
HTTP Bearer, HTTP Bearer, HTTP Bearer, HTTP Bearer, HTTP Bearer, OAuth 2.0
Terms of Service
Resource Areas
1

Authentication & Security 6

GitBook Site Questions API declares 6 security schemes for authenticating requests. It accepts HTTP bearer tokens (user). It accepts HTTP bearer tokens (user-internal). It accepts HTTP bearer tokens (user-staff). It accepts HTTP bearer tokens (integration). It accepts HTTP bearer tokens (integration-installation). It supports OAuth 2.0 (oauth) using the authorizationCode flow, exposing 29 scopes. By default, every request must be authenticated.

Paths & Operations 8

Across 8 paths, the API surfaces 8 operations — 8 GET. Each is listed below with its method, path, parameters, and response codes.

site-questions 8

Inspect the canonical questions asked on your site, the generated answers linked to each question, and the sources used for each answer. {% openapi-schemas spec="gitbook" schemas=…

GET
/orgs/{organizationId}/sites/{siteId}/questions
List the questions visitors asked a site's Ask AI assistant
listSiteQuestions 13 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}
Get a single Ask AI question by ID
getSiteQuestionById 8 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources
List the documentation sources used to answer a question
listSiteQuestionSources 10 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/question-stats
Get aggregate Ask AI question statistics for a site
getSiteQuestionStats 8 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/answers
List the answers a site's Ask AI assistant generated
listSiteQuestionAnswers 15 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}
Get a single Ask AI answer by ID
getSiteQuestionAnswerById 3 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/thread
Get the conversation thread for an Ask AI answer
getSiteQuestionAnswerThreadById 3 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources
List the documentation sources cited for an answer
listSiteQuestionAnswerSources 5 params → 200

Schemas 186

The contract defines 186 schemas that model the data the API accepts and returns. The most detailed are SiteQuestionAnswer (17 properties), SiteQuestionStats (9 properties), AIToolCallSearchResultPage (8 properties), AIMessageStep (8 properties). Each schema is shown below with its type and property counts.

AIToolCallCheckContentImport
object
5 properties 5 required
AIToolCallSearchResultPage
object
Result of a search matching a page.
8 properties 5 required
AIToolCallStartContentImport
object
6 properties 4 required
DocumentBlockDivider
object
5 properties 4 required
SiteConfigurableChannelType
string
SiteQuestionAnswerRelevance
string
Relevance classification of the user question.
DocumentBlockIf
object
6 properties 4 required
ContentRefPage
object
3 properties 2 required
DocumentBlockDrawing
object
6 properties 4 required
SiteQuestionStatsFeedback
object
Aggregated feedback for answers linked to a site question.
3 properties 3 required
CardsImageObjectFit
string
Object fit for image display in card views
DocumentBlocksEssentials
DocumentTableDefinitionCheckbox
DocumentFragment
object
5 properties 2 required
DocumentInlineExpression
object
5 properties 4 required
SiteQuestionType
string
Type classification of the user question.
DocumentTableDefinitionUsers
DocumentBlockStepper
object
6 properties 3 required
ContentRef
A relative reference to content in GitBook.
DocumentText
object
3 properties 2 required
AIToolCallArchiveChangeRequest
object
4 properties 4 required
DocumentMarkBold
object
2 properties 2 required
DocumentBlockHint
object
6 properties 4 required
ContentRefURL
object
2 properties 2 required
DocumentInlineIcon
object
5 properties 4 required
Timerange
object
2 properties 2 required
DocumentTableDefinitionSelect
AIMessageStepPhase
string
The phase of a step in a message from the AI agent.
SiteChannelType
AIToolCallRenamePage
object
6 properties 5 required
AIToolCallSetChangeRequestDetails
object
3 properties 3 required
DocumentBlockFile
object
6 properties 4 required
AIToolCallGetReusableContents
object
3 properties 3 required
DocumentBlockIntegration
object
6 properties 4 required
URL
string
SiteQuestionStatsTypes
object
5 properties 5 required
DocumentBlock
DocumentInlineAnnotation
object
7 properties 5 required
AIToolCallSearchResultRecord
object
Result of a search matching a site context record.
6 properties 4 required
DocumentBlocksTopLevels
DocumentBlockEmbed
object
6 properties 4 required
AIToolCallGetPageDiff
object
3 properties 3 required
DocumentBlockReusableContent
object
6 properties 4 required
AIAttachmentFile
object
4 properties 4 required
DocumentTableDefinitionFiles
DocumentMarkSubscript
object
2 properties 2 required
AIToolCallSearchResult
Result of a search
ContentRefTag
object
3 properties 2 required
AIToolCallDeletePage
object
5 properties 4 required
OpenAPIWebhookPointer
object
Pointer to a webhook in the OpenAPI spec.
2 properties 2 required
DocumentBlockOpenAPI
object
6 properties 4 required
SiteQuestionStatsChannels
object
Count of answers by site channel ID.
ContentRefCollection
object
2 properties 2 required
AIToolCallGetVariables
object
3 properties 3 required
DocumentTableDefinitionContentRef
DocumentBlockQuote
object
6 properties 3 required
SiteInsightsSession
object
Identifiers for a GitBook site session, used for analytics and adaptive content.
2 properties 2 required
ContextConnector
AIToolCallOther
object
Any tool call that is unknown by GitBook
2 properties 2 required
SiteQuestionAnswerSource
AIToolCallCreateChangeRequest
object
4 properties 4 required
SiteCoreChannelType
string
AIToolCallUpdateVariables
object
4 properties 3 required
DocumentBlockTable
object
6 properties 5 required
AIToolCallGetReusableContent
object
4 properties 4 required
AIToolCallCreateReusableContent
object
4 properties 4 required
AIMessageTask
DocumentAction
object
Action to perform when an inline button is clicked.
DocumentBlockTabs
object
6 properties 3 required
DocumentBlockParagraph
object
6 properties 3 required
DocumentInlineEmoji
object
5 properties 4 required
AIAttachmentImportFile
object
A file attached for the sole purpose of being imported. Its content is never given to the model — the type is one the importer accepts but the model cannot rea…
4 properties 4 required
DocumentMarkKeyboard
object
2 properties 2 required
RevisionPageType
string
DocumentTableSelectOption
object
3 properties 3 required
AIToolCallOtherSummary
object
Summary of a generic tool call.
2 properties 2 required
DocumentTableCellSpan
integer
Number of rows or columns covered by a table cell merge
AIToolCallSubmitChangeRequestReview
object
6 properties 6 required
AIToolCallEditReusableContent
object
4 properties 4 required
DocumentTableCellMerge
object
Positional table cell merge range. The anchor and spans are resolved against the current sorted record order and visible column order. The current document mod…
3 properties 3 required
SiteQuestionStats
object
Aggregated stats for questions and linked answers.
9 properties 9 required
AIToolCallGetPageContent
object
4 properties 4 required
DocumentBlockListUnordered
object
6 properties 3 required
DocumentBlockHeading
object
7 properties 4 required
OpenAPIOperationPointer
object
Pointer to an operation in the OpenAPI spec.
2 properties 2 required
DocumentInlineMath
object
5 properties 4 required
SiteQuestionStatsAnswered
object
Aggregated answered assessment for answers linked to a site question.
3 properties 3 required
DocumentBlockOpenAPISchemas
object
6 properties 4 required
PlainObject
DocumentTableDefinitionRating
DocumentTextLeaf
object
3 properties 3 required
DocumentMarkStrikethrough
object
2 properties 2 required
DocumentBlockPrompt
object
6 properties 4 required
DocumentBlockExpandable
object
7 properties 5 required
Icon
string
Name of the icon
DocumentTableDefinition
ContentRefUser
object
2 properties 2 required
AIToolCallImportOpenAPISpec
object
6 properties 4 required
DocumentBlockOpenAPIWebhook
object
6 properties 4 required
DocumentInlineMention
object
5 properties 4 required
AIToolCallGetPages
object
3 properties 3 required
DocumentMarkSuperscript
object
2 properties 2 required
DocumentBlockUpdates
object
6 properties 4 required
ContentKitDefaultAction
DocumentBlockCode
object
6 properties 4 required
DocumentInlineImage
object
5 properties 4 required
DocumentTableDefinitionNumber
ContentRefAnchor
object
4 properties 2 required
Timestamp
string
ChangeRequestReviewStatus
string
Status of a change request review.
SiteQuestionStatsRelevance
object
4 properties 4 required
SiteQuestionAnswer
object
17 properties 13 required
DocumentTableDefinitionText
SiteQuestionAnswerWithResponse
AIToolCallGetChangeRequestDetails
object
3 properties 3 required
DocumentBlockCodeLine
object
6 properties 4 required
AIToolCallGetTags
object
3 properties 3 required
AIToolCallEditPage
object
5 properties 4 required
ContentKitAction
AIToolCallMovePage
object
7 properties 5 required
SiteQuestionAnswerSourceRecord
JSONDocument
object
4 properties 3 required
DocumentBlockUpdate
object
6 properties 4 required
DocumentBlockImages
object
6 properties 5 required
TextAlignment
string
AIMessageStep
object
A step in a message from the AI agent.
8 properties
ContentRefFile
object
3 properties 2 required
DocumentBlockListTasks
object
6 properties 3 required
List
object
2 properties
OpenAPISchemasPointer
object
Pointer to schemas in the OpenAPI spec.
3 properties 1 required
SiteQuestion
object
8 properties 8 required
DocumentBlockColumns
object
6 properties 5 required
DocumentMarkCode
object
2 properties 2 required
VerticalAlignment
string
DocumentTableImageRecord
A table record value for image columns, supporting both direct ContentRefs and the additional format with record-level settings.
AIToolCallStartBackgroundAgent
object
Tool call recording that the agent started a background agent: a child conversation running one bounded task on its own, in parallel with the conversation that…
6 properties 5 required
AIAttachmentImage
object
3 properties 2 required
AIToolCallGetComments
object
4 properties 2 required
DocumentBlockStepperStep
object
6 properties 4 required
DocumentBlockImage
object
6 properties 5 required
AIToolCall
AIMessageStepStartCondition
string
Describe the state in which the steps started.
SiteQuestionStatsChannelTypes
object
Count of answers by site channel type, including core channels.
DocumentTableViewCards
object
8 properties 3 required
AIToolCallSearch
object
Tool to search for content
3 properties 3 required
ChangedRevisionReusableContent
object
3 properties 2 required
ContentRefOpenAPI
object
2 properties 2 required
SiteQuestionAnswerSourceBase
object
5 properties 5 required
ChangedRevisionPage
object
4 properties 3 required
ContentRefSpace
object
2 properties 2 required
ContentRefReusableContent
object
3 properties 2 required
DocumentTableDefinitionBase
object
2 properties 2 required
AIToolCallComment
object
4 properties 3 required
AIToolCallGetRecordContent
object
Tool to read the body of an external record.
5 properties 4 required
SiteQuestionAnswerHelpfulness
string
Helpfulness of the response for the end user need.
DocumentBlockTabsItem
object
7 properties 4 required
AIToolCallReplyToComment
object
5 properties 4 required
DocumentBlockColumn
object
6 properties 4 required
DocumentTextMark
AIMessageRole
string
DocumentTableViewGrid
object
7 properties 3 required
SiteQuestionAnswerResolution
string
Whether the response answered the question.
DocumentMarkColor
object
3 properties 3 required
AIToolCallCreatePage
object
5 properties 4 required
SiteQuestionAnswerSourcePage
AIAttachment
DocumentTableRecord
object
2 properties 2 required
DocumentBlockOpenAPIOperation
object
6 properties 4 required
EntityId
string
A unique entity identifier
AIToolCallListModifiedPages
object
2 properties 2 required
DocumentInline
DocumentBlockMath
object
5 properties 4 required
DocumentMarkItalic
object
2 properties 2 required
AIMessageResponseMetadata
object
The response that generated this message.
3 properties
DocumentBlockContentRef
object
5 properties 4 required
DocumentBlockListItem
object
6 properties 3 required
DocumentTableDefinitionImage
Length
AIToolCallUpdateTags
object
3 properties 3 required
DocumentTextColor
string
Allowed color tokens for color marks (text and background; background reuses this enum). Named colors are fixed palette keys. $ tokens are semantic: resolved f…
AIMessageContext
object
Context about the current user sending a message.
3 properties
DocumentBlockListOrdered
object
6 properties 4 required
AIToolCallMCP
object
Tool called from an MCP server
4 properties 3 required
DocumentInlineLink
object
6 properties 4 required
AIMessage
object
6 properties 3 required
DocumentInlineButton
object
5 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitbook-site-questions-api-openapi.yml Raw ↑

Other APIs GitBook publishes across the network.

GitBook Change Request Content API
GitBook Change Request Reviewers API
GitBook Change Requests API
GitBook Collections API
GitBook Custom Hostnames API
GitBook Imports API
GitBook Integrations API
GitBook Organization Members API
GitBook Organizations API
GitBook Site Spaces API
GitBook Space Content API
GitBook Spaces API
Where this information came from

This is an independent, third-party profile of GitBook Site Questions API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.