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 Context API

Manage the contextual records and topics used by your site to power AI experiences and insights.{% openapi-schemas spec="gitbook" schemas="ContextRecord,ContextConnection,SiteTopic,SiteFinding,SiteFindingPage" grouped="false" %} The Site Context objects{% endopenapi-schemas %}

GitBook Site Context 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-context. 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 26 operations across 19 paths, and defines 191 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.

26 operations 19 paths 191 schemas 2 DELETE15 GET3 PATCH5 POST1 PUT

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 Context 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 26

Across 19 paths, the API surfaces 26 operations — 2 DELETE, 15 GET, 3 PATCH, 5 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

site-context 26

Manage the contextual records and topics used by your site to power AI experiences and insights. {% openapi-schemas spec="gitbook" schemas="ContextRecord,ContextConnection,SiteTop…

GET
/orgs/{organizationId}/sites/{siteId}/context-records
List all context records
listSiteContextRecords 8 params → 200
PUT
/orgs/{organizationId}/sites/{siteId}/context-records
Create or update context records
upsertSiteContextRecords 2 params body → 204
GET
/orgs/{organizationId}/sites/{siteId}/context-records/{siteContextRecordId}
Get a context record
getSiteContextRecordById 3 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/scans
List all site scans
listSiteScans 6 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/scans/{siteScanId}
Get a site scan by ID
getSiteScanById 3 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/findings
List documentation issues GitBook has found on a site
listSiteFindings 16 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}
Get details of a single documentation issue
getSiteFindingById 3 params → 200
PATCH
/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}
Resolve, dismiss, or reopen a documentation issue
updateSiteFindingById 3 params body → 200
GET
/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/change-requests
List content fixes already proposed for a documentation issue
listChangeRequestsForSiteFinding 5 params → 200
POST
/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/change-requests
Fix a documentation issue by generating a change request
triggerChangeRequestsForSiteFinding 3 params → 202
GET
/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/pages
List the pages affected by a documentation issue
listPagesForSiteFinding 5 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/questions
List the Ask-AI questions evidencing a documentation issue
listQuestionsForSiteFinding 5 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/records
List the source content evidencing a documentation issue
listRecordsForSiteFinding 5 params → 200
POST
/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/actions
Apply an action to a broken link
applySiteFindingAction 3 params body → 200
GET
/orgs/{organizationId}/sites/{siteId}/stats/findings
Get a summary of documentation issues found on a site
getSiteFindingStats 8 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/context-connections
List all context connections
listSiteContextConnections 4 params → 200
POST
/orgs/{organizationId}/sites/{siteId}/context-connections
Create a context connection
createSiteContextConnection 2 params body → 201
GET
/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}
Get a context connection
getSiteContextConnectionById 3 params → 200
PATCH
/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}
Update a context connection
updateSiteContextConnectionById 3 params body → 200
DELETE
/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}
Delete a context connection
deleteSiteContextConnectionById 3 params → 204205
POST
/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/sync
Trigger a sync for a context connection
syncSiteContextConnection 3 params → 204400
POST
/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/test
Test a context connection's stored credentials
testSiteContextConnection 3 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/topics
List all topics
listSiteTopics 7 params → 200
GET
/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}
Get a topic
getSiteTopicById 3 params → 200
PATCH
/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}
Update a topic
updateSiteTopicById 3 params body → 200
DELETE
/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/findings
Delete all documentation issues found under a topic
deleteSiteTopicFindings 3 params → 204205

Schemas 191

The contract defines 191 schemas that model the data the API accepts and returns. The most detailed are ChangeRequest (26 properties), SiteFinding (23 properties), ContentImportRun (14 properties), SiteTopic (14 properties). Each schema is shown below with its type and property counts.

ChangeRequestChangeCounts
object
Exact semantic entity and page-document block counts for a change request at its current head and base revisions.
4 properties 2 required
ContextConnectorSetup
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
SiteScan
object
10 properties 7 required
DocumentTableDefinitionCheckbox
ContextConnectionStatus
string
DocumentFragment
object
5 properties 2 required
DocumentInlineExpression
object
5 properties 4 required
SiteFindingTitle
string
Short finding title
SiteQuestionType
string
Type classification of the user question.
DocumentTableDefinitionUsers
DocumentBlockStepper
object
6 properties 3 required
ContentRef
A relative reference to content in GitBook.
SiteTriageFilterQuestions
string
Findings source filter matching evidence coming from site questions.
DocumentText
object
3 properties 2 required
AISkipReason
string
Why an AI task was skipped before execution. - aiunavailablefororganization: The organization's effective plan does not include AI or a required feature. Takes…
SiteTopic
object
14 properties 13 required
ContextRecordDescription
string
Optional short description of the context record
DocumentMarkBold
object
2 properties 2 required
DocumentBlockHint
object
6 properties 4 required
ContentRefURL
object
2 properties 2 required
DocumentInlineIcon
object
5 properties 4 required
DocumentTableDefinitionSelect
SiteChannelType
DocumentBlockFile
object
6 properties 4 required
DocumentBlockIntegration
object
6 properties 4 required
URL
string
SiteQuestionStatsTypes
object
5 properties 5 required
DocumentBlock
SiteFindingOutboundLink
object
Details of an outbound-link-error finding: the failing external URL, or the domain when it doesn't resolve, and the observed failure, sourced from the site's o…
6 properties
apiToken
string
Atlassian API token used for outbound writes. Redacted when read back. Omit it when updating a connection to keep the stored token; required when the site URL…
DocumentInlineAnnotation
object
7 properties 5 required
SiteFindingServingRedirect
object
The live redirect serving a broken-link finding's path.
3 properties 3 required
projectKeys
array
Projects where GitBook handles issues. Empty means all accessible projects.
DocumentBlocksTopLevels
DocumentBlockEmbed
object
6 properties 4 required
DocumentBlockReusableContent
object
6 properties 4 required
SiteFindingStatsBrokenLinks
object
Breakdown of the broken-link findings included in the aggregation.
2 properties 2 required
DocumentTableDefinitionFiles
DocumentMarkSubscript
object
2 properties 2 required
ContentRefTag
object
3 properties 2 required
OpenAPIWebhookPointer
object
Pointer to a webhook in the OpenAPI spec.
2 properties 2 required
DocumentBlockOpenAPI
object
6 properties 4 required
SiteFindingAvailableAction
object
An action a finding allows now, with the site permission it needs.
2 properties 2 required
SiteQuestionStatsChannels
object
Count of answers by site channel ID.
SiteTopicUsageSettings
object
1 property 1 required
ContentRefCollection
object
2 properties 2 required
SiteFindingStatsSeverities
object
Count of findings by estimated end-user severity.
3 properties 3 required
DocumentTableDefinitionContentRef
ContextConnectionFailureReason
string
Why a synchronization failed, indicating who can resolve it. authentication and misconfigured need the connection to be reconfigured; ratelimited and upstreamu…
DocumentBlockQuote
object
6 properties 3 required
ContextConnectionTestResult
object
3 properties 2 required
ChangeRequestChangeCountsByType
object
Counts of entities grouped by how they changed relative to the change request base.
3 properties 3 required
SiteRedirectInputDestinationPath
object
3 properties 3 required
ContextConnector
ChangeRequestLinks
array
External links associated with the change request.
ContextSearchBoost
string
Relative score adjustment applied to records from a connection when searching.
JiraConnectorSetupSettings
object
5 properties 3 required
SiteCoreChannelType
string
DocumentBlockTable
object
6 properties 5 required
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
ContentImportSource
DocumentMarkKeyboard
object
2 properties 2 required
RevisionPageType
string
SiteRedirectSourcePath
string
The source path to redirect from.
DocumentTableSelectOption
object
3 properties 3 required
DocumentTableCellSpan
integer
Number of rows or columns covered by a table cell merge
ContextRecord
object
11 properties 8 required
ContentImportTarget
object
3 properties 1 required
ContextUsageSettings
object
4 properties 3 required
SiteFindingStatus
string
Status of a site finding. - candidate is a finding that has been raised but not yet confirmed. Typically these are not shown to users. - open is a finding that…
SiteQuestionStats
object
Aggregated stats for questions and linked answers.
9 properties 9 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
ChangeRequestLinkInput
object
External link associated with a change request.
3 properties 1 required
DocumentBlockListUnordered
object
6 properties 3 required
ContextConnection
DocumentBlockHeading
object
7 properties 4 required
OpenAPIOperationPointer
object
Pointer to an operation in the OpenAPI spec.
2 properties 2 required
SiteFindingType
string
Classification of a site finding: - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorr…
ContextRecordInput
object
Input to ingest a new context record
8 properties 4 required
SiteFindingOrderBy
string
The field to sort site findings by. updatedAt returns the most recently updated findings first. severity returns the most severe findings first. sources return…
DocumentInlineMath
object
5 properties 4 required
SiteQuestionStatsAnswered
object
Aggregated answered assessment for answers linked to a site question.
3 properties 3 required
SiteScanFindings
object
Number of findings created by the scan, grouped by severity.
3 properties 3 required
DocumentBlockOpenAPISchemas
object
6 properties 4 required
PlainObject
DocumentTableDefinitionRating
DocumentTextLeaf
object
3 properties 3 required
DocumentMarkStrikethrough
object
2 properties 2 required
ChangeRequestLinkExpanded
External ticket data resolved for this link by a configured connector.
DocumentBlockPrompt
object
6 properties 4 required
SiteFindingPage
object
3 properties 3 required
DocumentBlockExpandable
object
7 properties 5 required
Icon
string
Name of the icon
DocumentTableDefinition
ContentRefUser
object
2 properties 2 required
ContextConnectionLabel
string
Optional label for the connection
DocumentBlockOpenAPIWebhook
object
6 properties 4 required
SiteFindingStats
object
Aggregated stats for the findings identified on a site.
7 properties 7 required
DocumentInlineMention
object
5 properties 4 required
DocumentMarkSuperscript
object
2 properties 2 required
SiteFindingAutoResolution
string
What GitBook did on its own to resolve a finding. - drafted drafted a fix that waits for approval. - applied has its fix live, applied on its own or approved f…
DocumentBlockUpdates
object
6 properties 4 required
ContentKitDefaultAction
ContextRecordTitle
string
Title for the context record
DocumentBlockCode
object
6 properties 4 required
DocumentInlineImage
object
5 properties 4 required
DocumentTableDefinitionNumber
ContentRefAnchor
object
4 properties 2 required
Timestamp
string
SiteQuestionStatsRelevance
object
4 properties 4 required
DocumentTableDefinitionText
ContextRecordType
string
statusMapping
object
Jira status to move the linked issue to when the change request reaches a given status, e.g. { "merged": "Done" }. A status left out is not synced.
DocumentBlockCodeLine
object
6 properties 4 required
SiteFindingSeverity
string
Estimated end-user severity of a site finding.
ChangeRequestStatus
string
ContentKitAction
JSONDocument
object
4 properties 3 required
DocumentBlockUpdate
object
6 properties 4 required
SiteFindingStatsConnectors
object
Count of findings by the connector their evidence came from, keyed by connector (e.g. builtin:intercom). A finding is counted once per connector that contribut…
DocumentBlockImages
object
6 properties 5 required
TextAlignment
string
ContentRefFile
object
3 properties 2 required
SiteFindingState
string
Where a link finding stands, from its status and what GitBook did with it. - open needs a fix. - awaiting-approval has a redirect GitBook drafted at its path,…
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
SiteTriageFilterConnections
string
Findings source filter matching evidence coming from a given connection, encoded as connection: .
DocumentMarkCode
object
2 properties 2 required
SiteScanStatus
string
Status of a persisted site scan.
VerticalAlignment
string
DocumentTableImageRecord
A table record value for image columns, supporting both direct ContentRefs and the additional format with record-level settings.
DocumentBlockStepperStep
object
6 properties 4 required
DocumentBlockImage
object
6 properties 5 required
SiteQuestionStatsChannelTypes
object
Count of answers by site channel type, including core channels.
DocumentTableViewCards
object
8 properties 3 required
ChangeRequestSubject
string
Subject of the change request
SiteFindingStatsStatuses
object
Count of findings by status. Candidate findings are never counted.
3 properties 3 required
SiteFinding
object
23 properties 18 required
ContentRefOpenAPI
object
2 properties 2 required
ChangedRevisionPage
object
4 properties 3 required
ContentRefSpace
object
2 properties 2 required
SiteFindingAction
string
An action that moves a broken-link finding to another state. A finding's actions lists the ones it allows. - approve makes the redirect GitBook drafted live, w…
ContentRefReusableContent
object
3 properties 2 required
DocumentTableDefinitionBase
object
2 properties 2 required
ChangeRequestLinkTitle
string
Optional title to display for the link.
YoutubeChannelId
string
A YouTube channel ID starting with "UC".
DocumentBlockTabsItem
object
7 properties 4 required
DocumentBlockColumn
object
6 properties 4 required
ContentImportRun
object
14 properties 2 required
DocumentTextMark
DocumentTableViewGrid
object
7 properties 3 required
SiteQuestionAnswerResolution
string
Whether the response answered the question.
SiteFindingBrokenLinkAction
object
Suggested fix for a broken-link finding, shaped as the input for createSiteRedirect so it can be applied directly. Absent when the finding has no directly appl…
3 properties 1 required
DocumentMarkColor
object
3 properties 3 required
DocumentTableRecord
object
2 properties 2 required
DocumentBlockOpenAPIOperation
object
6 properties 4 required
EntityId
string
A unique entity identifier
apiEmail
string
Email of the Atlassian account whose API token is used.
DocumentInline
DocumentBlockMath
object
5 properties 4 required
ChangeRequest
object
26 properties 14 required
YoutubeChannelName
string
A YouTube channel handle starting with "@".
DocumentMarkItalic
object
2 properties 2 required
DocumentBlockContentRef
object
5 properties 4 required
DocumentBlockListItem
object
6 properties 3 required
DocumentTableDefinitionImage
Length
User
object
6 properties 4 required
YoutubeChannelPattern
A YouTube channel identifier, either a channel ID or a channel handle.
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…
ChangeRequestLink
DocumentBlockListOrdered
object
6 properties 4 required
baseUrl
string
Base URL of the Jira Cloud site, e.g. https://your-team.atlassian.net.
ContextConnectionFilter
string
Optional filter used to restrict which items are ingested from the source. Its meaning depends on the connector: it can be a tag, label, or an expression. When…
DocumentInlineLink
object
6 properties 4 required
DocumentInlineButton
object
5 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitbook-site-context-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 Context 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.