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.
The identity and technical contract details declared by the specification.
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
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
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
DocumentBlockFile
object
6 properties
4 required
DocumentBlockIntegration
object
6 properties
4 required
SiteQuestionStatsTypes
object
5 properties
5 required
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.
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
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
DocumentMarkKeyboard
object
2 properties
2 required
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
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
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
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
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
SiteQuestionStatsRelevance
object
4 properties
4 required
DocumentTableDefinitionText
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
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
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
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.
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
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.
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
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…
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
The full machine-readable OpenAPI contract behind this narrative.
Other APIs GitBook publishes across the network.