@gitbook/api 0.202.0 → 0.204.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/spec/openapi.yaml CHANGED
@@ -58,6 +58,17 @@ tags:
58
58
  {% openapi-schemas spec="gitbook" schemas="Site" grouped="false" %}
59
59
  The Site object
60
60
  {% endopenapi-schemas %}
61
+ - name: site-change-requests
62
+ x-page-icon: code-pull-request
63
+ x-page-title: Site change requests
64
+ x-page-description: Review and collaborate on proposed changes to a site before merging.
65
+ x-parent: sites
66
+ description: |
67
+ A site change request groups changes to a site's structure and to the content of any number of its spaces into one review, with a single lifecycle and a single merge decision.
68
+
69
+ {% openapi-schemas spec="gitbook" schemas="SiteChangeRequest" grouped="false" %}
70
+ The SiteChangeRequest object
71
+ {% endopenapi-schemas %}
61
72
  - name: site-share-links
62
73
  x-page-title: Site share links
63
74
  x-page-description: Control how you share docs externally by managing share links for a site.
@@ -1526,7 +1537,7 @@ paths:
1526
1537
  post:
1527
1538
  operationId: createChangeRequest
1528
1539
  summary: Create a new change request in a space
1529
- description: Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready.
1540
+ description: Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready. When the change request fixes a documentation issue found by GitBook, pass its `siteFindingId` so that merging the change request resolves the finding.
1530
1541
  x-gitbook-mcp: true
1531
1542
  tags:
1532
1543
  - change-requests
@@ -1561,6 +1572,12 @@ paths:
1561
1572
  template:
1562
1573
  $ref: "#/components/schemas/ApplySpaceTemplate"
1563
1574
  description: Template to apply to the change request
1575
+ description:
1576
+ $ref: "#/components/schemas/JSONDocument"
1577
+ description: Description of the change request, explaining what it changes and why, for whoever reviews it. Only paragraphs and lists are kept; other blocks are stripped along with their text.
1578
+ siteFindingId:
1579
+ type: string
1580
+ description: The site finding this change request fixes. Merging the change request resolves the finding, once every change request linked to it has been merged. The finding's site must contain this space.
1564
1581
  additionalProperties: true
1565
1582
  get:
1566
1583
  operationId: listChangeRequestsForSpace
@@ -1657,7 +1674,7 @@ paths:
1657
1674
  patch:
1658
1675
  operationId: updateChangeRequestById
1659
1676
  summary: Update a change request's subject, description, or status
1660
- description: Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead.
1677
+ description: Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead. Set `siteFindingId` to record that the change request fixes a documentation issue found by GitBook, so that merging it resolves the finding.
1661
1678
  x-gitbook-mcp: true
1662
1679
  x-gitbook-return-preference: true
1663
1680
  tags:
@@ -1693,6 +1710,11 @@ paths:
1693
1710
  - draft
1694
1711
  - open
1695
1712
  - archived
1713
+ siteFindingId:
1714
+ type:
1715
+ - string
1716
+ - "null"
1717
+ description: The site finding this change request fixes. Merging the change request resolves the finding, once every change request linked to it has been merged. The finding's site must contain this space. Pass null to unlink a finding linked by mistake.
1696
1718
  responses:
1697
1719
  "200":
1698
1720
  description: The change request has been updated
@@ -1856,6 +1878,36 @@ paths:
1856
1878
  $ref: "#/components/schemas/Document"
1857
1879
  required:
1858
1880
  - status
1881
+ /spaces/{spaceId}/change-requests/{changeRequestId}/reviews/stats:
1882
+ get:
1883
+ operationId: getReviewStatsByChangeRequestId
1884
+ summary: Get review totals for a change request
1885
+ description: Returns how many reviews were approved and how many requested changes, for the same reviews the list endpoint returns under the same filters. Use this to summarise where a change request stands without paginating through every review.
1886
+ x-gitbook-mcp: true
1887
+ tags:
1888
+ - change-requests-reviews
1889
+ security:
1890
+ - user: []
1891
+ - oauth:
1892
+ - space:read
1893
+ parameters:
1894
+ - $ref: "#/components/parameters/spaceId"
1895
+ - $ref: "#/components/parameters/changeRequestId"
1896
+ - in: query
1897
+ name: outdated
1898
+ description: Filter reviews marked as outdated.
1899
+ schema:
1900
+ type: boolean
1901
+ responses:
1902
+ "200":
1903
+ description: Review totals for the given change request.
1904
+ content:
1905
+ application/json:
1906
+ schema:
1907
+ $ref: "#/components/schemas/ChangeRequestReviewStats"
1908
+ "404":
1909
+ description: The change request or space could not be found.
1910
+ $ref: "#/components/responses/NotFoundError"
1859
1911
  /spaces/{spaceId}/change-requests/{changeRequestId}/reviews/{reviewId}:
1860
1912
  get:
1861
1913
  operationId: getChangeRequestReviewById
@@ -4833,7 +4885,12 @@ paths:
4833
4885
  content:
4834
4886
  application/json:
4835
4887
  schema:
4836
- $ref: "#/components/schemas/Organization"
4888
+ allOf:
4889
+ - $ref: "#/components/schemas/Organization"
4890
+ - type: object
4891
+ properties:
4892
+ subscriptionNotice:
4893
+ $ref: "#/components/schemas/SubscriptionNotice"
4837
4894
  /orgs/{organizationId}:
4838
4895
  get:
4839
4896
  operationId: getOrganizationById
@@ -4893,10 +4950,16 @@ paths:
4893
4950
  type: boolean
4894
4951
  ai:
4895
4952
  type: boolean
4953
+ aiSettings:
4954
+ $ref: "#/components/schemas/OrganizationAISettingsUpdate"
4896
4955
  inviteLinks:
4897
4956
  type: boolean
4898
4957
  mergeRules:
4899
4958
  $ref: "#/components/schemas/MergeRulesStandaloneConfiguration"
4959
+ supportCost:
4960
+ oneOf:
4961
+ - $ref: "#/components/schemas/OrganizationSupportCost"
4962
+ - type: "null"
4900
4963
  responses:
4901
4964
  "200":
4902
4965
  description: The organization has been updated
@@ -5215,6 +5278,28 @@ paths:
5215
5278
  gitbookVisitorClaims:
5216
5279
  description: A JTW token containing the claims to attach to this user.
5217
5280
  type: string
5281
+ /orgs/{organizationId}/subscription:
5282
+ get:
5283
+ operationId: getOrganizationSubscription
5284
+ summary: Get an organization's subscription
5285
+ description: Returns whether the organization is on a trial, the free plan or a paid plan, when its trial ends, and where to upgrade. Use it to answer questions about the plan or the trial, or to find how to upgrade.
5286
+ tags:
5287
+ - organizations
5288
+ security:
5289
+ - user: []
5290
+ - oauth:
5291
+ - organization:read
5292
+ parameters:
5293
+ - $ref: "#/components/parameters/organizationId"
5294
+ responses:
5295
+ "200":
5296
+ description: OK
5297
+ content:
5298
+ application/json:
5299
+ schema:
5300
+ $ref: "#/components/schemas/OrganizationSubscription"
5301
+ "404":
5302
+ $ref: "#/components/responses/NotFoundError"
5218
5303
  /orgs/{organizationId}/members/{userId}/sso:
5219
5304
  post:
5220
5305
  operationId: setUserAsSSOMemberForOrganization
@@ -7577,7 +7662,7 @@ paths:
7577
7662
  get:
7578
7663
  operationId: listSites
7579
7664
  summary: List all documentation sites in an organization
7580
- description: Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure.
7665
+ description: Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure. Members with access only to individual spaces receive the sites that use those spaces as site items, with site administration fields omitted.
7581
7666
  x-gitbook-mcp: true
7582
7667
  tags:
7583
7668
  - sites
@@ -7682,7 +7767,7 @@ paths:
7682
7767
  get:
7683
7768
  operationId: getSiteById
7684
7769
  summary: Get a documentation site by its ID
7685
- description: Retrieves full details for a single documentation site. Use this to inspect a specific site's metadata before reading or modifying its settings, structure, or content.
7770
+ description: Retrieves full details for a single documentation site. Use this to inspect a specific site's metadata before reading or modifying its settings, structure, or content. Members with access only through a linked space can retrieve a limited site summary; site administration fields are omitted.
7686
7771
  x-gitbook-mcp: true
7687
7772
  tags:
7688
7773
  - sites
@@ -7857,8 +7942,8 @@ paths:
7857
7942
  type: object
7858
7943
  properties:
7859
7944
  jsonSchema:
7860
- description: The JSON schema to set on the site.
7861
- $ref: "#/components/schemas/SiteAdaptiveJSONSchema"
7945
+ description: The JSON schema to set on the site. `regions` is only accepted for organizations with regions enabled.
7946
+ $ref: "#/components/schemas/SiteAdaptiveJSONSchemaWithRegions"
7862
7947
  required:
7863
7948
  - jsonSchema
7864
7949
  responses:
@@ -7945,7 +8030,12 @@ paths:
7945
8030
  application/json:
7946
8031
  schema:
7947
8032
  oneOf:
7948
- - $ref: "#/components/schemas/Site"
8033
+ - allOf:
8034
+ - $ref: "#/components/schemas/Site"
8035
+ - type: object
8036
+ properties:
8037
+ subscriptionNotice:
8038
+ $ref: "#/components/schemas/SubscriptionNotice"
7949
8039
  - type: object
7950
8040
  description: User needs to checkout in order to publish the site.
7951
8041
  properties:
@@ -7956,6 +8046,8 @@ paths:
7956
8046
  sessionId:
7957
8047
  type: string
7958
8048
  description: Stripe payment session ID
8049
+ subscriptionNotice:
8050
+ $ref: "#/components/schemas/SubscriptionNotice"
7959
8051
  required:
7960
8052
  - type
7961
8053
  - sessionId
@@ -7981,6 +8073,220 @@ paths:
7981
8073
  application/json:
7982
8074
  schema:
7983
8075
  $ref: "#/components/schemas/Site"
8076
+ /orgs/{organizationId}/sites/{siteId}/change-requests:
8077
+ get:
8078
+ operationId: listChangeRequestsForSite
8079
+ summary: List all change requests for a site
8080
+ description: Returns a paginated list of change requests reviewing the site. A site change request groups changes to the site structure and to any number of its spaces into one review. Use this to discover existing change requests before creating a new one.
8081
+ x-internal: true
8082
+ tags:
8083
+ - site-change-requests
8084
+ security:
8085
+ - user: []
8086
+ - oauth:
8087
+ - site:read
8088
+ parameters:
8089
+ - $ref: "#/components/parameters/organizationId"
8090
+ - $ref: "#/components/parameters/siteId"
8091
+ - $ref: "#/components/parameters/listPage"
8092
+ - $ref: "#/components/parameters/listLimit"
8093
+ - name: status
8094
+ in: query
8095
+ required: false
8096
+ schema:
8097
+ $ref: "#/components/schemas/ChangeRequestStatus"
8098
+ default: open
8099
+ description: If defined, only change requests matching this status will be returned.
8100
+ - name: createdBy
8101
+ in: query
8102
+ required: false
8103
+ schema:
8104
+ type: string
8105
+ description: If defined, only change requests created by this user will be returned.
8106
+ - name: openedBy
8107
+ in: query
8108
+ required: false
8109
+ schema:
8110
+ type: string
8111
+ description: If defined, only change requests moved out of draft by this user will be returned.
8112
+ - name: archivedBy
8113
+ in: query
8114
+ required: false
8115
+ schema:
8116
+ type: string
8117
+ description: If defined, only change requests archived by this user will be returned.
8118
+ - name: mergedBy
8119
+ in: query
8120
+ required: false
8121
+ schema:
8122
+ type: string
8123
+ description: If defined, only change requests merged by this user will be returned.
8124
+ - name: contributor
8125
+ in: query
8126
+ required: false
8127
+ schema:
8128
+ type: string
8129
+ description: If defined, only change requests with contributions from this user will be returned.
8130
+ - name: memberStatus
8131
+ in: query
8132
+ required: false
8133
+ schema:
8134
+ $ref: "#/components/schemas/SiteChangeRequestMemberStatus"
8135
+ default: active
8136
+ description: Status of the members.
8137
+ - name: orderBy
8138
+ in: query
8139
+ required: false
8140
+ schema:
8141
+ $ref: "#/components/schemas/ChangeRequestOrderBy"
8142
+ responses:
8143
+ "200":
8144
+ description: List of the site's change requests
8145
+ content:
8146
+ application/json:
8147
+ schema:
8148
+ allOf:
8149
+ - $ref: "#/components/schemas/List"
8150
+ - type: object
8151
+ required:
8152
+ - items
8153
+ properties:
8154
+ items:
8155
+ type: array
8156
+ items:
8157
+ $ref: "#/components/schemas/SiteChangeRequest"
8158
+ post:
8159
+ operationId: createSiteChangeRequest
8160
+ summary: Create a new change request in a site
8161
+ description: "Creates a change request reviewing the site, as a draft working copy of the content of the spaces it changes. It starts with no members: a space becomes one on its first edit."
8162
+ x-internal: true
8163
+ tags:
8164
+ - site-change-requests
8165
+ security:
8166
+ - user: []
8167
+ - oauth:
8168
+ - site:write
8169
+ parameters:
8170
+ - $ref: "#/components/parameters/organizationId"
8171
+ - $ref: "#/components/parameters/siteId"
8172
+ requestBody:
8173
+ required: true
8174
+ content:
8175
+ application/json:
8176
+ schema:
8177
+ type: object
8178
+ properties:
8179
+ subject:
8180
+ $ref: "#/components/schemas/ChangeRequestSubject"
8181
+ description:
8182
+ $ref: "#/components/schemas/JSONDocument"
8183
+ responses:
8184
+ "201":
8185
+ description: The change request has been created
8186
+ headers:
8187
+ Location:
8188
+ description: API URL for the newly created change request
8189
+ schema:
8190
+ type: string
8191
+ content:
8192
+ application/json:
8193
+ schema:
8194
+ $ref: "#/components/schemas/SiteChangeRequest"
8195
+ /orgs/{organizationId}/sites/{siteId}/change-requests/{changeRequestId}:
8196
+ get:
8197
+ operationId: getSiteChangeRequestById
8198
+ summary: Get a site change request by its ID
8199
+ description: Retrieves a single site change request, including its status, subject, description, aggregate version and active members. Use this to check its current state before deciding to merge, update or request a review.
8200
+ x-internal: true
8201
+ tags:
8202
+ - site-change-requests
8203
+ security:
8204
+ - user: []
8205
+ - oauth:
8206
+ - site:read
8207
+ parameters:
8208
+ - $ref: "#/components/parameters/organizationId"
8209
+ - $ref: "#/components/parameters/siteId"
8210
+ - $ref: "#/components/parameters/siteChangeRequestId"
8211
+ responses:
8212
+ "200":
8213
+ description: The matching change request
8214
+ content:
8215
+ application/json:
8216
+ schema:
8217
+ $ref: "#/components/schemas/SiteChangeRequest"
8218
+ "404":
8219
+ description: The change request could not be found.
8220
+ $ref: "#/components/responses/NotFoundError"
8221
+ patch:
8222
+ operationId: updateSiteChangeRequestById
8223
+ summary: Update a site change request's subject, description, or status
8224
+ description: Updates the metadata of a site change request. Use this to rename it, add context before requesting a review, or change its workflow status without merging. To change the resources it reviews, update its members instead.
8225
+ x-internal: true
8226
+ tags:
8227
+ - site-change-requests
8228
+ security:
8229
+ - user: []
8230
+ - oauth:
8231
+ - site:write
8232
+ parameters:
8233
+ - $ref: "#/components/parameters/organizationId"
8234
+ - $ref: "#/components/parameters/siteId"
8235
+ - $ref: "#/components/parameters/siteChangeRequestId"
8236
+ requestBody:
8237
+ required: true
8238
+ content:
8239
+ application/json:
8240
+ schema:
8241
+ type: object
8242
+ minProperties: 1
8243
+ properties:
8244
+ subject:
8245
+ $ref: "#/components/schemas/ChangeRequestSubject"
8246
+ description:
8247
+ $ref: "#/components/schemas/JSONDocument"
8248
+ status:
8249
+ type: string
8250
+ enum:
8251
+ - draft
8252
+ - open
8253
+ - archived
8254
+ responses:
8255
+ "200":
8256
+ description: The change request has been updated
8257
+ content:
8258
+ application/json:
8259
+ schema:
8260
+ $ref: "#/components/schemas/SiteChangeRequest"
8261
+ "404":
8262
+ description: The change request could not be found.
8263
+ $ref: "#/components/responses/NotFoundError"
8264
+ "409":
8265
+ description: The change request has been merged and can no longer be changed.
8266
+ $ref: "#/components/responses/ConflictError"
8267
+ delete:
8268
+ operationId: deleteSiteChangeRequestById
8269
+ summary: Delete a site change request
8270
+ description: Permanently deletes a change request and its members. Merged change requests cannot be deleted; archive a change request instead to keep its review history.
8271
+ x-internal: true
8272
+ tags:
8273
+ - site-change-requests
8274
+ security:
8275
+ - user: []
8276
+ - oauth:
8277
+ - site:write
8278
+ parameters:
8279
+ - $ref: "#/components/parameters/organizationId"
8280
+ - $ref: "#/components/parameters/siteId"
8281
+ - $ref: "#/components/parameters/siteChangeRequestId"
8282
+ responses:
8283
+ "204":
8284
+ description: The change request did not exist
8285
+ "205":
8286
+ description: The change request has been deleted
8287
+ "409":
8288
+ description: The change request has been merged and cannot be deleted.
8289
+ $ref: "#/components/responses/ConflictError"
7984
8290
  /orgs/{organizationId}/sites/{siteId}/share-links:
7985
8291
  get:
7986
8292
  operationId: listSiteShareLinks
@@ -8113,7 +8419,7 @@ paths:
8113
8419
  get:
8114
8420
  operationId: getSiteStructure
8115
8421
  summary: Get the full navigation structure of a site
8116
- description: Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. Use this to understand how a site's navigation is organized before making structural changes, or to render the full navigation tree of a site.
8422
+ description: Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. Use this to understand how a site's navigation is organized before making structural changes, or to render the full navigation tree of a site. Members with access only to individual spaces receive only the site items backed by those spaces and their parent sections.
8117
8423
  x-gitbook-mcp: true
8118
8424
  tags:
8119
8425
  - site-structure
@@ -8290,6 +8596,11 @@ paths:
8290
8596
  description: Rison encoded string of attributes/assertions about the visitor for which we want to preview the site.
8291
8597
  schema:
8292
8598
  type: string
8599
+ - name: country
8600
+ in: query
8601
+ description: ISO 3166-1 alpha-2 code of the country of the visitor for which we want to preview the site. It is matched against the `regions` of the site adaptive schema to resolve `visitor.region`.
8602
+ schema:
8603
+ type: string
8293
8604
  - name: draft
8294
8605
  in: query
8295
8606
  description: Whether to include draft content in the preview. Defaults to true
@@ -8366,7 +8677,12 @@ paths:
8366
8677
  content:
8367
8678
  application/json:
8368
8679
  schema:
8369
- $ref: "#/components/schemas/SiteCustomizationSettings"
8680
+ allOf:
8681
+ - $ref: "#/components/schemas/SiteCustomizationSettings"
8682
+ - type: object
8683
+ properties:
8684
+ subscriptionNotice:
8685
+ $ref: "#/components/schemas/SubscriptionNotice"
8370
8686
  "400":
8371
8687
  $ref: "#/components/responses/BadRequestError"
8372
8688
  /orgs/{organizationId}/sites/{siteId}/integration-scripts:
@@ -8498,7 +8814,7 @@ paths:
8498
8814
  get:
8499
8815
  operationId: listSiteSpaces
8500
8816
  summary: List all spaces linked to a site as content sources
8501
- description: Returns a paginated list of site spaces — the links between a site and its content source spaces. Each site space can be a language variant or content version within a section. Use the default filter to retrieve only the primary site space, or omit it to get all linked spaces including drafts.
8817
+ description: Returns a paginated list of site spaces — the links between a site and its content source spaces. Each site space can be a language variant or content version within a section. Use the default filter to retrieve only the primary site space, or omit it to get all linked spaces including drafts. Members with access only to individual spaces receive only site-space links for those spaces.
8502
8818
  x-gitbook-mcp: true
8503
8819
  tags:
8504
8820
  - site-spaces
@@ -8618,7 +8934,12 @@ paths:
8618
8934
  content:
8619
8935
  application/json:
8620
8936
  schema:
8621
- $ref: "#/components/schemas/SiteSectionGroup"
8937
+ allOf:
8938
+ - $ref: "#/components/schemas/SiteSectionGroup"
8939
+ - type: object
8940
+ properties:
8941
+ subscriptionNotice:
8942
+ $ref: "#/components/schemas/SubscriptionNotice"
8622
8943
  /orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}:
8623
8944
  patch:
8624
8945
  operationId: updateSiteSectionGroupById
@@ -8752,7 +9073,12 @@ paths:
8752
9073
  content:
8753
9074
  application/json:
8754
9075
  schema:
8755
- $ref: "#/components/schemas/SiteSection"
9076
+ allOf:
9077
+ - $ref: "#/components/schemas/SiteSection"
9078
+ - type: object
9079
+ properties:
9080
+ subscriptionNotice:
9081
+ $ref: "#/components/schemas/SubscriptionNotice"
8756
9082
  get:
8757
9083
  operationId: listSiteSections
8758
9084
  summary: List all navigation sections in a site
@@ -8877,7 +9203,7 @@ paths:
8877
9203
  post:
8878
9204
  operationId: addExternalLinkToSite
8879
9205
  summary: Add an external link to a site's navigation
8880
- description: Creates an external navigation link at the site root or in a section group. External links require a section-based site structure and cannot be placed inside a section. The destination must be an absolute HTTP or HTTPS URL. Draft links and links whose adaptive condition does not match are omitted from published structure responses. Use the generic structure sort operation after creation to change sibling order.
9206
+ description: Creates an external navigation link at the site root or in a section group. On a site with root variants and no sections, creating the first external link enables sections and moves those variants into a default section. Links cannot be placed inside a section. The destination must be an absolute HTTP or HTTPS URL. Draft links and links whose adaptive condition does not match are omitted from published structure responses. Use the generic structure sort operation after creation to change sibling order.
8881
9207
  x-gitbook-mcp: true
8882
9208
  tags:
8883
9209
  - site-external-links
@@ -8941,7 +9267,7 @@ paths:
8941
9267
  schema:
8942
9268
  $ref: "#/components/schemas/SiteExternalLink"
8943
9269
  "400":
8944
- description: The site has a simple structure or the parent group is invalid
9270
+ description: The parent group is invalid, or the site has no sections or root variants
8945
9271
  $ref: "#/components/responses/BadRequestError"
8946
9272
  default:
8947
9273
  $ref: "#/components/responses/UnexpectedError"
@@ -9501,7 +9827,7 @@ paths:
9501
9827
  get:
9502
9828
  operationId: listSiteFindings
9503
9829
  summary: List documentation issues GitBook has found on a site
9504
- description: Lists the quality issues GitBook's AI has identified on a site by comparing its content against real usage and external sources — content gaps, outdated or incorrect content, and broken or outbound links. Use this when asked to find, audit, or fix problems in a site's docs.
9830
+ description: "Lists the quality issues GitBook's AI has identified on a site by comparing its content against real usage and external sources — content gaps, outdated or incorrect content, and broken or outbound links. Use this when asked to find, audit, or fix problems in a site's docs. Only findings with status \"open\" need work; \"candidate\" ones have not been confirmed yet. A \"broken-link\" finding is fixed by a redirect rather than a content edit: pass its `brokenLinkAction` to createSiteRedirect. Fix the rest by opening a change request with its `siteFindingId` set, so merging the change request resolves it."
9505
9831
  x-gitbook-mcp: true
9506
9832
  tags:
9507
9833
  - site-context
@@ -9536,6 +9862,11 @@ paths:
9536
9862
  type: array
9537
9863
  items:
9538
9864
  $ref: "#/components/schemas/SiteFindingType"
9865
+ - name: url
9866
+ in: query
9867
+ description: "Filter link findings whose URL contains this text: the broken path of a `broken-link` finding, or the checked URL of an `outbound-link-error` one. Findings of any other type never match, so this narrows the list to link findings on its own."
9868
+ schema:
9869
+ type: string
9539
9870
  - name: severity
9540
9871
  in: query
9541
9872
  description: Filter findings by estimated severity.
@@ -11746,6 +12077,9 @@ paths:
11746
12077
  schema:
11747
12078
  type: object
11748
12079
  properties:
12080
+ siteFindingId:
12081
+ type: string
12082
+ description: The broken-link finding that prompted this redirect. Must belong to this site. Used to attribute redirect creation, including drafts, to the finding.
11749
12083
  source:
11750
12084
  $ref: "#/components/schemas/SiteRedirectSourcePath"
11751
12085
  captureWildcard:
@@ -12330,6 +12664,141 @@ paths:
12330
12664
  application/json:
12331
12665
  schema:
12332
12666
  $ref: "#/components/schemas/SiteChannel"
12667
+ /orgs/{organizationId}/sites/{siteId}/channels/scopes:
12668
+ post:
12669
+ operationId: listSiteChannelScopes
12670
+ summary: List available site channel scopes
12671
+ description: Lists accessible Linear teams, GitHub repositories, Slack channels or Jira projects. Requires site admin permission. Linear, GitHub and Slack require an already-connected channel belonging to this site and matching the provider. Jira credentials are verified without saving a connection. Slack includes public channels and accessible private channels, excluding archived channels. To fetch another page, pass the opaque token from `next.page` as the `page` query parameter with the same request body. An absent `next` means there are no more pages; an empty `items` array alone does not indicate the end of the list.
12672
+ x-gitbook-mcp: true
12673
+ tags:
12674
+ - site-channels
12675
+ security:
12676
+ - user: []
12677
+ - oauth:
12678
+ - site:read
12679
+ parameters:
12680
+ - $ref: "#/components/parameters/organizationId"
12681
+ - $ref: "#/components/parameters/siteId"
12682
+ - $ref: "#/components/parameters/listPage"
12683
+ requestBody:
12684
+ required: true
12685
+ content:
12686
+ application/json:
12687
+ schema:
12688
+ oneOf:
12689
+ - type: object
12690
+ required:
12691
+ - provider
12692
+ - siteChannelId
12693
+ properties:
12694
+ provider:
12695
+ type: string
12696
+ enum:
12697
+ - linear
12698
+ siteChannelId:
12699
+ type: string
12700
+ description: ID of an already-connected channel belonging to this site and matching the provider.
12701
+ - type: object
12702
+ required:
12703
+ - provider
12704
+ - siteChannelId
12705
+ properties:
12706
+ provider:
12707
+ type: string
12708
+ enum:
12709
+ - github
12710
+ siteChannelId:
12711
+ type: string
12712
+ description: ID of an already-connected channel belonging to this site and matching the provider.
12713
+ - type: object
12714
+ required:
12715
+ - provider
12716
+ - siteChannelId
12717
+ properties:
12718
+ provider:
12719
+ type: string
12720
+ enum:
12721
+ - slack
12722
+ siteChannelId:
12723
+ type: string
12724
+ description: ID of an already-connected channel belonging to this site and matching the provider.
12725
+ - type: object
12726
+ required:
12727
+ - provider
12728
+ - credentials
12729
+ properties:
12730
+ provider:
12731
+ type: string
12732
+ enum:
12733
+ - jira
12734
+ credentials:
12735
+ type: object
12736
+ required:
12737
+ - baseUrl
12738
+ - apiEmail
12739
+ - apiToken
12740
+ properties:
12741
+ baseUrl:
12742
+ type: string
12743
+ format: uri
12744
+ minLength: 1
12745
+ maxLength: 2048
12746
+ description: Base URL of the Jira Cloud site, e.g. https://your-team.atlassian.net.
12747
+ apiEmail:
12748
+ type: string
12749
+ format: email
12750
+ minLength: 1
12751
+ maxLength: 254
12752
+ description: Email of the Atlassian account whose API token is used.
12753
+ apiToken:
12754
+ type: string
12755
+ minLength: 1
12756
+ maxLength: 1024
12757
+ description: Atlassian API token used to verify the account and list accessible projects. Not saved.
12758
+ discriminator:
12759
+ propertyName: provider
12760
+ responses:
12761
+ "200":
12762
+ description: Scopes available through the connected provider or supplied Jira credentials
12763
+ content:
12764
+ application/json:
12765
+ schema:
12766
+ allOf:
12767
+ - $ref: "#/components/schemas/List"
12768
+ - type: object
12769
+ required:
12770
+ - object
12771
+ - items
12772
+ - connection
12773
+ properties:
12774
+ object:
12775
+ type: string
12776
+ enum:
12777
+ - site-channel-scopes
12778
+ connection:
12779
+ type: string
12780
+ description: Linear workspace name, GitHub account name, Slack workspace name (or ID if unavailable), or Jira Cloud hostname.
12781
+ items:
12782
+ type: array
12783
+ items:
12784
+ type: object
12785
+ required:
12786
+ - key
12787
+ - name
12788
+ properties:
12789
+ key:
12790
+ type: string
12791
+ description: Value accepted by the provider scope settings, such as a team key, repository full name, channel name, Jira project key.
12792
+ name:
12793
+ type: string
12794
+ "400":
12795
+ $ref: "#/components/responses/BadRequestError"
12796
+ "401":
12797
+ $ref: "#/components/responses/UnauthorizedError"
12798
+ "403":
12799
+ $ref: "#/components/responses/ForbiddenError"
12800
+ "404":
12801
+ $ref: "#/components/responses/NotFoundError"
12333
12802
  /orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}:
12334
12803
  get:
12335
12804
  operationId: getSiteChannelById
@@ -12389,6 +12858,7 @@ paths:
12389
12858
  delete:
12390
12859
  operationId: deleteSiteChannelById
12391
12860
  summary: Delete a GitBook Agent channel from a site
12861
+ description: Removes the channel configuration from the site, so GitBook Agent stops answering and collaborating through the connected platform. The app itself is not uninstalled and its access is not revoked on the platform, so remove it there as well to fully disconnect.
12392
12862
  tags:
12393
12863
  - site-channels
12394
12864
  security:
@@ -13615,6 +14085,13 @@ components:
13615
14085
  description: The unique id of the import run
13616
14086
  schema:
13617
14087
  type: string
14088
+ siteChangeRequestId:
14089
+ name: changeRequestId
14090
+ in: path
14091
+ required: true
14092
+ description: The unique ID of the change request or its number identifier in the site
14093
+ schema:
14094
+ $ref: "#/components/schemas/EntityId"
13618
14095
  shareLinkId:
13619
14096
  name: shareLinkId
13620
14097
  in: path
@@ -14184,6 +14661,9 @@ components:
14184
14661
  url:
14185
14662
  type: string
14186
14663
  description: The URL to the repository tree, used when rendering public content.
14664
+ installationProjectDirectory:
14665
+ type: string
14666
+ description: Directory in the repository this content syncs from, resolved against the parent installation when the installation is managed by a site. Absent when the content syncs from the root of the repository.
14187
14667
  operation:
14188
14668
  type: object
14189
14669
  description: The latest operation on the Git Sync installation.
@@ -14215,6 +14695,15 @@ components:
14215
14695
  - installationId
14216
14696
  - installationProvider
14217
14697
  - installationStatus
14698
+ PreviousGitSyncState:
14699
+ type: object
14700
+ description: What is still known about a target's Git Sync after its installation was removed. Never returned alongside `gitSync`, which describes a live installation.
14701
+ required:
14702
+ - url
14703
+ properties:
14704
+ url:
14705
+ type: string
14706
+ description: The URL to the directory of the repository tree the content synced with before its Git Sync installation was removed, at the branch it synced.
14218
14707
  ContentImportSource:
14219
14708
  oneOf:
14220
14709
  - type: object
@@ -14478,6 +14967,8 @@ components:
14478
14967
  $ref: "#/components/schemas/TranslationLanguage"
14479
14968
  gitSync:
14480
14969
  $ref: "#/components/schemas/GitSyncState"
14970
+ previousGitSync:
14971
+ $ref: "#/components/schemas/PreviousGitSyncState"
14481
14972
  imports:
14482
14973
  description: |
14483
14974
  Import runs targeting this space, still running or ended recently, most recent first. Only returned when fetching a single space.
@@ -17894,6 +18385,10 @@ components:
17894
18385
  type: string
17895
18386
  description:
17896
18387
  type: string
18388
+ tagTitle:
18389
+ description: Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself.
18390
+ type: string
18391
+ maxLength: 100
17897
18392
  pages:
17898
18393
  type: array
17899
18394
  items:
@@ -18785,6 +19280,7 @@ components:
18785
19280
  type: string
18786
19281
  enum:
18787
19282
  - jira
19283
+ - linear
18788
19284
  state:
18789
19285
  type: string
18790
19286
  enum:
@@ -18828,6 +19324,7 @@ components:
18828
19324
  type: string
18829
19325
  enum:
18830
19326
  - jira
19327
+ - linear
18831
19328
  state:
18832
19329
  type: string
18833
19330
  enum:
@@ -18844,11 +19341,16 @@ components:
18844
19341
  id:
18845
19342
  type: string
18846
19343
  description: The ID of the link.
19344
+ isSyncing:
19345
+ type: boolean
19346
+ readOnly: true
19347
+ description: Whether this link owns synchronization with the external issue. Other links are references only.
18847
19348
  expanded:
18848
19349
  $ref: "#/components/schemas/ChangeRequestLinkExpanded"
18849
19350
  readOnly: true
18850
19351
  required:
18851
19352
  - id
19353
+ - isSyncing
18852
19354
  ChangeRequestLinks:
18853
19355
  type: array
18854
19356
  description: External links associated with the change request.
@@ -18907,7 +19409,7 @@ components:
18907
19409
  description: Count of opened comments on the change request.
18908
19410
  siteTopic:
18909
19411
  type: object
18910
- description: Site context associated with the change request when it was created from a site topic or finding.
19412
+ description: Site topic the change request was created from, when it came from one.
18911
19413
  properties:
18912
19414
  site:
18913
19415
  type: string
@@ -18917,10 +19419,24 @@ components:
18917
19419
  description: ID of the site topic associated with the change request.
18918
19420
  finding:
18919
19421
  type: string
18920
- description: ID of the site finding associated with the change request, when applicable.
19422
+ deprecated: true
19423
+ description: "ID of the site finding the change request fixes. Use `siteFinding` instead: a change request can fix a finding without belonging to a topic, and this field is absent in that case."
18921
19424
  required:
18922
19425
  - site
18923
19426
  - topic
19427
+ siteFinding:
19428
+ type: object
19429
+ description: Site finding the change request fixes, when it is linked to one. Merging the change request resolves the finding, once every change request linked to it is merged.
19430
+ properties:
19431
+ site:
19432
+ type: string
19433
+ description: ID of the site the finding belongs to.
19434
+ finding:
19435
+ type: string
19436
+ description: ID of the site finding the change request fixes.
19437
+ required:
19438
+ - site
19439
+ - finding
18924
19440
  styleguide:
18925
19441
  type: object
18926
19442
  description: |
@@ -19335,6 +19851,16 @@ components:
19335
19851
  - createdAt
19336
19852
  - updatedAt
19337
19853
  - urls
19854
+ ChangeRequestReviewStats:
19855
+ type: object
19856
+ description: Exact review totals for the applied filters, independent of pagination. Keyed by review status, with a count of zero for a status nobody used.
19857
+ propertyNames:
19858
+ $ref: "#/components/schemas/ChangeRequestReviewStatus"
19859
+ additionalProperties:
19860
+ type: number
19861
+ required:
19862
+ - approved
19863
+ - changes-requested
19338
19864
  Team:
19339
19865
  type: object
19340
19866
  properties:
@@ -19564,6 +20090,14 @@ components:
19564
20090
  description:
19565
20091
  type: string
19566
20092
  description: Description of the page.
20093
+ linkTitle:
20094
+ description: Optional custom title used for the page in the table of contents and mentions instead of its page title. Set to an empty string to remove it.
20095
+ type: string
20096
+ maxLength: 100
20097
+ tagTitle:
20098
+ description: Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself. Set to an empty string to remove it.
20099
+ type: string
20100
+ maxLength: 100
19567
20101
  hidden:
19568
20102
  type: boolean
19569
20103
  description: If true, the page is not displayed in the navigation, while still being accessible.
@@ -20618,6 +21152,69 @@ components:
20618
21152
  description: The default content for the organization
20619
21153
  oneOf:
20620
21154
  - $ref: "#/components/schemas/SitePointer"
21155
+ AICreditThreshold:
21156
+ description: An AI credit threshold from 5% to 50%, or null when disabled.
21157
+ oneOf:
21158
+ - type: number
21159
+ minimum: 5
21160
+ maximum: 50
21161
+ - type: "null"
21162
+ OrganizationAISettings:
21163
+ type: object
21164
+ description: AI preferences and automatic pause status. Missing feature keys leave features enabled, subject to the master AI setting and feature eligibility.
21165
+ additionalProperties: false
21166
+ properties:
21167
+ aiPaused:
21168
+ type: boolean
21169
+ readOnly: true
21170
+ description: Whether AI features are automatically paused because credits are low.
21171
+ ai-agent:
21172
+ type: boolean
21173
+ enum:
21174
+ - false
21175
+ ai-assistant:
21176
+ type: boolean
21177
+ enum:
21178
+ - false
21179
+ ai-broken-links:
21180
+ type: boolean
21181
+ enum:
21182
+ - false
21183
+ ai-content-gap:
21184
+ type: boolean
21185
+ enum:
21186
+ - false
21187
+ ai-insight:
21188
+ type: boolean
21189
+ enum:
21190
+ - false
21191
+ ai-import:
21192
+ type: boolean
21193
+ enum:
21194
+ - false
21195
+ ai-platform:
21196
+ type: boolean
21197
+ enum:
21198
+ - false
21199
+ ai-style-guide:
21200
+ type: boolean
21201
+ enum:
21202
+ - false
21203
+ ai-translation:
21204
+ type: boolean
21205
+ enum:
21206
+ - false
21207
+ aiCreditAlertThreshold:
21208
+ $ref: "#/components/schemas/AICreditThreshold"
21209
+ aiCreditPauseEnabled:
21210
+ description: Whether AI features pause automatically once all AI credits are used, before usage is billed as overage.
21211
+ type: boolean
21212
+ aiAlertNotificationAlertId:
21213
+ type: string
21214
+ readOnly: true
21215
+ aiPauseNotificationAlertId:
21216
+ type: string
21217
+ readOnly: true
20621
21218
  BillingProduct:
20622
21219
  type: string
20623
21220
  description: Name of the product
@@ -20695,10 +21292,10 @@ components:
20695
21292
  description: The AI credit bundle to top up every month
20696
21293
  enum:
20697
21294
  - none
20698
- - 13500_1500
20699
- - 24000_6000
20700
- - 42000_18000
20701
- - 60000_40000
21295
+ - 4750_250
21296
+ - 9000_1000
21297
+ - 12750_2250
21298
+ - 30000_10000
20702
21299
  OrganizationBilling:
20703
21300
  type: object
20704
21301
  properties:
@@ -20760,18 +21357,24 @@ components:
20760
21357
  canUseSAML:
20761
21358
  description: Whether configuring SAML is allowed
20762
21359
  type: boolean
21360
+ canUseAI:
21361
+ description: Whether AI can be enabled for the organization
21362
+ type: boolean
20763
21363
  creditsBundle:
20764
21364
  description: The AI credit bundle the organization tops up every month, or null when the organization is not billed for AI usage. `none` means pay as you go.
20765
21365
  oneOf:
20766
21366
  - $ref: "#/components/schemas/BillingCreditsBundle"
20767
21367
  - type: "null"
20768
- aiCreditAlertThreshold:
20769
- description: Percentage of total AI credits remaining at which to send a low-balance alert, or null when the alert is disabled.
21368
+ aiCreditAllowance:
21369
+ description: The yearly AI credit allowance agreed in the organization's contract, or null when none is set.
20770
21370
  oneOf:
20771
- - type: number
20772
- minimum: 0
20773
- maximum: 100
21371
+ - type: integer
20774
21372
  - type: "null"
21373
+ aiCreditRollover:
21374
+ description: The percentage of unused paid bundle credits carried over to the next monthly AI billing period.
21375
+ type: integer
21376
+ minimum: 0
21377
+ maximum: 100
20775
21378
  required:
20776
21379
  - interval
20777
21380
  - endDate
@@ -20782,8 +21385,41 @@ components:
20782
21385
  - usageAddons
20783
21386
  - canChangeInterval
20784
21387
  - canUseSAML
21388
+ - canUseAI
20785
21389
  - creditsBundle
20786
- - aiCreditAlertThreshold
21390
+ - aiCreditAllowance
21391
+ - aiCreditRollover
21392
+ OrganizationSupportCost:
21393
+ description: What support costs the organization, per ticket or per hour of agent time, used to estimate how much AI answers save in site insights.
21394
+ oneOf:
21395
+ - type: object
21396
+ additionalProperties: false
21397
+ properties:
21398
+ perTicket:
21399
+ type: number
21400
+ minimum: 0.01
21401
+ description: Cost of one support ticket, in `currency`.
21402
+ currency:
21403
+ type: string
21404
+ pattern: ^[A-Z]{3}$
21405
+ description: ISO 4217 currency code.
21406
+ required:
21407
+ - perTicket
21408
+ - currency
21409
+ - type: object
21410
+ additionalProperties: false
21411
+ properties:
21412
+ perHour:
21413
+ type: number
21414
+ minimum: 0.01
21415
+ description: Cost of one hour of support agent time, in `currency`.
21416
+ currency:
21417
+ type: string
21418
+ pattern: ^[A-Z]{3}$
21419
+ description: ISO 4217 currency code.
21420
+ required:
21421
+ - perHour
21422
+ - currency
20787
21423
  BillingTrialStatus:
20788
21424
  type: string
20789
21425
  description: |
@@ -20841,6 +21477,8 @@ components:
20841
21477
  ai:
20842
21478
  description: If true, the organization is configured to use all our AI features.
20843
21479
  type: boolean
21480
+ aiSettings:
21481
+ $ref: "#/components/schemas/OrganizationAISettings"
20844
21482
  inviteLinks:
20845
21483
  description: If true, invite links are enabled for this organization.
20846
21484
  type: boolean
@@ -20854,6 +21492,9 @@ components:
20854
21492
  $ref: "#/components/schemas/OrganizationBilling"
20855
21493
  mergeRules:
20856
21494
  $ref: "#/components/schemas/MergeRulesStandaloneConfiguration"
21495
+ supportCost:
21496
+ description: Support cost set by the organization, only available for org members.
21497
+ $ref: "#/components/schemas/OrganizationSupportCost"
20857
21498
  urls:
20858
21499
  type: object
20859
21500
  description: URLs associated with the object
@@ -22432,6 +23073,7 @@ components:
22432
23073
  - sites-sections
22433
23074
  - sites-seo
22434
23075
  - sites-share-links
23076
+ - sites-style-guide
22435
23077
  - sites-unlisted-visibility
22436
23078
  - sites-user-contribution
22437
23079
  - sites-visitor-authentication
@@ -23555,6 +24197,101 @@ components:
23555
24197
  $ref: "#/components/schemas/SiteOnboardingPreferences"
23556
24198
  required:
23557
24199
  - title
24200
+ SubscriptionTrial:
24201
+ type: object
24202
+ description: The current or last trial of an organization.
24203
+ properties:
24204
+ status:
24205
+ $ref: "#/components/schemas/BillingTrialStatus"
24206
+ endDate:
24207
+ description: When the trial ends, or ended.
24208
+ $ref: "#/components/schemas/Timestamp"
24209
+ daysRemaining:
24210
+ type: integer
24211
+ description: Days left in the trial, rounded up, so 1 is its last day. 0 once it has ended.
24212
+ required:
24213
+ - status
24214
+ - endDate
24215
+ - daysRemaining
24216
+ SubscriptionNotice:
24217
+ type: object
24218
+ description: |
24219
+ A notice about the organization's subscription to relay to the user, such as how many days are left in their trial. It is returned by the operations whose features may require a paid plan once a trial ends.
24220
+ properties:
24221
+ type:
24222
+ type: string
24223
+ description: |
24224
+ - trial_started, the operation started the organization's trial. - trial_countdown, the organization's trial ends soon. - checkout_required, the operation needs a paid plan to complete.
24225
+ enum:
24226
+ - trial_started
24227
+ - trial_countdown
24228
+ - checkout_required
24229
+ context:
24230
+ type: string
24231
+ description: What the user was doing when the notice was given.
24232
+ enum:
24233
+ - trial_started
24234
+ - site_publishing
24235
+ - site_features
24236
+ - site_customization
24237
+ commercialStatus:
24238
+ type: string
24239
+ description: Whether the organization is on a trial, the free plan, or a paid plan.
24240
+ enum:
24241
+ - trial
24242
+ - free
24243
+ - paid
24244
+ message:
24245
+ type: string
24246
+ description: Message to show the user. For users who cannot upgrade, it asks them to reach out to an administrator of the organization.
24247
+ trial:
24248
+ $ref: "#/components/schemas/SubscriptionTrial"
24249
+ canManageBilling:
24250
+ type: boolean
24251
+ description: Whether the user is an administrator of the organization, and so can upgrade. Otherwise, they have to ask an administrator to upgrade.
24252
+ upgradeUrl:
24253
+ description: Where to upgrade in the application. Only set when `canManageBilling` is true.
24254
+ $ref: "#/components/schemas/URL"
24255
+ pricingUrl:
24256
+ description: Public page comparing the GitBook plans.
24257
+ $ref: "#/components/schemas/URL"
24258
+ required:
24259
+ - type
24260
+ - context
24261
+ - commercialStatus
24262
+ - message
24263
+ - canManageBilling
24264
+ - pricingUrl
24265
+ OptOutUpdate:
24266
+ description: Set false to disable, or null to remove the opt-out. Omit to leave unchanged.
24267
+ oneOf:
24268
+ - type: boolean
24269
+ enum:
24270
+ - false
24271
+ - type: "null"
24272
+ OrganizationAISettingsUpdate:
24273
+ type: object
24274
+ description: Partial AI preference update. Omitted keys are unchanged; null removes an opt-out.
24275
+ additionalProperties: false
24276
+ properties:
24277
+ ai-agent:
24278
+ $ref: "#/components/schemas/OptOutUpdate"
24279
+ ai-assistant:
24280
+ $ref: "#/components/schemas/OptOutUpdate"
24281
+ ai-broken-links:
24282
+ $ref: "#/components/schemas/OptOutUpdate"
24283
+ ai-content-gap:
24284
+ $ref: "#/components/schemas/OptOutUpdate"
24285
+ ai-insight:
24286
+ $ref: "#/components/schemas/OptOutUpdate"
24287
+ ai-import:
24288
+ $ref: "#/components/schemas/OptOutUpdate"
24289
+ ai-platform:
24290
+ $ref: "#/components/schemas/OptOutUpdate"
24291
+ ai-style-guide:
24292
+ $ref: "#/components/schemas/OptOutUpdate"
24293
+ ai-translation:
24294
+ $ref: "#/components/schemas/OptOutUpdate"
23558
24295
  SiteSectionTitle:
23559
24296
  type: string
23560
24297
  description: Title of the site section
@@ -23911,6 +24648,18 @@ components:
23911
24648
  label:
23912
24649
  type: string
23913
24650
  description: Display label captured when the event was recorded.
24651
+ impersonator:
24652
+ type: object
24653
+ description: GitBook staff member acting as this user. Present only for recorded impersonation; older events may not have this information. The actor ID remains the effective user for filtering.
24654
+ properties:
24655
+ id:
24656
+ type: string
24657
+ description: Stable ID of the impersonating staff member.
24658
+ label:
24659
+ type: string
24660
+ description: Staff display name captured when the event was recorded, if available.
24661
+ required:
24662
+ - id
23914
24663
  required:
23915
24664
  - type
23916
24665
  - id
@@ -24059,6 +24808,52 @@ components:
24059
24808
  $ref: "#/components/schemas/StyleguideTemplate"
24060
24809
  required:
24061
24810
  - templates
24811
+ OrganizationSubscription:
24812
+ type: object
24813
+ description: An organization's subscription, as needed to tell a user their plan, trial and how to upgrade.
24814
+ properties:
24815
+ object:
24816
+ type: string
24817
+ description: Type of Object, always equals to "organization-subscription"
24818
+ enum:
24819
+ - organization-subscription
24820
+ status:
24821
+ type: string
24822
+ description: Whether the organization is on a trial, the free plan, or a paid plan.
24823
+ enum:
24824
+ - trial
24825
+ - free
24826
+ - paid
24827
+ plan:
24828
+ type: object
24829
+ description: The plan in effect, which is the trial's plan while trialing.
24830
+ properties:
24831
+ id:
24832
+ $ref: "#/components/schemas/BillingProduct"
24833
+ title:
24834
+ type: string
24835
+ description: Name of the plan shown to users, e.g. Pro.
24836
+ required:
24837
+ - id
24838
+ - title
24839
+ trial:
24840
+ description: The current or last trial. Absent when the organization never had one.
24841
+ $ref: "#/components/schemas/SubscriptionTrial"
24842
+ canManageBilling:
24843
+ type: boolean
24844
+ description: Whether the user is an administrator of the organization, and so can upgrade. Otherwise, they have to ask an administrator to upgrade.
24845
+ upgradeUrl:
24846
+ description: Where to upgrade in the application. Only set when `canManageBilling` is true.
24847
+ $ref: "#/components/schemas/URL"
24848
+ pricingUrl:
24849
+ description: Public page comparing the GitBook plans.
24850
+ $ref: "#/components/schemas/URL"
24851
+ required:
24852
+ - object
24853
+ - status
24854
+ - plan
24855
+ - canManageBilling
24856
+ - pricingUrl
24062
24857
  MemberContentPermission:
24063
24858
  type: object
24064
24859
  description: Permission of a member in a content.
@@ -24637,14 +25432,18 @@ components:
24637
25432
  properties:
24638
25433
  type:
24639
25434
  type: string
24640
- description: Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period.
25435
+ description: Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period. `custom` is a grant created outside GitBook.
24641
25436
  enum:
24642
25437
  - paid
24643
25438
  - bonus
24644
25439
  - site
24645
25440
  - rollover
25441
+ - custom
25442
+ priority:
25443
+ type: number
25444
+ description: Stripe spending priority. Lower values are consumed first.
24646
25445
  grantedCredits:
24647
- description: Credits the grant was created with.
25446
+ description: Credits available from this grant before the current invoice usage.
24648
25447
  type: number
24649
25448
  usedCredits:
24650
25449
  description: Credits of the grant spent by the usage metered so far.
@@ -24700,7 +25499,7 @@ components:
24700
25499
  description: The credits the organization pays for.
24701
25500
  $ref: "#/components/schemas/BillingCreditsTotals"
24702
25501
  free:
24703
- description: The credits included at no extra cost, from the bundle, sites and rollover.
25502
+ description: The bonus, site and custom credits.
24704
25503
  $ref: "#/components/schemas/BillingCreditsTotals"
24705
25504
  bundle:
24706
25505
  description: The credits of the monthly bundle, both paid and bonus.
@@ -24805,7 +25604,7 @@ components:
24805
25604
  description: The credits the organization pays for.
24806
25605
  $ref: "#/components/schemas/BillingCreditsTotals"
24807
25606
  free:
24808
- description: The credits included at no extra cost, from the bundle, sites and rollover.
25607
+ description: The bonus, site and custom credits.
24809
25608
  $ref: "#/components/schemas/BillingCreditsTotals"
24810
25609
  bundle:
24811
25610
  description: The credits of the monthly bundle, both paid and bonus.
@@ -24827,14 +25626,18 @@ components:
24827
25626
  properties:
24828
25627
  type:
24829
25628
  type: string
24830
- description: Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period.
25629
+ description: Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period. `custom` is a grant created outside GitBook.
24831
25630
  enum:
24832
25631
  - paid
24833
25632
  - bonus
24834
25633
  - site
24835
25634
  - rollover
25635
+ - custom
25636
+ priority:
25637
+ type: number
25638
+ description: Stripe spending priority. Lower values are consumed first.
24836
25639
  grantedCredits:
24837
- description: Credits the grant was created with.
25640
+ description: Credits available from this grant before the current invoice usage.
24838
25641
  type: number
24839
25642
  usedCredits:
24840
25643
  description: Credits of the grant spent by the usage metered so far.
@@ -25102,6 +25905,7 @@ components:
25102
25905
  description: An organization feature used for plan access and upgrade prompts.
25103
25906
  enum:
25104
25907
  - max-members
25908
+ - ai
25105
25909
  - ai-lens
25106
25910
  - pdf-export
25107
25911
  - ai-writing
@@ -25525,6 +26329,9 @@ components:
25525
26329
  space:
25526
26330
  type: string
25527
26331
  description: The space ID owning the page.
26332
+ title:
26333
+ type: string
26334
+ description: The title of the page, as of `revision`.
25528
26335
  sections:
25529
26336
  type: array
25530
26337
  items:
@@ -25535,6 +26342,7 @@ components:
25535
26342
  - page
25536
26343
  - revision
25537
26344
  - space
26345
+ - title
25538
26346
  - sections
25539
26347
  SearchAIAnswerSourceRecord:
25540
26348
  type: object
@@ -26517,6 +27325,274 @@ components:
26517
27325
  - createdBy
26518
27326
  - updatedAt
26519
27327
  - urls
27328
+ SiteAdaptiveRegions:
27329
+ type: object
27330
+ description: Groups of countries exposed to adaptive content as `visitor.region`. The key of each entry is the region name; `visitor.region` is undefined for a visitor whose country is in none of the regions. A site can declare at most 10 regions.
27331
+ maxProperties: 10
27332
+ propertyNames:
27333
+ pattern: ^[a-zA-Z0-9_-]+$
27334
+ additionalProperties:
27335
+ type: object
27336
+ properties:
27337
+ countries:
27338
+ type: array
27339
+ description: ISO 3166-1 alpha-2 codes of the countries in the region.
27340
+ items:
27341
+ type: string
27342
+ enum:
27343
+ - AD
27344
+ - AE
27345
+ - AF
27346
+ - AG
27347
+ - AI
27348
+ - AL
27349
+ - AM
27350
+ - AO
27351
+ - AQ
27352
+ - AR
27353
+ - AS
27354
+ - AT
27355
+ - AU
27356
+ - AW
27357
+ - AX
27358
+ - AZ
27359
+ - BA
27360
+ - BB
27361
+ - BD
27362
+ - BE
27363
+ - BF
27364
+ - BG
27365
+ - BH
27366
+ - BI
27367
+ - BJ
27368
+ - BL
27369
+ - BM
27370
+ - BN
27371
+ - BO
27372
+ - BQ
27373
+ - BR
27374
+ - BS
27375
+ - BT
27376
+ - BV
27377
+ - BW
27378
+ - BY
27379
+ - BZ
27380
+ - CA
27381
+ - CC
27382
+ - CD
27383
+ - CF
27384
+ - CG
27385
+ - CH
27386
+ - CI
27387
+ - CK
27388
+ - CL
27389
+ - CM
27390
+ - CN
27391
+ - CO
27392
+ - CR
27393
+ - CU
27394
+ - CV
27395
+ - CW
27396
+ - CX
27397
+ - CY
27398
+ - CZ
27399
+ - DE
27400
+ - DJ
27401
+ - DK
27402
+ - DM
27403
+ - DO
27404
+ - DZ
27405
+ - EC
27406
+ - EE
27407
+ - EG
27408
+ - EH
27409
+ - ER
27410
+ - ES
27411
+ - ET
27412
+ - FI
27413
+ - FJ
27414
+ - FK
27415
+ - FM
27416
+ - FO
27417
+ - FR
27418
+ - GA
27419
+ - GB
27420
+ - GD
27421
+ - GE
27422
+ - GF
27423
+ - GG
27424
+ - GH
27425
+ - GI
27426
+ - GL
27427
+ - GM
27428
+ - GN
27429
+ - GP
27430
+ - GQ
27431
+ - GR
27432
+ - GS
27433
+ - GT
27434
+ - GU
27435
+ - GW
27436
+ - GY
27437
+ - HK
27438
+ - HM
27439
+ - HN
27440
+ - HR
27441
+ - HT
27442
+ - HU
27443
+ - ID
27444
+ - IE
27445
+ - IL
27446
+ - IM
27447
+ - IN
27448
+ - IO
27449
+ - IQ
27450
+ - IR
27451
+ - IS
27452
+ - IT
27453
+ - JE
27454
+ - JM
27455
+ - JO
27456
+ - JP
27457
+ - KE
27458
+ - KG
27459
+ - KH
27460
+ - KI
27461
+ - KM
27462
+ - KN
27463
+ - KP
27464
+ - KR
27465
+ - KW
27466
+ - KY
27467
+ - KZ
27468
+ - LA
27469
+ - LB
27470
+ - LC
27471
+ - LI
27472
+ - LK
27473
+ - LR
27474
+ - LS
27475
+ - LT
27476
+ - LU
27477
+ - LV
27478
+ - LY
27479
+ - MA
27480
+ - MC
27481
+ - MD
27482
+ - ME
27483
+ - MF
27484
+ - MG
27485
+ - MH
27486
+ - MK
27487
+ - ML
27488
+ - MM
27489
+ - MN
27490
+ - MO
27491
+ - MP
27492
+ - MQ
27493
+ - MR
27494
+ - MS
27495
+ - MT
27496
+ - MU
27497
+ - MV
27498
+ - MW
27499
+ - MX
27500
+ - MY
27501
+ - MZ
27502
+ - NA
27503
+ - NC
27504
+ - NE
27505
+ - NF
27506
+ - NG
27507
+ - NI
27508
+ - NL
27509
+ - NO
27510
+ - NP
27511
+ - NR
27512
+ - NU
27513
+ - NZ
27514
+ - OM
27515
+ - PA
27516
+ - PE
27517
+ - PF
27518
+ - PG
27519
+ - PH
27520
+ - PK
27521
+ - PL
27522
+ - PM
27523
+ - PN
27524
+ - PR
27525
+ - PS
27526
+ - PT
27527
+ - PW
27528
+ - PY
27529
+ - QA
27530
+ - RE
27531
+ - RO
27532
+ - RS
27533
+ - RU
27534
+ - RW
27535
+ - SA
27536
+ - SB
27537
+ - SC
27538
+ - SD
27539
+ - SE
27540
+ - SG
27541
+ - SH
27542
+ - SI
27543
+ - SJ
27544
+ - SK
27545
+ - SL
27546
+ - SM
27547
+ - SN
27548
+ - SO
27549
+ - SR
27550
+ - SS
27551
+ - ST
27552
+ - SV
27553
+ - SX
27554
+ - SY
27555
+ - SZ
27556
+ - TC
27557
+ - TD
27558
+ - TF
27559
+ - TG
27560
+ - TH
27561
+ - TJ
27562
+ - TK
27563
+ - TL
27564
+ - TM
27565
+ - TN
27566
+ - TO
27567
+ - TR
27568
+ - TT
27569
+ - TV
27570
+ - TW
27571
+ - TZ
27572
+ - UA
27573
+ - UG
27574
+ - UM
27575
+ - US
27576
+ - UY
27577
+ - UZ
27578
+ - VA
27579
+ - VC
27580
+ - VE
27581
+ - VG
27582
+ - VI
27583
+ - VN
27584
+ - VU
27585
+ - WF
27586
+ - WS
27587
+ - XK
27588
+ - YE
27589
+ - YT
27590
+ - ZA
27591
+ - ZM
27592
+ - ZW
27593
+ required:
27594
+ - countries
27595
+ additionalProperties: false
26520
27596
  SiteAdaptiveDeterministicJSONSchemaPrimitives:
26521
27597
  oneOf:
26522
27598
  - type: object
@@ -26615,10 +27691,12 @@ components:
26615
27691
  - properties
26616
27692
  - additionalProperties
26617
27693
  additionalProperties: false
26618
- SiteAdaptiveJSONSchema:
27694
+ SiteAdaptiveJSONSchemaWithRegions:
26619
27695
  type: object
26620
- description: JSON schema describing the expected attributes of an Adaptive site schema.
27696
+ description: JSON schema describing the expected attributes of an Adaptive site schema, with the regions `visitor.region` is resolved from.
26621
27697
  properties:
27698
+ regions:
27699
+ $ref: "#/components/schemas/SiteAdaptiveRegions"
26622
27700
  $schema:
26623
27701
  type: string
26624
27702
  enum:
@@ -26674,7 +27752,7 @@ components:
26674
27752
  enum:
26675
27753
  - site-adaptive-schema
26676
27754
  jsonSchema:
26677
- $ref: "#/components/schemas/SiteAdaptiveJSONSchema"
27755
+ $ref: "#/components/schemas/SiteAdaptiveJSONSchemaWithRegions"
26678
27756
  updatedAt:
26679
27757
  description: When the adaptive schema was updated.
26680
27758
  $ref: "#/components/schemas/Timestamp"
@@ -27459,6 +28537,168 @@ components:
27459
28537
  - structure
27460
28538
  - customizations
27461
28539
  - scripts
28540
+ SiteChangeRequestMemberStatus:
28541
+ type: string
28542
+ description: Whether the member is part of the change request, or a tombstone kept so that a member removed and later re-added keeps its identity, comments and history.
28543
+ enum:
28544
+ - active
28545
+ - removed
28546
+ SiteChangeRequestMember:
28547
+ type: object
28548
+ description: State shared by every resource changed by a site change request. Each resource is versioned independently; the change request reviews and merges them as one.
28549
+ properties:
28550
+ object:
28551
+ type: string
28552
+ enum:
28553
+ - site-change-request-member
28554
+ id:
28555
+ type: string
28556
+ description: Unique identifier for the member
28557
+ status:
28558
+ $ref: "#/components/schemas/SiteChangeRequestMemberStatus"
28559
+ createdAt:
28560
+ $ref: "#/components/schemas/Timestamp"
28561
+ updatedAt:
28562
+ $ref: "#/components/schemas/Timestamp"
28563
+ required:
28564
+ - object
28565
+ - id
28566
+ - status
28567
+ - createdAt
28568
+ - updatedAt
28569
+ SiteChangeRequestContentMember:
28570
+ allOf:
28571
+ - $ref: "#/components/schemas/SiteChangeRequestMember"
28572
+ - type: object
28573
+ description: Content of one space changed by a site change request.
28574
+ properties:
28575
+ space:
28576
+ type: string
28577
+ description: ID of the space whose content changes.
28578
+ baseRevisionId:
28579
+ type: string
28580
+ description: ID of the revision in the space's main content this member diverged from.
28581
+ headRevisionId:
28582
+ type: string
28583
+ description: ID of the revision currently proposed for the space.
28584
+ mergedRevisionId:
28585
+ type: string
28586
+ description: ID of the revision produced in the space's main content when this member was merged. Only present once the change request has been merged.
28587
+ required:
28588
+ - space
28589
+ - baseRevisionId
28590
+ - headRevisionId
28591
+ SiteChangeRequestStructureMember:
28592
+ allOf:
28593
+ - $ref: "#/components/schemas/SiteChangeRequestMember"
28594
+ - type: object
28595
+ description: "Structure of the site changed by a site change request: its space membership, sections, ordering and paths."
28596
+ properties:
28597
+ base:
28598
+ description: The live site structure this member diverged from.
28599
+ $ref: "#/components/schemas/SiteStructure"
28600
+ head:
28601
+ description: The site structure currently proposed.
28602
+ $ref: "#/components/schemas/SiteStructure"
28603
+ SiteChangeRequestCustomizationMember:
28604
+ allOf:
28605
+ - $ref: "#/components/schemas/SiteChangeRequestMember"
28606
+ - type: object
28607
+ description: Customization settings of the site changed by a site change request.
28608
+ properties:
28609
+ base:
28610
+ description: The live customization settings this member diverged from.
28611
+ $ref: "#/components/schemas/SiteCustomizationSettings"
28612
+ head:
28613
+ description: The customization settings currently proposed.
28614
+ $ref: "#/components/schemas/SiteCustomizationSettings"
28615
+ SiteChangeRequest:
28616
+ type: object
28617
+ description: A change request reviewing a site as a whole. It groups every proposed change — the site's structure and its content — into one review, one lifecycle and one merge decision.
28618
+ properties:
28619
+ object:
28620
+ type: string
28621
+ enum:
28622
+ - site-change-request
28623
+ id:
28624
+ type: string
28625
+ description: Unique identifier for the change request
28626
+ organization:
28627
+ type: string
28628
+ description: ID of the organization owning the change request.
28629
+ site:
28630
+ type: string
28631
+ description: ID of the site reviewed by the change request.
28632
+ number:
28633
+ type: number
28634
+ description: Incremental identifier of the change request within the site.
28635
+ version:
28636
+ type: number
28637
+ description: Identity of the complete set of member states currently exposed. It increments once per completed update, so a review can detect that it applies to outdated content.
28638
+ status:
28639
+ $ref: "#/components/schemas/ChangeRequestStatus"
28640
+ subject:
28641
+ $ref: "#/components/schemas/ChangeRequestSubject"
28642
+ description:
28643
+ $ref: "#/components/schemas/JSONDocument"
28644
+ links:
28645
+ $ref: "#/components/schemas/ChangeRequestLinks"
28646
+ content:
28647
+ type: array
28648
+ description: Spaces whose content the change request changes, one entry per space. Empty when it only changes the site itself.
28649
+ items:
28650
+ $ref: "#/components/schemas/SiteChangeRequestContentMember"
28651
+ structure:
28652
+ $ref: "#/components/schemas/SiteChangeRequestStructureMember"
28653
+ description: Only present when the change request changes the site structure.
28654
+ customization:
28655
+ $ref: "#/components/schemas/SiteChangeRequestCustomizationMember"
28656
+ description: Only present when the change request changes the site customization settings.
28657
+ comments:
28658
+ type: number
28659
+ description: Count of opened comments across all members of the change request.
28660
+ createdBy:
28661
+ $ref: "#/components/schemas/User"
28662
+ createdAt:
28663
+ $ref: "#/components/schemas/Timestamp"
28664
+ updatedAt:
28665
+ $ref: "#/components/schemas/Timestamp"
28666
+ mergedBy:
28667
+ $ref: "#/components/schemas/User"
28668
+ description: User who merged the change request. Only present when it has been merged.
28669
+ mergedAt:
28670
+ $ref: "#/components/schemas/Timestamp"
28671
+ description: Date at which the change request was merged. Only present when it has been merged.
28672
+ urls:
28673
+ type: object
28674
+ description: URLs associated with the object
28675
+ properties:
28676
+ app:
28677
+ type: string
28678
+ description: URL of the change request in the application
28679
+ format: uri
28680
+ location:
28681
+ type: string
28682
+ description: URL of the change request in the API
28683
+ format: uri
28684
+ required:
28685
+ - app
28686
+ - location
28687
+ required:
28688
+ - object
28689
+ - id
28690
+ - organization
28691
+ - site
28692
+ - number
28693
+ - version
28694
+ - status
28695
+ - subject
28696
+ - content
28697
+ - comments
28698
+ - createdBy
28699
+ - createdAt
28700
+ - updatedAt
28701
+ - urls
27462
28702
  ShareLinkName:
27463
28703
  type: string
27464
28704
  description: Name of the share link
@@ -28204,8 +29444,9 @@ components:
28204
29444
  - updatedAt
28205
29445
  - severity
28206
29446
  - sources
29447
+ - suggestedFix
28207
29448
  default: updatedAt
28208
- description: The field to sort site findings by. `updatedAt` returns the most recently updated findings first. `severity` returns the most severe findings first. `sources` returns the findings with the most linked sources (questions plus records) first. Defaults to 'updatedAt'.
29449
+ description: "The field to sort site findings by. `updatedAt` returns the most recently updated findings first. `severity` returns the most severe findings first. `sources` returns the findings with the most linked sources (questions plus records) first. `suggestedFix` is for link findings: those that come with a fix (a suggested redirect, or an outbound link to correct) come before broken URLs the audit found no page for, most severe first within each group. Other finding types sort with the second group. Defaults to 'updatedAt'."
28209
29450
  SiteFindingTitle:
28210
29451
  type: string
28211
29452
  description: Short finding title
@@ -28234,7 +29475,7 @@ components:
28234
29475
  - path
28235
29476
  SiteFindingBrokenLinkAction:
28236
29477
  type: object
28237
- description: 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 applicable redirect (for example, a suggestion to create a new page).
29478
+ description: "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 applicable redirect (for example, a suggestion to create a new page). The destination is absent when the audit judged the URL and found no page to redirect to: a redirect can still be created from the source with a destination of your choosing."
28238
29479
  properties:
28239
29480
  source:
28240
29481
  $ref: "#/components/schemas/SiteRedirectSourcePath"
@@ -28245,7 +29486,6 @@ components:
28245
29486
  $ref: "#/components/schemas/SiteRedirectInputDestinationPath"
28246
29487
  required:
28247
29488
  - source
28248
- - destination
28249
29489
  SiteFindingOutboundLink:
28250
29490
  type: object
28251
29491
  description: "Details of an `outbound-link-error` finding: the failing external URL and the observed failure, sourced from the site's outbound link checks. Absent on findings of any other type."
@@ -28585,6 +29825,19 @@ components:
28585
29825
  description: 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 contributed at least one piece of evidence to it, so the counts can add up to more than the total.
28586
29826
  additionalProperties:
28587
29827
  type: number
29828
+ SiteFindingStatsBrokenLinks:
29829
+ type: object
29830
+ description: Breakdown of the broken-link findings included in the aggregation.
29831
+ properties:
29832
+ redirectSuggested:
29833
+ type: number
29834
+ description: Broken URLs the audit found a page to redirect to.
29835
+ noMatchingPage:
29836
+ type: number
29837
+ description: Broken URLs the audit judged and found no page to redirect to.
29838
+ required:
29839
+ - redirectSuggested
29840
+ - noMatchingPage
28588
29841
  SiteFindingStats:
28589
29842
  type: object
28590
29843
  description: Aggregated stats for the findings identified on a site.
@@ -28598,6 +29851,8 @@ components:
28598
29851
  $ref: "#/components/schemas/SiteFindingStatsSeverities"
28599
29852
  connectors:
28600
29853
  $ref: "#/components/schemas/SiteFindingStatsConnectors"
29854
+ brokenLinks:
29855
+ $ref: "#/components/schemas/SiteFindingStatsBrokenLinks"
28601
29856
  questions:
28602
29857
  type: number
28603
29858
  description: Count of findings with at least one piece of evidence coming from a site question.
@@ -28609,6 +29864,7 @@ components:
28609
29864
  - statuses
28610
29865
  - severities
28611
29866
  - connectors
29867
+ - brokenLinks
28612
29868
  - questions
28613
29869
  - mergedChangeRequests
28614
29870
  ContextConnectionLabel:
@@ -28628,6 +29884,7 @@ components:
28628
29884
  - syncing
28629
29885
  - succeeded
28630
29886
  - failed
29887
+ - skipped
28631
29888
  ContextConnectionFailureReason:
28632
29889
  type: string
28633
29890
  description: Why a synchronization failed, indicating who can resolve it. `authentication` and `misconfigured` need the connection to be reconfigured; `rate_limited` and `upstream_unavailable` are the source's own limits or downtime and are retried; `unknown` could not be attributed to the source's response.
@@ -28637,6 +29894,25 @@ components:
28637
29894
  - rate_limited
28638
29895
  - upstream_unavailable
28639
29896
  - unknown
29897
+ AISkipReason:
29898
+ type: string
29899
+ description: |-
29900
+ Why an AI task was skipped before execution.
29901
+
29902
+ - `ai_unavailable_for_organization`: The organization's effective plan does not include AI or a
29903
+ required feature. Takes precedence when both the organization and site plans block the task.
29904
+ - `ai_unavailable_for_site`: The site's effective plan does not include the required feature.
29905
+ The site's applied plan takes precedence over its own plan.
29906
+ - `ai_paused`: AI usage is temporarily paused by automatic usage controls.
29907
+ - `ai_disabled`: AI or a required AI feature has been turned off in the organization's settings.
29908
+ - `ai_restricted`: AI is blocked by GitBook or a contractual restriction and cannot be enabled
29909
+ through organization settings.
29910
+ enum:
29911
+ - ai_unavailable_for_organization
29912
+ - ai_unavailable_for_site
29913
+ - ai_disabled
29914
+ - ai_restricted
29915
+ - ai_paused
28640
29916
  ContextSearchBoost:
28641
29917
  type: string
28642
29918
  description: Relative score adjustment applied to records from a connection when searching.
@@ -28970,6 +30246,15 @@ components:
28970
30246
  minLength: 1
28971
30247
  maxLength: 1024
28972
30248
  description: Atlassian API token used for outbound writes. Redacted when read back.
30249
+ projectKeys:
30250
+ type: array
30251
+ maxItems: 100
30252
+ uniqueItems: true
30253
+ description: Projects where GitBook handles issues. Empty means all accessible projects.
30254
+ items:
30255
+ type: string
30256
+ minLength: 1
30257
+ maxLength: 255
28973
30258
  statusMapping:
28974
30259
  type: object
28975
30260
  description: '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.'
@@ -29015,6 +30300,8 @@ components:
29015
30300
  description: Failure message when synchronization fails
29016
30301
  failureReason:
29017
30302
  $ref: "#/components/schemas/ContextConnectionFailureReason"
30303
+ skipReason:
30304
+ $ref: "#/components/schemas/AISkipReason"
29018
30305
  email:
29019
30306
  type: object
29020
30307
  description: Parameters associated with the connection when it is an email connection
@@ -29500,6 +30787,9 @@ components:
29500
30787
  revisionId:
29501
30788
  type: string
29502
30789
  description: The revision ID of the result
30790
+ path:
30791
+ type: string
30792
+ description: The path of the page within its space, as the published site serves it.
29503
30793
  anchor:
29504
30794
  type: string
29505
30795
  description: The anchor of the result
@@ -30112,6 +31402,41 @@ components:
30112
31402
  - status
30113
31403
  - importedPages
30114
31404
  - totalPages
31405
+ AIToolCallStartBackgroundAgent:
31406
+ type: object
31407
+ description: |
31408
+ 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 started it. The client renders its live status from `AgentState.backgroundAgents`, matched on `agentId`, and can open the child conversation to read what it did.
31409
+ properties:
31410
+ tool:
31411
+ type: string
31412
+ enum:
31413
+ - startBackgroundAgent
31414
+ agentId:
31415
+ type: string
31416
+ description: Identifier of the background agent within the conversation that started it.
31417
+ conversationId:
31418
+ type: string
31419
+ description: |
31420
+ The child conversation holding the background agent's transcript. It can only be read, never continued.
31421
+ title:
31422
+ type: string
31423
+ description: |
31424
+ A few words naming what the background agent is doing, for a tab and a line of a transcript. The task itself is a brief and far too long to label anything with.
31425
+ task:
31426
+ type: string
31427
+ description: The task the background agent was given.
31428
+ pages:
31429
+ type: array
31430
+ description: |
31431
+ IDs of the pages the background agent owns, when it was started to change content. Two background agents of the same conversation never own the same page.
31432
+ items:
31433
+ type: string
31434
+ required:
31435
+ - tool
31436
+ - agentId
31437
+ - conversationId
31438
+ - title
31439
+ - task
30115
31440
  AIToolCallMCP:
30116
31441
  type: object
30117
31442
  description: Tool called from an MCP server
@@ -30189,6 +31514,7 @@ components:
30189
31514
  - $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
30190
31515
  - $ref: "#/components/schemas/AIToolCallStartContentImport"
30191
31516
  - $ref: "#/components/schemas/AIToolCallCheckContentImport"
31517
+ - $ref: "#/components/schemas/AIToolCallStartBackgroundAgent"
30192
31518
  - $ref: "#/components/schemas/AIToolCallMCP"
30193
31519
  - $ref: "#/components/schemas/AIToolCallOther"
30194
31520
  AIMessageStepPhase:
@@ -30406,6 +31732,20 @@ components:
30406
31732
  - type
30407
31733
  - spaceId
30408
31734
  - changeRequestId
31735
+ - type: object
31736
+ description: |
31737
+ When the agent is a background agent running one task for the conversation that started it.
31738
+ properties:
31739
+ type:
31740
+ type: string
31741
+ enum:
31742
+ - background_agent
31743
+ parentConversationId:
31744
+ type: string
31745
+ description: The conversation that started this background agent.
31746
+ required:
31747
+ - type
31748
+ - parentConversationId
30409
31749
  AIMessageResponseMetadata:
30410
31750
  description: The response that generated this message.
30411
31751
  type: object
@@ -31165,6 +32505,11 @@ components:
31165
32505
  url:
31166
32506
  description: URL of the location.
31167
32507
  $ref: "#/components/schemas/URL"
32508
+ previousUrl:
32509
+ description: URL of the page of the site the visitor was on before this one, if any. Unlike the session referrer, it follows navigation within the site. Only recorded when it has the same origin as `url`; any other value is discarded.
32510
+ oneOf:
32511
+ - type: "null"
32512
+ - $ref: "#/components/schemas/URL"
31168
32513
  displayContext:
31169
32514
  description: Whether the event was tracked on the site, the server, or an embed widget.
31170
32515
  $ref: "#/components/schemas/SiteInsightsDisplayContext"
@@ -31394,8 +32739,38 @@ components:
31394
32739
  type: string
31395
32740
  enum:
31396
32741
  - ask_view
32742
+ trigger:
32743
+ type: string
32744
+ enum:
32745
+ - hover
32746
+ - selection
32747
+ - site
32748
+ - page
32749
+ - code
32750
+ - embed
31397
32751
  required:
31398
32752
  - type
32753
+ SiteInsightsEventAskTriggerClick:
32754
+ description: Event when a user clicks an entry point that opens the ask UI.
32755
+ allOf:
32756
+ - $ref: "#/components/schemas/SiteInsightsEventBase"
32757
+ - type: object
32758
+ properties:
32759
+ type:
32760
+ type: string
32761
+ enum:
32762
+ - ask_trigger_click
32763
+ trigger:
32764
+ type: string
32765
+ enum:
32766
+ - hover
32767
+ - selection
32768
+ - site
32769
+ - page
32770
+ - code
32771
+ required:
32772
+ - type
32773
+ - trigger
31399
32774
  SiteInsightsEventAskRateResponse:
31400
32775
  allOf:
31401
32776
  - $ref: "#/components/schemas/SiteInsightsEventBase"
@@ -31599,6 +32974,7 @@ components:
31599
32974
  - $ref: "#/components/schemas/SiteInsightsEventAgentFeedback"
31600
32975
  - $ref: "#/components/schemas/SiteInsightsEventAskQuestion"
31601
32976
  - $ref: "#/components/schemas/SiteInsightsEventAskView"
32977
+ - $ref: "#/components/schemas/SiteInsightsEventAskTriggerClick"
31602
32978
  - $ref: "#/components/schemas/SiteInsightsEventAskRateResponse"
31603
32979
  - $ref: "#/components/schemas/SiteInsightsEventLinkClick"
31604
32980
  - $ref: "#/components/schemas/SiteInsightsEventAPIClientOpen"
@@ -31907,6 +33283,10 @@ components:
31907
33283
  enum:
31908
33284
  - eventAskResponseRating
31909
33285
  - type: object
33286
+ description: |
33287
+ How a page was rated, counted once per rating a reader submitted rather than once per
33288
+ event: rating a page and then commenting on it records two events carrying the same
33289
+ rating, and a reader may rate a page again on a later visit.
31910
33290
  required:
31911
33291
  - column
31912
33292
  properties:
@@ -31938,6 +33318,15 @@ components:
31938
33318
  type: string
31939
33319
  enum:
31940
33320
  - referrerDomain
33321
+ - type: object
33322
+ description: Path of the page of the site the visitor was on before the event, without the origin, share-link prefix, query string or fragment. Empty when the visitor came from another origin, or for events tracked before it was recorded.
33323
+ required:
33324
+ - column
33325
+ properties:
33326
+ column:
33327
+ type: string
33328
+ enum:
33329
+ - previousUrl
31941
33330
  - type: object
31942
33331
  required:
31943
33332
  - column
@@ -32043,6 +33432,7 @@ components:
32043
33432
  - agent_feedback
32044
33433
  - ask_question
32045
33434
  - ask_view
33435
+ - ask_trigger_click
32046
33436
  - ask_rate_response
32047
33437
  - link_click
32048
33438
  - api_client_open
@@ -32120,6 +33510,14 @@ components:
32120
33510
  - duckassist
32121
33511
  - amzn-searchbot
32122
33512
  - amzn-user
33513
+ - other-bot
33514
+ - parallel
33515
+ - exa
33516
+ - linkup
33517
+ - vertex-ai
33518
+ - atlassian
33519
+ - kapa
33520
+ - bedrock
32123
33521
  SiteInsightsPageNotFoundType:
32124
33522
  description: Why a site URL returned a 404. `conditional` means the URL targets content gated by an adaptive-content condition, so the visitor lacked access to a page that exists. Computed by GitBook when the event is ingested; 404s recorded before this existed, and those on genuinely missing pages, carry no value.
32125
33523
  type: string
@@ -32655,6 +34053,9 @@ components:
32655
34053
  - string
32656
34054
  - "null"
32657
34055
  - type: object
34056
+ description: |
34057
+ Ratings submitted on a page, counted once per rating a reader submitted rather than once
34058
+ per event.
32658
34059
  required:
32659
34060
  - column
32660
34061
  - values
@@ -32764,6 +34165,19 @@ components:
32764
34165
  type: array
32765
34166
  items:
32766
34167
  type: string
34168
+ - type: object
34169
+ required:
34170
+ - column
34171
+ - values
34172
+ properties:
34173
+ column:
34174
+ type: string
34175
+ enum:
34176
+ - previousUrl
34177
+ values:
34178
+ type: array
34179
+ items:
34180
+ type: string
32767
34181
  - type: object
32768
34182
  required:
32769
34183
  - column
@@ -32887,6 +34301,7 @@ components:
32887
34301
  SiteInsightsQueryRangePreset:
32888
34302
  type: string
32889
34303
  enum:
34304
+ - yearToDate
32890
34305
  - lastYear
32891
34306
  - last3Months
32892
34307
  - last30Days
@@ -33711,11 +35126,11 @@ components:
33711
35126
  type: integer
33712
35127
  minimum: 0
33713
35128
  description: Current numeric billing override, when set.
33714
- OrganizationBillingPercentageOverride:
35129
+ Percentage:
33715
35130
  type: number
33716
35131
  minimum: 0
33717
35132
  maximum: 100
33718
- description: Current percentage billing override, when set.
35133
+ description: A percentage from 0 to 100.
33719
35134
  OrganizationBillingOverrides:
33720
35135
  type: object
33721
35136
  properties:
@@ -33733,10 +35148,18 @@ components:
33733
35148
  $ref: "#/components/schemas/OrganizationBillingNumericOverride"
33734
35149
  aiCreditRollover:
33735
35150
  description: Percentage of remaining paid AI credits carried into the next billing period. Paid self-serve organizations default to 50% when unset.
33736
- $ref: "#/components/schemas/OrganizationBillingPercentageOverride"
35151
+ $ref: "#/components/schemas/Percentage"
33737
35152
  aiCreditAlertThreshold:
33738
35153
  description: Percentage of total AI credits remaining at which to send a low-balance alert.
33739
- $ref: "#/components/schemas/OrganizationBillingPercentageOverride"
35154
+ $ref: "#/components/schemas/Percentage"
35155
+ aiCreditPauseEnabled:
35156
+ description: Whether AI features pause automatically once all AI credits are used, before usage is billed as overage.
35157
+ type: boolean
35158
+ hasAI:
35159
+ description: False when the organization's contract requires AI to stay off, regardless of the admin setting.
35160
+ type: boolean
35161
+ enum:
35162
+ - false
33740
35163
  minUsers:
33741
35164
  description: Current minimum users override, when set.
33742
35165
  $ref: "#/components/schemas/OrganizationBillingNumericOverride"
@@ -33757,6 +35180,11 @@ components:
33757
35180
  $ref: "#/components/schemas/OrganizationBillingNumericOverride"
33758
35181
  required:
33759
35182
  - overrides
35183
+ PercentageThreshold:
35184
+ description: A percentage threshold, or null when disabled.
35185
+ oneOf:
35186
+ - $ref: "#/components/schemas/Percentage"
35187
+ - type: "null"
33760
35188
  BackOfficeSite:
33761
35189
  allOf:
33762
35190
  - $ref: "#/components/schemas/Site"
@@ -33882,6 +35310,9 @@ components:
33882
35310
  jwtToken:
33883
35311
  type: string
33884
35312
  description: JWT token generated for a authenticated access session.
35313
+ country:
35314
+ type: string
35315
+ description: ISO 3166-1 alpha-2 code of the country the visitor is browsing from, as detected by the renderer.
33885
35316
  unsignedClaims:
33886
35317
  $ref: "#/components/schemas/PlainObject"
33887
35318
  GitSyncGitHubRepository:
@@ -34082,6 +35513,7 @@ components:
34082
35513
  description: Predefined GitBook user identifiers
34083
35514
  enum:
34084
35515
  - gitbook:agent
35516
+ - gitbook:gitsync
34085
35517
  ContentLocationRevisionContext:
34086
35518
  type: object
34087
35519
  required:
@@ -34393,6 +35825,11 @@ components:
34393
35825
  type: string
34394
35826
  maxLength: 300
34395
35827
  minLength: 0
35828
+ tagTitle:
35829
+ description: Optional custom title overriding only the page-title segment of the composed `<title>` tag (`<tagTitle || title> | <section> | <site>`).
35830
+ type: string
35831
+ maxLength: 100
35832
+ minLength: 0
34396
35833
  slug:
34397
35834
  description: Page's slug in its direct parent
34398
35835
  type: string
@@ -35140,6 +36577,9 @@ components:
35140
36577
  - human
35141
36578
  - agent
35142
36579
  description: Whether the visitor, for which the token was generated, is a human or an AI agent. Defaults to human when omitted.
36580
+ visitorRegion:
36581
+ type: string
36582
+ description: The region containing the country of the visitor for whom the token was generated. Omitted if the country isn't in any region.
35143
36583
  claims:
35144
36584
  type: object
35145
36585
  description: Attributes or assertions that provide specific details about the visitor for which the token was generated.
@@ -36332,6 +37772,57 @@ components:
36332
37772
  enum:
36333
37773
  - light
36334
37774
  - dark
37775
+ SiteAdaptiveJSONSchema:
37776
+ type: object
37777
+ description: JSON schema describing the expected attributes of an Adaptive site schema.
37778
+ properties:
37779
+ $schema:
37780
+ type: string
37781
+ enum:
37782
+ - http://json-schema.org/draft-07/schema#
37783
+ type:
37784
+ type: string
37785
+ enum:
37786
+ - object
37787
+ properties:
37788
+ type: object
37789
+ properties:
37790
+ unsigned:
37791
+ type: object
37792
+ description: Unsigned claims of the site visitor.
37793
+ properties:
37794
+ type:
37795
+ type: string
37796
+ enum:
37797
+ - object
37798
+ description:
37799
+ type: string
37800
+ enum:
37801
+ - Unsigned claims of the site visitor.
37802
+ properties:
37803
+ type: object
37804
+ additionalProperties:
37805
+ $ref: "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
37806
+ additionalProperties:
37807
+ type: boolean
37808
+ enum:
37809
+ - false
37810
+ required:
37811
+ - type
37812
+ - description
37813
+ - properties
37814
+ - additionalProperties
37815
+ additionalProperties:
37816
+ $ref: "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
37817
+ additionalProperties:
37818
+ type: boolean
37819
+ enum:
37820
+ - false
37821
+ required:
37822
+ - type
37823
+ - properties
37824
+ - additionalProperties
37825
+ additionalProperties: false
36335
37826
  SiteAdaptiveDeterministicJSONSchemaClaimsProperties:
36336
37827
  oneOf:
36337
37828
  - $ref: "#/components/schemas/SiteAdaptiveDeterministicJSONSchemaPrimitives"
@@ -36537,6 +38028,53 @@ components:
36537
38028
  - read-only
36538
38029
  - current-page
36539
38030
  - modified-pages
38031
+ AgentBackgroundAgentStatus:
38032
+ type: string
38033
+ description: |
38034
+ What became of a background agent.
38035
+ `running` while it works, `completed` when it reported its result, `failed` when it crashed without recovering or its request was refused, and `stopped` when someone stopped it.
38036
+ enum:
38037
+ - running
38038
+ - completed
38039
+ - failed
38040
+ - stopped
38041
+ AgentBackgroundAgent:
38042
+ type: object
38043
+ description: |
38044
+ A background agent of the conversation: a child running one task on its own. Carries what a client shows about it and nothing of what it produced — the report it writes goes to the agent that started it, and its transcript is read by opening its conversation.
38045
+ properties:
38046
+ id:
38047
+ type: string
38048
+ description: Identifier of the background agent within the conversation that started it.
38049
+ conversationId:
38050
+ type: string
38051
+ description: The child conversation holding its transcript, which can only be read.
38052
+ title:
38053
+ type: string
38054
+ description: A few words naming what it is doing, for a tab and a line of a transcript.
38055
+ task:
38056
+ type: string
38057
+ description: The task it was given.
38058
+ status:
38059
+ $ref: "#/components/schemas/AgentBackgroundAgentStatus"
38060
+ startedAt:
38061
+ type: string
38062
+ format: date-time
38063
+ description: When it was started.
38064
+ finishedAt:
38065
+ type: string
38066
+ format: date-time
38067
+ description: When it stopped running. Absent while it still runs.
38068
+ error:
38069
+ type: string
38070
+ description: Why it failed, when it did.
38071
+ required:
38072
+ - id
38073
+ - conversationId
38074
+ - title
38075
+ - task
38076
+ - status
38077
+ - startedAt
36540
38078
  AgentState:
36541
38079
  type: object
36542
38080
  properties:
@@ -36575,6 +38113,12 @@ components:
36575
38113
  $ref: "#/components/schemas/AgentEditScope"
36576
38114
  description: |
36577
38115
  How far this conversation should reach when it changes content.
38116
+ backgroundAgents:
38117
+ type: array
38118
+ description: |
38119
+ The background agents this conversation has started, oldest first. Present on every state event so a client can render each one's live status against the tool call that started it.
38120
+ items:
38121
+ $ref: "#/components/schemas/AgentBackgroundAgent"
36578
38122
  consultOnly:
36579
38123
  type: boolean
36580
38124
  description: |