@gitbook/api 0.201.0 → 0.203.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
@@ -5093,6 +5156,7 @@ paths:
5093
5156
  /orgs/{organizationId}/members:
5094
5157
  get:
5095
5158
  operationId: listMembersInOrganizationById
5159
+ x-gitbook-mcp: true
5096
5160
  summary: List all organization members
5097
5161
  tags:
5098
5162
  - organization-members
@@ -5127,6 +5191,7 @@ paths:
5127
5191
  /orgs/{organizationId}/members/{userId}:
5128
5192
  get:
5129
5193
  operationId: getMemberInOrganizationById
5194
+ x-gitbook-mcp: true
5130
5195
  summary: Get an organization member by its ID
5131
5196
  tags:
5132
5197
  - organization-members
@@ -5213,6 +5278,28 @@ paths:
5213
5278
  gitbookVisitorClaims:
5214
5279
  description: A JTW token containing the claims to attach to this user.
5215
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"
5216
5303
  /orgs/{organizationId}/members/{userId}/sso:
5217
5304
  post:
5218
5305
  operationId: setUserAsSSOMemberForOrganization
@@ -5266,6 +5353,7 @@ paths:
5266
5353
  /orgs/{organizationId}/members/{userId}/teams:
5267
5354
  get:
5268
5355
  operationId: listTeamsForOrganizationMember
5356
+ x-gitbook-mcp: true
5269
5357
  summary: List all organization member teams
5270
5358
  tags:
5271
5359
  - organization-members
@@ -5310,6 +5398,7 @@ paths:
5310
5398
  /orgs/{organizationId}/teams:
5311
5399
  get:
5312
5400
  operationId: listTeamsInOrganizationById
5401
+ x-gitbook-mcp: true
5313
5402
  summary: List all teams
5314
5403
  tags:
5315
5404
  - teams
@@ -5474,6 +5563,7 @@ paths:
5474
5563
  description: Members have been updated
5475
5564
  get:
5476
5565
  operationId: listTeamMembersInOrganizationById
5566
+ x-gitbook-mcp: true
5477
5567
  summary: List all team members
5478
5568
  description: |
5479
5569
  Lists members, and their roles, for the specified organization team.
@@ -5769,6 +5859,46 @@ paths:
5769
5859
  "404":
5770
5860
  description: Organization not found
5771
5861
  $ref: "#/components/responses/NotFoundError"
5862
+ /orgs/{organizationId}/billing/ai-usage:
5863
+ get:
5864
+ operationId: getOrganizationAIUsage
5865
+ summary: Get AI credit usage by AI feature and time period
5866
+ description: |
5867
+ Returns recorded AI usage for an organization. Calendar buckets use UTC;
5868
+ weeks start on Monday. Requires organization administrator permissions.
5869
+ x-gitbook-mcp: true
5870
+ tags:
5871
+ - billing
5872
+ security:
5873
+ - user: []
5874
+ parameters:
5875
+ - $ref: "#/components/parameters/organizationId"
5876
+ - name: from
5877
+ in: query
5878
+ required: true
5879
+ description: Inclusive start timestamp. Cannot be older than two years from now.
5880
+ schema:
5881
+ type: string
5882
+ format: date-time
5883
+ - name: to
5884
+ in: query
5885
+ required: true
5886
+ description: Exclusive end timestamp.
5887
+ schema:
5888
+ type: string
5889
+ format: date-time
5890
+ - name: interval
5891
+ in: query
5892
+ description: Calendar interval used to aggregate usage.
5893
+ schema:
5894
+ $ref: "#/components/schemas/AIUsageInterval"
5895
+ responses:
5896
+ "200":
5897
+ description: AI usage, including empty periods in the requested range.
5898
+ content:
5899
+ application/json:
5900
+ schema:
5901
+ $ref: "#/components/schemas/OrganizationAIUsage"
5772
5902
  /orgs/{organizationId}/search:
5773
5903
  get:
5774
5904
  operationId: searchOrganizationContent
@@ -7532,7 +7662,7 @@ paths:
7532
7662
  get:
7533
7663
  operationId: listSites
7534
7664
  summary: List all documentation sites in an organization
7535
- 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.
7536
7666
  x-gitbook-mcp: true
7537
7667
  tags:
7538
7668
  - sites
@@ -7637,7 +7767,7 @@ paths:
7637
7767
  get:
7638
7768
  operationId: getSiteById
7639
7769
  summary: Get a documentation site by its ID
7640
- 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.
7641
7771
  x-gitbook-mcp: true
7642
7772
  tags:
7643
7773
  - sites
@@ -7812,8 +7942,8 @@ paths:
7812
7942
  type: object
7813
7943
  properties:
7814
7944
  jsonSchema:
7815
- description: The JSON schema to set on the site.
7816
- $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"
7817
7947
  required:
7818
7948
  - jsonSchema
7819
7949
  responses:
@@ -7900,7 +8030,12 @@ paths:
7900
8030
  application/json:
7901
8031
  schema:
7902
8032
  oneOf:
7903
- - $ref: "#/components/schemas/Site"
8033
+ - allOf:
8034
+ - $ref: "#/components/schemas/Site"
8035
+ - type: object
8036
+ properties:
8037
+ subscriptionNotice:
8038
+ $ref: "#/components/schemas/SubscriptionNotice"
7904
8039
  - type: object
7905
8040
  description: User needs to checkout in order to publish the site.
7906
8041
  properties:
@@ -7911,6 +8046,8 @@ paths:
7911
8046
  sessionId:
7912
8047
  type: string
7913
8048
  description: Stripe payment session ID
8049
+ subscriptionNotice:
8050
+ $ref: "#/components/schemas/SubscriptionNotice"
7914
8051
  required:
7915
8052
  - type
7916
8053
  - sessionId
@@ -7936,6 +8073,220 @@ paths:
7936
8073
  application/json:
7937
8074
  schema:
7938
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"
7939
8290
  /orgs/{organizationId}/sites/{siteId}/share-links:
7940
8291
  get:
7941
8292
  operationId: listSiteShareLinks
@@ -8068,7 +8419,7 @@ paths:
8068
8419
  get:
8069
8420
  operationId: getSiteStructure
8070
8421
  summary: Get the full navigation structure of a site
8071
- 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.
8072
8423
  x-gitbook-mcp: true
8073
8424
  tags:
8074
8425
  - site-structure
@@ -8245,6 +8596,11 @@ paths:
8245
8596
  description: Rison encoded string of attributes/assertions about the visitor for which we want to preview the site.
8246
8597
  schema:
8247
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
8248
8604
  - name: draft
8249
8605
  in: query
8250
8606
  description: Whether to include draft content in the preview. Defaults to true
@@ -8321,7 +8677,12 @@ paths:
8321
8677
  content:
8322
8678
  application/json:
8323
8679
  schema:
8324
- $ref: "#/components/schemas/SiteCustomizationSettings"
8680
+ allOf:
8681
+ - $ref: "#/components/schemas/SiteCustomizationSettings"
8682
+ - type: object
8683
+ properties:
8684
+ subscriptionNotice:
8685
+ $ref: "#/components/schemas/SubscriptionNotice"
8325
8686
  "400":
8326
8687
  $ref: "#/components/responses/BadRequestError"
8327
8688
  /orgs/{organizationId}/sites/{siteId}/integration-scripts:
@@ -8453,7 +8814,7 @@ paths:
8453
8814
  get:
8454
8815
  operationId: listSiteSpaces
8455
8816
  summary: List all spaces linked to a site as content sources
8456
- 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.
8457
8818
  x-gitbook-mcp: true
8458
8819
  tags:
8459
8820
  - site-spaces
@@ -8573,7 +8934,12 @@ paths:
8573
8934
  content:
8574
8935
  application/json:
8575
8936
  schema:
8576
- $ref: "#/components/schemas/SiteSectionGroup"
8937
+ allOf:
8938
+ - $ref: "#/components/schemas/SiteSectionGroup"
8939
+ - type: object
8940
+ properties:
8941
+ subscriptionNotice:
8942
+ $ref: "#/components/schemas/SubscriptionNotice"
8577
8943
  /orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}:
8578
8944
  patch:
8579
8945
  operationId: updateSiteSectionGroupById
@@ -8707,7 +9073,12 @@ paths:
8707
9073
  content:
8708
9074
  application/json:
8709
9075
  schema:
8710
- $ref: "#/components/schemas/SiteSection"
9076
+ allOf:
9077
+ - $ref: "#/components/schemas/SiteSection"
9078
+ - type: object
9079
+ properties:
9080
+ subscriptionNotice:
9081
+ $ref: "#/components/schemas/SubscriptionNotice"
8711
9082
  get:
8712
9083
  operationId: listSiteSections
8713
9084
  summary: List all navigation sections in a site
@@ -9456,7 +9827,7 @@ paths:
9456
9827
  get:
9457
9828
  operationId: listSiteFindings
9458
9829
  summary: List documentation issues GitBook has found on a site
9459
- 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."
9460
9831
  x-gitbook-mcp: true
9461
9832
  tags:
9462
9833
  - site-context
@@ -9491,6 +9862,11 @@ paths:
9491
9862
  type: array
9492
9863
  items:
9493
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
9494
9870
  - name: severity
9495
9871
  in: query
9496
9872
  description: Filter findings by estimated severity.
@@ -11490,7 +11866,7 @@ paths:
11490
11866
  post:
11491
11867
  operationId: createSiteStyleguideRun
11492
11868
  summary: Start a style guide check run for a site
11493
- description: "Starts a style guide check: GitBook Agent reviews the given spaces against the site's style guide and proposes fixes. One draft change request is opened per space, each marked as belonging to the returned run. Fails if the site has no style guide."
11869
+ description: "Starts a style guide check: GitBook Agent reviews the given spaces against the site's style guide and proposes fixes. A space with no check open gets a new draft change request marked as belonging to the returned run; one whose check is still open has it taken over instead, so it stays marked with the run that opened it. Fails if the site has no style guide."
11494
11870
  x-gitbook-mcp: true
11495
11871
  tags:
11496
11872
  - sites
@@ -11529,7 +11905,7 @@ paths:
11529
11905
  $ref: "#/components/schemas/SiteStyleguideRun"
11530
11906
  changeRequests:
11531
11907
  type: array
11532
- description: The change requests opened by the run, one per space that could be started.
11908
+ description: "The change request each space's check runs in: opened by this run, or already open and taken over. One per space that could be started."
11533
11909
  items:
11534
11910
  $ref: "#/components/schemas/ChangeRequest"
11535
11911
  required:
@@ -11598,7 +11974,7 @@ paths:
11598
11974
  post:
11599
11975
  operationId: aggregateSiteEvents
11600
11976
  summary: Query a site's analytics events
11601
- description: Runs an aggregation query over a published site's Insights events, grouped and filtered over a time range. Use it to answer analytics questions about how visitors engage with a site's documentation.
11977
+ description: "Runs an aggregation query over a published site's Insights events, grouped and filtered over a time range. Use it to answer analytics questions about how visitors engage with a site's documentation: page views, visitors, searches, referrers, and broken URLs (404s). A 404 is a `page_view` or `search_open_result` event whose `page` is `null`, in the `site` display context; filter `eventPageNotFoundType` not in `conditional` to leave out 404s that adaptive content explains. Group by `datetime` for a trend over time and by `urlPath` for the top broken URLs."
11602
11978
  x-gitbook-mcp: true
11603
11979
  security:
11604
11980
  - user: []
@@ -11701,6 +12077,9 @@ paths:
11701
12077
  schema:
11702
12078
  type: object
11703
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.
11704
12083
  source:
11705
12084
  $ref: "#/components/schemas/SiteRedirectSourcePath"
11706
12085
  captureWildcard:
@@ -12285,6 +12664,141 @@ paths:
12285
12664
  application/json:
12286
12665
  schema:
12287
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"
12288
12802
  /orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}:
12289
12803
  get:
12290
12804
  operationId: getSiteChannelById
@@ -12344,6 +12858,7 @@ paths:
12344
12858
  delete:
12345
12859
  operationId: deleteSiteChannelById
12346
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.
12347
12862
  tags:
12348
12863
  - site-channels
12349
12864
  security:
@@ -13570,6 +14085,13 @@ components:
13570
14085
  description: The unique id of the import run
13571
14086
  schema:
13572
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"
13573
14095
  shareLinkId:
13574
14096
  name: shareLinkId
13575
14097
  in: path
@@ -14139,6 +14661,9 @@ components:
14139
14661
  url:
14140
14662
  type: string
14141
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.
14142
14667
  operation:
14143
14668
  type: object
14144
14669
  description: The latest operation on the Git Sync installation.
@@ -14170,6 +14695,15 @@ components:
14170
14695
  - installationId
14171
14696
  - installationProvider
14172
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.
14173
14707
  ContentImportSource:
14174
14708
  oneOf:
14175
14709
  - type: object
@@ -14433,6 +14967,8 @@ components:
14433
14967
  $ref: "#/components/schemas/TranslationLanguage"
14434
14968
  gitSync:
14435
14969
  $ref: "#/components/schemas/GitSyncState"
14970
+ previousGitSync:
14971
+ $ref: "#/components/schemas/PreviousGitSyncState"
14436
14972
  imports:
14437
14973
  description: |
14438
14974
  Import runs targeting this space, still running or ended recently, most recent first. Only returned when fetching a single space.
@@ -17076,6 +17612,9 @@ components:
17076
17612
  type: string
17077
17613
  icon:
17078
17614
  $ref: "#/components/schemas/Icon"
17615
+ slug:
17616
+ description: Stable identifier for this tab's selection, shared with every tab and button targeting the same slug. It is slugified before matching, so casing and spacing need not be exact. Omit it — or send an empty value, which counts as omitted — to derive one from the title, which is what makes same-named tabs across a site select together. A value that slugifies to nothing, such as emoji alone, also falls back to the title.
17617
+ type: string
17079
17618
  meta:
17080
17619
  type: object
17081
17620
  properties:
@@ -18250,6 +18789,9 @@ components:
18250
18789
  actions:
18251
18790
  type: boolean
18252
18791
  description: Should the page actions be visible on the page?
18792
+ anchors:
18793
+ type: boolean
18794
+ description: Should the anchor links on headings and other linkable blocks be visible?
18253
18795
  required:
18254
18796
  - width
18255
18797
  - cover
@@ -18263,6 +18805,7 @@ components:
18263
18805
  - metadata
18264
18806
  - tags
18265
18807
  - actions
18808
+ - anchors
18266
18809
  RevisionPageDocumentCoverTextColor:
18267
18810
  type: string
18268
18811
  enum:
@@ -18733,6 +19276,7 @@ components:
18733
19276
  type: string
18734
19277
  enum:
18735
19278
  - jira
19279
+ - linear
18736
19280
  state:
18737
19281
  type: string
18738
19282
  enum:
@@ -18776,6 +19320,7 @@ components:
18776
19320
  type: string
18777
19321
  enum:
18778
19322
  - jira
19323
+ - linear
18779
19324
  state:
18780
19325
  type: string
18781
19326
  enum:
@@ -18792,11 +19337,16 @@ components:
18792
19337
  id:
18793
19338
  type: string
18794
19339
  description: The ID of the link.
19340
+ isSyncing:
19341
+ type: boolean
19342
+ readOnly: true
19343
+ description: Whether this link owns synchronization with the external issue. Other links are references only.
18795
19344
  expanded:
18796
19345
  $ref: "#/components/schemas/ChangeRequestLinkExpanded"
18797
19346
  readOnly: true
18798
19347
  required:
18799
19348
  - id
19349
+ - isSyncing
18800
19350
  ChangeRequestLinks:
18801
19351
  type: array
18802
19352
  description: External links associated with the change request.
@@ -18855,7 +19405,7 @@ components:
18855
19405
  description: Count of opened comments on the change request.
18856
19406
  siteTopic:
18857
19407
  type: object
18858
- description: Site context associated with the change request when it was created from a site topic or finding.
19408
+ description: Site topic the change request was created from, when it came from one.
18859
19409
  properties:
18860
19410
  site:
18861
19411
  type: string
@@ -18865,13 +19415,28 @@ components:
18865
19415
  description: ID of the site topic associated with the change request.
18866
19416
  finding:
18867
19417
  type: string
18868
- description: ID of the site finding associated with the change request, when applicable.
19418
+ deprecated: true
19419
+ 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."
18869
19420
  required:
18870
19421
  - site
18871
19422
  - topic
19423
+ siteFinding:
19424
+ type: object
19425
+ 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.
19426
+ properties:
19427
+ site:
19428
+ type: string
19429
+ description: ID of the site the finding belongs to.
19430
+ finding:
19431
+ type: string
19432
+ description: ID of the site finding the change request fixes.
19433
+ required:
19434
+ - site
19435
+ - finding
18872
19436
  styleguide:
18873
19437
  type: object
18874
- description: Style guide check run that opened the change request, when it came from one.
19438
+ description: |
19439
+ Style guide check that opened the change request, when it came from one. A check can be run again on the change request already open on a space, rather than opening a second one, so several checks can share a change request.
18875
19440
  properties:
18876
19441
  site:
18877
19442
  type: string
@@ -18883,6 +19448,10 @@ components:
18883
19448
  type: number
18884
19449
  description: |
18885
19450
  Number of pages the check changed, recorded when it finished. Absent while it is still running, or when it never completed.
19451
+ checkedAt:
19452
+ $ref: "#/components/schemas/Timestamp"
19453
+ description: |
19454
+ When the most recent style guide check on the change request finished. Later edits from anyone else do not move it. Absent while the first one is still running.
18886
19455
  required:
18887
19456
  - site
18888
19457
  - run
@@ -19278,6 +19847,16 @@ components:
19278
19847
  - createdAt
19279
19848
  - updatedAt
19280
19849
  - urls
19850
+ ChangeRequestReviewStats:
19851
+ type: object
19852
+ 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.
19853
+ propertyNames:
19854
+ $ref: "#/components/schemas/ChangeRequestReviewStatus"
19855
+ additionalProperties:
19856
+ type: number
19857
+ required:
19858
+ - approved
19859
+ - changes-requested
19281
19860
  Team:
19282
19861
  type: object
19283
19862
  properties:
@@ -20561,6 +21140,69 @@ components:
20561
21140
  description: The default content for the organization
20562
21141
  oneOf:
20563
21142
  - $ref: "#/components/schemas/SitePointer"
21143
+ AICreditThreshold:
21144
+ description: An AI credit threshold from 5% to 50%, or null when disabled.
21145
+ oneOf:
21146
+ - type: number
21147
+ minimum: 5
21148
+ maximum: 50
21149
+ - type: "null"
21150
+ OrganizationAISettings:
21151
+ type: object
21152
+ description: AI preferences and automatic pause status. Missing feature keys leave features enabled, subject to the master AI setting and feature eligibility.
21153
+ additionalProperties: false
21154
+ properties:
21155
+ aiPaused:
21156
+ type: boolean
21157
+ readOnly: true
21158
+ description: Whether AI features are automatically paused because credits are low.
21159
+ ai-agent:
21160
+ type: boolean
21161
+ enum:
21162
+ - false
21163
+ ai-assistant:
21164
+ type: boolean
21165
+ enum:
21166
+ - false
21167
+ ai-broken-links:
21168
+ type: boolean
21169
+ enum:
21170
+ - false
21171
+ ai-content-gap:
21172
+ type: boolean
21173
+ enum:
21174
+ - false
21175
+ ai-insight:
21176
+ type: boolean
21177
+ enum:
21178
+ - false
21179
+ ai-import:
21180
+ type: boolean
21181
+ enum:
21182
+ - false
21183
+ ai-platform:
21184
+ type: boolean
21185
+ enum:
21186
+ - false
21187
+ ai-style-guide:
21188
+ type: boolean
21189
+ enum:
21190
+ - false
21191
+ ai-translation:
21192
+ type: boolean
21193
+ enum:
21194
+ - false
21195
+ aiCreditAlertThreshold:
21196
+ $ref: "#/components/schemas/AICreditThreshold"
21197
+ aiCreditPauseEnabled:
21198
+ description: Whether AI features pause automatically once all AI credits are used, before usage is billed as overage.
21199
+ type: boolean
21200
+ aiAlertNotificationAlertId:
21201
+ type: string
21202
+ readOnly: true
21203
+ aiPauseNotificationAlertId:
21204
+ type: string
21205
+ readOnly: true
20564
21206
  BillingProduct:
20565
21207
  type: string
20566
21208
  description: Name of the product
@@ -20638,10 +21280,10 @@ components:
20638
21280
  description: The AI credit bundle to top up every month
20639
21281
  enum:
20640
21282
  - none
20641
- - 13500_1500
20642
- - 24000_6000
20643
- - 42000_18000
20644
- - 60000_40000
21283
+ - 4750_250
21284
+ - 9000_1000
21285
+ - 12750_2250
21286
+ - 30000_10000
20645
21287
  OrganizationBilling:
20646
21288
  type: object
20647
21289
  properties:
@@ -20708,13 +21350,16 @@ components:
20708
21350
  oneOf:
20709
21351
  - $ref: "#/components/schemas/BillingCreditsBundle"
20710
21352
  - type: "null"
20711
- aiCreditAlertThreshold:
20712
- description: Percentage of total AI credits remaining at which to send a low-balance alert, or null when the alert is disabled.
21353
+ aiCreditAllowance:
21354
+ description: The yearly AI credit allowance agreed in the organization's contract, or null when none is set.
20713
21355
  oneOf:
20714
- - type: number
20715
- minimum: 0
20716
- maximum: 100
21356
+ - type: integer
20717
21357
  - type: "null"
21358
+ aiCreditRollover:
21359
+ description: The percentage of unused paid bundle credits carried over to the next monthly AI billing period.
21360
+ type: integer
21361
+ minimum: 0
21362
+ maximum: 100
20718
21363
  required:
20719
21364
  - interval
20720
21365
  - endDate
@@ -20726,7 +21371,39 @@ components:
20726
21371
  - canChangeInterval
20727
21372
  - canUseSAML
20728
21373
  - creditsBundle
20729
- - aiCreditAlertThreshold
21374
+ - aiCreditAllowance
21375
+ - aiCreditRollover
21376
+ OrganizationSupportCost:
21377
+ 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.
21378
+ oneOf:
21379
+ - type: object
21380
+ additionalProperties: false
21381
+ properties:
21382
+ perTicket:
21383
+ type: number
21384
+ minimum: 0.01
21385
+ description: Cost of one support ticket, in `currency`.
21386
+ currency:
21387
+ type: string
21388
+ pattern: ^[A-Z]{3}$
21389
+ description: ISO 4217 currency code.
21390
+ required:
21391
+ - perTicket
21392
+ - currency
21393
+ - type: object
21394
+ additionalProperties: false
21395
+ properties:
21396
+ perHour:
21397
+ type: number
21398
+ minimum: 0.01
21399
+ description: Cost of one hour of support agent time, in `currency`.
21400
+ currency:
21401
+ type: string
21402
+ pattern: ^[A-Z]{3}$
21403
+ description: ISO 4217 currency code.
21404
+ required:
21405
+ - perHour
21406
+ - currency
20730
21407
  BillingTrialStatus:
20731
21408
  type: string
20732
21409
  description: |
@@ -20784,6 +21461,8 @@ components:
20784
21461
  ai:
20785
21462
  description: If true, the organization is configured to use all our AI features.
20786
21463
  type: boolean
21464
+ aiSettings:
21465
+ $ref: "#/components/schemas/OrganizationAISettings"
20787
21466
  inviteLinks:
20788
21467
  description: If true, invite links are enabled for this organization.
20789
21468
  type: boolean
@@ -20797,6 +21476,9 @@ components:
20797
21476
  $ref: "#/components/schemas/OrganizationBilling"
20798
21477
  mergeRules:
20799
21478
  $ref: "#/components/schemas/MergeRulesStandaloneConfiguration"
21479
+ supportCost:
21480
+ description: Support cost set by the organization, only available for org members.
21481
+ $ref: "#/components/schemas/OrganizationSupportCost"
20800
21482
  urls:
20801
21483
  type: object
20802
21484
  description: URLs associated with the object
@@ -22375,6 +23057,7 @@ components:
22375
23057
  - sites-sections
22376
23058
  - sites-seo
22377
23059
  - sites-share-links
23060
+ - sites-style-guide
22378
23061
  - sites-unlisted-visibility
22379
23062
  - sites-user-contribution
22380
23063
  - sites-visitor-authentication
@@ -23498,6 +24181,101 @@ components:
23498
24181
  $ref: "#/components/schemas/SiteOnboardingPreferences"
23499
24182
  required:
23500
24183
  - title
24184
+ SubscriptionTrial:
24185
+ type: object
24186
+ description: The current or last trial of an organization.
24187
+ properties:
24188
+ status:
24189
+ $ref: "#/components/schemas/BillingTrialStatus"
24190
+ endDate:
24191
+ description: When the trial ends, or ended.
24192
+ $ref: "#/components/schemas/Timestamp"
24193
+ daysRemaining:
24194
+ type: integer
24195
+ description: Days left in the trial, rounded up, so 1 is its last day. 0 once it has ended.
24196
+ required:
24197
+ - status
24198
+ - endDate
24199
+ - daysRemaining
24200
+ SubscriptionNotice:
24201
+ type: object
24202
+ description: |
24203
+ 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.
24204
+ properties:
24205
+ type:
24206
+ type: string
24207
+ description: |
24208
+ - 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.
24209
+ enum:
24210
+ - trial_started
24211
+ - trial_countdown
24212
+ - checkout_required
24213
+ context:
24214
+ type: string
24215
+ description: What the user was doing when the notice was given.
24216
+ enum:
24217
+ - trial_started
24218
+ - site_publishing
24219
+ - site_features
24220
+ - site_customization
24221
+ commercialStatus:
24222
+ type: string
24223
+ description: Whether the organization is on a trial, the free plan, or a paid plan.
24224
+ enum:
24225
+ - trial
24226
+ - free
24227
+ - paid
24228
+ message:
24229
+ type: string
24230
+ description: Message to show the user. For users who cannot upgrade, it asks them to reach out to an administrator of the organization.
24231
+ trial:
24232
+ $ref: "#/components/schemas/SubscriptionTrial"
24233
+ canManageBilling:
24234
+ type: boolean
24235
+ description: Whether the user is an administrator of the organization, and so can upgrade. Otherwise, they have to ask an administrator to upgrade.
24236
+ upgradeUrl:
24237
+ description: Where to upgrade in the application. Only set when `canManageBilling` is true.
24238
+ $ref: "#/components/schemas/URL"
24239
+ pricingUrl:
24240
+ description: Public page comparing the GitBook plans.
24241
+ $ref: "#/components/schemas/URL"
24242
+ required:
24243
+ - type
24244
+ - context
24245
+ - commercialStatus
24246
+ - message
24247
+ - canManageBilling
24248
+ - pricingUrl
24249
+ OptOutUpdate:
24250
+ description: Set false to disable, or null to remove the opt-out. Omit to leave unchanged.
24251
+ oneOf:
24252
+ - type: boolean
24253
+ enum:
24254
+ - false
24255
+ - type: "null"
24256
+ OrganizationAISettingsUpdate:
24257
+ type: object
24258
+ description: Partial AI preference update. Omitted keys are unchanged; null removes an opt-out.
24259
+ additionalProperties: false
24260
+ properties:
24261
+ ai-agent:
24262
+ $ref: "#/components/schemas/OptOutUpdate"
24263
+ ai-assistant:
24264
+ $ref: "#/components/schemas/OptOutUpdate"
24265
+ ai-broken-links:
24266
+ $ref: "#/components/schemas/OptOutUpdate"
24267
+ ai-content-gap:
24268
+ $ref: "#/components/schemas/OptOutUpdate"
24269
+ ai-insight:
24270
+ $ref: "#/components/schemas/OptOutUpdate"
24271
+ ai-import:
24272
+ $ref: "#/components/schemas/OptOutUpdate"
24273
+ ai-platform:
24274
+ $ref: "#/components/schemas/OptOutUpdate"
24275
+ ai-style-guide:
24276
+ $ref: "#/components/schemas/OptOutUpdate"
24277
+ ai-translation:
24278
+ $ref: "#/components/schemas/OptOutUpdate"
23501
24279
  SiteSectionTitle:
23502
24280
  type: string
23503
24281
  description: Title of the site section
@@ -23854,6 +24632,18 @@ components:
23854
24632
  label:
23855
24633
  type: string
23856
24634
  description: Display label captured when the event was recorded.
24635
+ impersonator:
24636
+ type: object
24637
+ 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.
24638
+ properties:
24639
+ id:
24640
+ type: string
24641
+ description: Stable ID of the impersonating staff member.
24642
+ label:
24643
+ type: string
24644
+ description: Staff display name captured when the event was recorded, if available.
24645
+ required:
24646
+ - id
23857
24647
  required:
23858
24648
  - type
23859
24649
  - id
@@ -24002,6 +24792,52 @@ components:
24002
24792
  $ref: "#/components/schemas/StyleguideTemplate"
24003
24793
  required:
24004
24794
  - templates
24795
+ OrganizationSubscription:
24796
+ type: object
24797
+ description: An organization's subscription, as needed to tell a user their plan, trial and how to upgrade.
24798
+ properties:
24799
+ object:
24800
+ type: string
24801
+ description: Type of Object, always equals to "organization-subscription"
24802
+ enum:
24803
+ - organization-subscription
24804
+ status:
24805
+ type: string
24806
+ description: Whether the organization is on a trial, the free plan, or a paid plan.
24807
+ enum:
24808
+ - trial
24809
+ - free
24810
+ - paid
24811
+ plan:
24812
+ type: object
24813
+ description: The plan in effect, which is the trial's plan while trialing.
24814
+ properties:
24815
+ id:
24816
+ $ref: "#/components/schemas/BillingProduct"
24817
+ title:
24818
+ type: string
24819
+ description: Name of the plan shown to users, e.g. Pro.
24820
+ required:
24821
+ - id
24822
+ - title
24823
+ trial:
24824
+ description: The current or last trial. Absent when the organization never had one.
24825
+ $ref: "#/components/schemas/SubscriptionTrial"
24826
+ canManageBilling:
24827
+ type: boolean
24828
+ description: Whether the user is an administrator of the organization, and so can upgrade. Otherwise, they have to ask an administrator to upgrade.
24829
+ upgradeUrl:
24830
+ description: Where to upgrade in the application. Only set when `canManageBilling` is true.
24831
+ $ref: "#/components/schemas/URL"
24832
+ pricingUrl:
24833
+ description: Public page comparing the GitBook plans.
24834
+ $ref: "#/components/schemas/URL"
24835
+ required:
24836
+ - object
24837
+ - status
24838
+ - plan
24839
+ - canManageBilling
24840
+ - pricingUrl
24005
24841
  MemberContentPermission:
24006
24842
  type: object
24007
24843
  description: Permission of a member in a content.
@@ -24580,14 +25416,18 @@ components:
24580
25416
  properties:
24581
25417
  type:
24582
25418
  type: string
24583
- 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.
25419
+ 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.
24584
25420
  enum:
24585
25421
  - paid
24586
25422
  - bonus
24587
25423
  - site
24588
25424
  - rollover
25425
+ - custom
25426
+ priority:
25427
+ type: number
25428
+ description: Stripe spending priority. Lower values are consumed first.
24589
25429
  grantedCredits:
24590
- description: Credits the grant was created with.
25430
+ description: Credits available from this grant before the current invoice usage.
24591
25431
  type: number
24592
25432
  usedCredits:
24593
25433
  description: Credits of the grant spent by the usage metered so far.
@@ -24643,7 +25483,7 @@ components:
24643
25483
  description: The credits the organization pays for.
24644
25484
  $ref: "#/components/schemas/BillingCreditsTotals"
24645
25485
  free:
24646
- description: The credits included at no extra cost, from the bundle, sites and rollover.
25486
+ description: The bonus, site and custom credits.
24647
25487
  $ref: "#/components/schemas/BillingCreditsTotals"
24648
25488
  bundle:
24649
25489
  description: The credits of the monthly bundle, both paid and bonus.
@@ -24728,6 +25568,109 @@ components:
24728
25568
  - remainingCustomerBalance
24729
25569
  - lines
24730
25570
  - summary
25571
+ credits:
25572
+ type: object
25573
+ description: The AI credits of the current billing period, grouped the ways the billing screens display them.
25574
+ properties:
25575
+ grantedCredits:
25576
+ description: Credits granted across every grant.
25577
+ type: number
25578
+ usedCredits:
25579
+ description: Credits spent by the usage metered so far.
25580
+ type: number
25581
+ remainingCredits:
25582
+ description: Credits still available across every grant.
25583
+ type: number
25584
+ coveredAmount:
25585
+ description: Part of the metered AI usage paid by credits rather than billed, as a positive amount.
25586
+ type: number
25587
+ paid:
25588
+ description: The credits the organization pays for.
25589
+ $ref: "#/components/schemas/BillingCreditsTotals"
25590
+ free:
25591
+ description: The bonus, site and custom credits.
25592
+ $ref: "#/components/schemas/BillingCreditsTotals"
25593
+ bundle:
25594
+ description: The credits of the monthly bundle, both paid and bonus.
25595
+ $ref: "#/components/schemas/BillingCreditsTotals"
25596
+ required:
25597
+ - grantedCredits
25598
+ - usedCredits
25599
+ - remainingCredits
25600
+ - coveredAmount
25601
+ - paid
25602
+ - free
25603
+ - bundle
25604
+ creditGrants:
25605
+ type: array
25606
+ description: AI credits available for the current AI billing period. Empty when the organization is not billed for AI usage.
25607
+ items:
25608
+ type: object
25609
+ description: AI credits granted to the organization for the current AI billing period.
25610
+ properties:
25611
+ type:
25612
+ type: string
25613
+ 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.
25614
+ enum:
25615
+ - paid
25616
+ - bonus
25617
+ - site
25618
+ - rollover
25619
+ - custom
25620
+ priority:
25621
+ type: number
25622
+ description: Stripe spending priority. Lower values are consumed first.
25623
+ grantedCredits:
25624
+ description: Credits available from this grant before the current invoice usage.
25625
+ type: number
25626
+ usedCredits:
25627
+ description: Credits of the grant spent by the usage metered so far.
25628
+ type: number
25629
+ remainingCredits:
25630
+ description: Credits of the grant still available.
25631
+ type: number
25632
+ sites:
25633
+ description: For a `site` grant, the published sites the credits come from.
25634
+ type: array
25635
+ items:
25636
+ type: object
25637
+ description: The published sites of one type that the grant comes from.
25638
+ properties:
25639
+ siteType:
25640
+ $ref: "#/components/schemas/SiteType"
25641
+ count:
25642
+ description: How many sites of this type are published.
25643
+ type: number
25644
+ creditsPerSite:
25645
+ description: Credits included with one site of this type.
25646
+ type: number
25647
+ grantedCredits:
25648
+ description: Credits these sites contribute to the grant.
25649
+ type: number
25650
+ required:
25651
+ - siteType
25652
+ - count
25653
+ - creditsPerSite
25654
+ - grantedCredits
25655
+ required:
25656
+ - type
25657
+ - grantedCredits
25658
+ - usedCredits
25659
+ - remainingCredits
25660
+ BillingCreditBalance:
25661
+ type: object
25662
+ description: Credit balance after an accepted bundle change, including grants pending webhook synchronization.
25663
+ properties:
25664
+ creditsBundle:
25665
+ $ref: "#/components/schemas/BillingCreditsBundle"
25666
+ credits:
25667
+ $ref: "#/components/schemas/credits"
25668
+ creditGrants:
25669
+ $ref: "#/components/schemas/creditGrants"
25670
+ required:
25671
+ - creditsBundle
25672
+ - credits
25673
+ - creditGrants
24731
25674
  BillingUpgrade:
24732
25675
  oneOf:
24733
25676
  - type: object
@@ -24759,6 +25702,8 @@ components:
24759
25702
  type: string
24760
25703
  enum:
24761
25704
  - upgraded
25705
+ creditBalance:
25706
+ $ref: "#/components/schemas/BillingCreditBalance"
24762
25707
  required:
24763
25708
  - result
24764
25709
  - type: object
@@ -24857,6 +25802,64 @@ components:
24857
25802
  - upgrade_passive
24858
25803
  - downgrade
24859
25804
  - switch_interval
25805
+ AIUsageInterval:
25806
+ type: string
25807
+ description: UTC calendar interval for AI usage, with weeks starting on Monday.
25808
+ enum:
25809
+ - day
25810
+ - week
25811
+ - month
25812
+ - year
25813
+ default: day
25814
+ OrganizationAIUsage:
25815
+ type: object
25816
+ required:
25817
+ - periods
25818
+ - from
25819
+ - to
25820
+ properties:
25821
+ from:
25822
+ type: string
25823
+ format: date-time
25824
+ description: Inclusive start of the queried range.
25825
+ to:
25826
+ type: string
25827
+ format: date-time
25828
+ description: Exclusive end of the queried range, capped at the current instant.
25829
+ periods:
25830
+ type: array
25831
+ description: Chronological calendar buckets. Edge buckets include only the requested dates.
25832
+ items:
25833
+ type: object
25834
+ required:
25835
+ - date
25836
+ - credits
25837
+ - features
25838
+ properties:
25839
+ date:
25840
+ type: string
25841
+ format: date
25842
+ description: UTC date at the start of this calendar bucket.
25843
+ credits:
25844
+ type: number
25845
+ description: Total credits used in this bucket.
25846
+ features:
25847
+ type: array
25848
+ items:
25849
+ type: object
25850
+ required:
25851
+ - feature
25852
+ - credits
25853
+ - creditsPercent
25854
+ properties:
25855
+ feature:
25856
+ type: string
25857
+ description: AI feature category with recorded credit usage.
25858
+ credits:
25859
+ type: number
25860
+ creditsPercent:
25861
+ type: number
25862
+ description: Percentage of this bucket's total credits (0 to 100).
24860
25863
  BillingMeterUsage:
24861
25864
  type: object
24862
25865
  description: Usage metrics for a billing meter
@@ -24886,6 +25889,7 @@ components:
24886
25889
  description: An organization feature used for plan access and upgrade prompts.
24887
25890
  enum:
24888
25891
  - max-members
25892
+ - ai
24889
25893
  - ai-lens
24890
25894
  - pdf-export
24891
25895
  - ai-writing
@@ -25309,6 +26313,9 @@ components:
25309
26313
  space:
25310
26314
  type: string
25311
26315
  description: The space ID owning the page.
26316
+ title:
26317
+ type: string
26318
+ description: The title of the page, as of `revision`.
25312
26319
  sections:
25313
26320
  type: array
25314
26321
  items:
@@ -25319,6 +26326,7 @@ components:
25319
26326
  - page
25320
26327
  - revision
25321
26328
  - space
26329
+ - title
25322
26330
  - sections
25323
26331
  SearchAIAnswerSourceRecord:
25324
26332
  type: object
@@ -25685,7 +26693,7 @@ components:
25685
26693
  description: Total number of times the translation has been run
25686
26694
  totalWords:
25687
26695
  type: integer
25688
- description: Total number of words translated
26696
+ description: Total number of words counted toward translation usage over all runs
25689
26697
  totalPages:
25690
26698
  type: integer
25691
26699
  description: Total number of unique pages translated
@@ -25700,7 +26708,7 @@ components:
25700
26708
  description: Number of unique pages translated in the latest run
25701
26709
  latestWords:
25702
26710
  type: integer
25703
- description: Number of words translated in the latest run
26711
+ description: Number of words counted toward translation usage in the latest run
25704
26712
  required:
25705
26713
  - runs
25706
26714
  - totalWords
@@ -26301,6 +27309,274 @@ components:
26301
27309
  - createdBy
26302
27310
  - updatedAt
26303
27311
  - urls
27312
+ SiteAdaptiveRegions:
27313
+ type: object
27314
+ 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.
27315
+ maxProperties: 10
27316
+ propertyNames:
27317
+ pattern: ^[a-zA-Z0-9_-]+$
27318
+ additionalProperties:
27319
+ type: object
27320
+ properties:
27321
+ countries:
27322
+ type: array
27323
+ description: ISO 3166-1 alpha-2 codes of the countries in the region.
27324
+ items:
27325
+ type: string
27326
+ enum:
27327
+ - AD
27328
+ - AE
27329
+ - AF
27330
+ - AG
27331
+ - AI
27332
+ - AL
27333
+ - AM
27334
+ - AO
27335
+ - AQ
27336
+ - AR
27337
+ - AS
27338
+ - AT
27339
+ - AU
27340
+ - AW
27341
+ - AX
27342
+ - AZ
27343
+ - BA
27344
+ - BB
27345
+ - BD
27346
+ - BE
27347
+ - BF
27348
+ - BG
27349
+ - BH
27350
+ - BI
27351
+ - BJ
27352
+ - BL
27353
+ - BM
27354
+ - BN
27355
+ - BO
27356
+ - BQ
27357
+ - BR
27358
+ - BS
27359
+ - BT
27360
+ - BV
27361
+ - BW
27362
+ - BY
27363
+ - BZ
27364
+ - CA
27365
+ - CC
27366
+ - CD
27367
+ - CF
27368
+ - CG
27369
+ - CH
27370
+ - CI
27371
+ - CK
27372
+ - CL
27373
+ - CM
27374
+ - CN
27375
+ - CO
27376
+ - CR
27377
+ - CU
27378
+ - CV
27379
+ - CW
27380
+ - CX
27381
+ - CY
27382
+ - CZ
27383
+ - DE
27384
+ - DJ
27385
+ - DK
27386
+ - DM
27387
+ - DO
27388
+ - DZ
27389
+ - EC
27390
+ - EE
27391
+ - EG
27392
+ - EH
27393
+ - ER
27394
+ - ES
27395
+ - ET
27396
+ - FI
27397
+ - FJ
27398
+ - FK
27399
+ - FM
27400
+ - FO
27401
+ - FR
27402
+ - GA
27403
+ - GB
27404
+ - GD
27405
+ - GE
27406
+ - GF
27407
+ - GG
27408
+ - GH
27409
+ - GI
27410
+ - GL
27411
+ - GM
27412
+ - GN
27413
+ - GP
27414
+ - GQ
27415
+ - GR
27416
+ - GS
27417
+ - GT
27418
+ - GU
27419
+ - GW
27420
+ - GY
27421
+ - HK
27422
+ - HM
27423
+ - HN
27424
+ - HR
27425
+ - HT
27426
+ - HU
27427
+ - ID
27428
+ - IE
27429
+ - IL
27430
+ - IM
27431
+ - IN
27432
+ - IO
27433
+ - IQ
27434
+ - IR
27435
+ - IS
27436
+ - IT
27437
+ - JE
27438
+ - JM
27439
+ - JO
27440
+ - JP
27441
+ - KE
27442
+ - KG
27443
+ - KH
27444
+ - KI
27445
+ - KM
27446
+ - KN
27447
+ - KP
27448
+ - KR
27449
+ - KW
27450
+ - KY
27451
+ - KZ
27452
+ - LA
27453
+ - LB
27454
+ - LC
27455
+ - LI
27456
+ - LK
27457
+ - LR
27458
+ - LS
27459
+ - LT
27460
+ - LU
27461
+ - LV
27462
+ - LY
27463
+ - MA
27464
+ - MC
27465
+ - MD
27466
+ - ME
27467
+ - MF
27468
+ - MG
27469
+ - MH
27470
+ - MK
27471
+ - ML
27472
+ - MM
27473
+ - MN
27474
+ - MO
27475
+ - MP
27476
+ - MQ
27477
+ - MR
27478
+ - MS
27479
+ - MT
27480
+ - MU
27481
+ - MV
27482
+ - MW
27483
+ - MX
27484
+ - MY
27485
+ - MZ
27486
+ - NA
27487
+ - NC
27488
+ - NE
27489
+ - NF
27490
+ - NG
27491
+ - NI
27492
+ - NL
27493
+ - NO
27494
+ - NP
27495
+ - NR
27496
+ - NU
27497
+ - NZ
27498
+ - OM
27499
+ - PA
27500
+ - PE
27501
+ - PF
27502
+ - PG
27503
+ - PH
27504
+ - PK
27505
+ - PL
27506
+ - PM
27507
+ - PN
27508
+ - PR
27509
+ - PS
27510
+ - PT
27511
+ - PW
27512
+ - PY
27513
+ - QA
27514
+ - RE
27515
+ - RO
27516
+ - RS
27517
+ - RU
27518
+ - RW
27519
+ - SA
27520
+ - SB
27521
+ - SC
27522
+ - SD
27523
+ - SE
27524
+ - SG
27525
+ - SH
27526
+ - SI
27527
+ - SJ
27528
+ - SK
27529
+ - SL
27530
+ - SM
27531
+ - SN
27532
+ - SO
27533
+ - SR
27534
+ - SS
27535
+ - ST
27536
+ - SV
27537
+ - SX
27538
+ - SY
27539
+ - SZ
27540
+ - TC
27541
+ - TD
27542
+ - TF
27543
+ - TG
27544
+ - TH
27545
+ - TJ
27546
+ - TK
27547
+ - TL
27548
+ - TM
27549
+ - TN
27550
+ - TO
27551
+ - TR
27552
+ - TT
27553
+ - TV
27554
+ - TW
27555
+ - TZ
27556
+ - UA
27557
+ - UG
27558
+ - UM
27559
+ - US
27560
+ - UY
27561
+ - UZ
27562
+ - VA
27563
+ - VC
27564
+ - VE
27565
+ - VG
27566
+ - VI
27567
+ - VN
27568
+ - VU
27569
+ - WF
27570
+ - WS
27571
+ - XK
27572
+ - YE
27573
+ - YT
27574
+ - ZA
27575
+ - ZM
27576
+ - ZW
27577
+ required:
27578
+ - countries
27579
+ additionalProperties: false
26304
27580
  SiteAdaptiveDeterministicJSONSchemaPrimitives:
26305
27581
  oneOf:
26306
27582
  - type: object
@@ -26399,10 +27675,12 @@ components:
26399
27675
  - properties
26400
27676
  - additionalProperties
26401
27677
  additionalProperties: false
26402
- SiteAdaptiveJSONSchema:
27678
+ SiteAdaptiveJSONSchemaWithRegions:
26403
27679
  type: object
26404
- description: JSON schema describing the expected attributes of an Adaptive site schema.
27680
+ description: JSON schema describing the expected attributes of an Adaptive site schema, with the regions `visitor.region` is resolved from.
26405
27681
  properties:
27682
+ regions:
27683
+ $ref: "#/components/schemas/SiteAdaptiveRegions"
26406
27684
  $schema:
26407
27685
  type: string
26408
27686
  enum:
@@ -26458,7 +27736,7 @@ components:
26458
27736
  enum:
26459
27737
  - site-adaptive-schema
26460
27738
  jsonSchema:
26461
- $ref: "#/components/schemas/SiteAdaptiveJSONSchema"
27739
+ $ref: "#/components/schemas/SiteAdaptiveJSONSchemaWithRegions"
26462
27740
  updatedAt:
26463
27741
  description: When the adaptive schema was updated.
26464
27742
  $ref: "#/components/schemas/Timestamp"
@@ -27243,6 +28521,168 @@ components:
27243
28521
  - structure
27244
28522
  - customizations
27245
28523
  - scripts
28524
+ SiteChangeRequestMemberStatus:
28525
+ type: string
28526
+ 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.
28527
+ enum:
28528
+ - active
28529
+ - removed
28530
+ SiteChangeRequestMember:
28531
+ type: object
28532
+ 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.
28533
+ properties:
28534
+ object:
28535
+ type: string
28536
+ enum:
28537
+ - site-change-request-member
28538
+ id:
28539
+ type: string
28540
+ description: Unique identifier for the member
28541
+ status:
28542
+ $ref: "#/components/schemas/SiteChangeRequestMemberStatus"
28543
+ createdAt:
28544
+ $ref: "#/components/schemas/Timestamp"
28545
+ updatedAt:
28546
+ $ref: "#/components/schemas/Timestamp"
28547
+ required:
28548
+ - object
28549
+ - id
28550
+ - status
28551
+ - createdAt
28552
+ - updatedAt
28553
+ SiteChangeRequestContentMember:
28554
+ allOf:
28555
+ - $ref: "#/components/schemas/SiteChangeRequestMember"
28556
+ - type: object
28557
+ description: Content of one space changed by a site change request.
28558
+ properties:
28559
+ space:
28560
+ type: string
28561
+ description: ID of the space whose content changes.
28562
+ baseRevisionId:
28563
+ type: string
28564
+ description: ID of the revision in the space's main content this member diverged from.
28565
+ headRevisionId:
28566
+ type: string
28567
+ description: ID of the revision currently proposed for the space.
28568
+ mergedRevisionId:
28569
+ type: string
28570
+ 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.
28571
+ required:
28572
+ - space
28573
+ - baseRevisionId
28574
+ - headRevisionId
28575
+ SiteChangeRequestStructureMember:
28576
+ allOf:
28577
+ - $ref: "#/components/schemas/SiteChangeRequestMember"
28578
+ - type: object
28579
+ description: "Structure of the site changed by a site change request: its space membership, sections, ordering and paths."
28580
+ properties:
28581
+ base:
28582
+ description: The live site structure this member diverged from.
28583
+ $ref: "#/components/schemas/SiteStructure"
28584
+ head:
28585
+ description: The site structure currently proposed.
28586
+ $ref: "#/components/schemas/SiteStructure"
28587
+ SiteChangeRequestCustomizationMember:
28588
+ allOf:
28589
+ - $ref: "#/components/schemas/SiteChangeRequestMember"
28590
+ - type: object
28591
+ description: Customization settings of the site changed by a site change request.
28592
+ properties:
28593
+ base:
28594
+ description: The live customization settings this member diverged from.
28595
+ $ref: "#/components/schemas/SiteCustomizationSettings"
28596
+ head:
28597
+ description: The customization settings currently proposed.
28598
+ $ref: "#/components/schemas/SiteCustomizationSettings"
28599
+ SiteChangeRequest:
28600
+ type: object
28601
+ 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.
28602
+ properties:
28603
+ object:
28604
+ type: string
28605
+ enum:
28606
+ - site-change-request
28607
+ id:
28608
+ type: string
28609
+ description: Unique identifier for the change request
28610
+ organization:
28611
+ type: string
28612
+ description: ID of the organization owning the change request.
28613
+ site:
28614
+ type: string
28615
+ description: ID of the site reviewed by the change request.
28616
+ number:
28617
+ type: number
28618
+ description: Incremental identifier of the change request within the site.
28619
+ version:
28620
+ type: number
28621
+ 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.
28622
+ status:
28623
+ $ref: "#/components/schemas/ChangeRequestStatus"
28624
+ subject:
28625
+ $ref: "#/components/schemas/ChangeRequestSubject"
28626
+ description:
28627
+ $ref: "#/components/schemas/JSONDocument"
28628
+ links:
28629
+ $ref: "#/components/schemas/ChangeRequestLinks"
28630
+ content:
28631
+ type: array
28632
+ description: Spaces whose content the change request changes, one entry per space. Empty when it only changes the site itself.
28633
+ items:
28634
+ $ref: "#/components/schemas/SiteChangeRequestContentMember"
28635
+ structure:
28636
+ $ref: "#/components/schemas/SiteChangeRequestStructureMember"
28637
+ description: Only present when the change request changes the site structure.
28638
+ customization:
28639
+ $ref: "#/components/schemas/SiteChangeRequestCustomizationMember"
28640
+ description: Only present when the change request changes the site customization settings.
28641
+ comments:
28642
+ type: number
28643
+ description: Count of opened comments across all members of the change request.
28644
+ createdBy:
28645
+ $ref: "#/components/schemas/User"
28646
+ createdAt:
28647
+ $ref: "#/components/schemas/Timestamp"
28648
+ updatedAt:
28649
+ $ref: "#/components/schemas/Timestamp"
28650
+ mergedBy:
28651
+ $ref: "#/components/schemas/User"
28652
+ description: User who merged the change request. Only present when it has been merged.
28653
+ mergedAt:
28654
+ $ref: "#/components/schemas/Timestamp"
28655
+ description: Date at which the change request was merged. Only present when it has been merged.
28656
+ urls:
28657
+ type: object
28658
+ description: URLs associated with the object
28659
+ properties:
28660
+ app:
28661
+ type: string
28662
+ description: URL of the change request in the application
28663
+ format: uri
28664
+ location:
28665
+ type: string
28666
+ description: URL of the change request in the API
28667
+ format: uri
28668
+ required:
28669
+ - app
28670
+ - location
28671
+ required:
28672
+ - object
28673
+ - id
28674
+ - organization
28675
+ - site
28676
+ - number
28677
+ - version
28678
+ - status
28679
+ - subject
28680
+ - content
28681
+ - comments
28682
+ - createdBy
28683
+ - createdAt
28684
+ - updatedAt
28685
+ - urls
27246
28686
  ShareLinkName:
27247
28687
  type: string
27248
28688
  description: Name of the share link
@@ -27988,8 +29428,9 @@ components:
27988
29428
  - updatedAt
27989
29429
  - severity
27990
29430
  - sources
29431
+ - suggestedFix
27991
29432
  default: updatedAt
27992
- 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'.
29433
+ 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'."
27993
29434
  SiteFindingTitle:
27994
29435
  type: string
27995
29436
  description: Short finding title
@@ -28018,7 +29459,7 @@ components:
28018
29459
  - path
28019
29460
  SiteFindingBrokenLinkAction:
28020
29461
  type: object
28021
- 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).
29462
+ 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."
28022
29463
  properties:
28023
29464
  source:
28024
29465
  $ref: "#/components/schemas/SiteRedirectSourcePath"
@@ -28029,7 +29470,6 @@ components:
28029
29470
  $ref: "#/components/schemas/SiteRedirectInputDestinationPath"
28030
29471
  required:
28031
29472
  - source
28032
- - destination
28033
29473
  SiteFindingOutboundLink:
28034
29474
  type: object
28035
29475
  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."
@@ -28369,6 +29809,19 @@ components:
28369
29809
  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.
28370
29810
  additionalProperties:
28371
29811
  type: number
29812
+ SiteFindingStatsBrokenLinks:
29813
+ type: object
29814
+ description: Breakdown of the broken-link findings included in the aggregation.
29815
+ properties:
29816
+ redirectSuggested:
29817
+ type: number
29818
+ description: Broken URLs the audit found a page to redirect to.
29819
+ noMatchingPage:
29820
+ type: number
29821
+ description: Broken URLs the audit judged and found no page to redirect to.
29822
+ required:
29823
+ - redirectSuggested
29824
+ - noMatchingPage
28372
29825
  SiteFindingStats:
28373
29826
  type: object
28374
29827
  description: Aggregated stats for the findings identified on a site.
@@ -28382,6 +29835,8 @@ components:
28382
29835
  $ref: "#/components/schemas/SiteFindingStatsSeverities"
28383
29836
  connectors:
28384
29837
  $ref: "#/components/schemas/SiteFindingStatsConnectors"
29838
+ brokenLinks:
29839
+ $ref: "#/components/schemas/SiteFindingStatsBrokenLinks"
28385
29840
  questions:
28386
29841
  type: number
28387
29842
  description: Count of findings with at least one piece of evidence coming from a site question.
@@ -28393,6 +29848,7 @@ components:
28393
29848
  - statuses
28394
29849
  - severities
28395
29850
  - connectors
29851
+ - brokenLinks
28396
29852
  - questions
28397
29853
  - mergedChangeRequests
28398
29854
  ContextConnectionLabel:
@@ -28754,6 +30210,15 @@ components:
28754
30210
  minLength: 1
28755
30211
  maxLength: 1024
28756
30212
  description: Atlassian API token used for outbound writes. Redacted when read back.
30213
+ projectKeys:
30214
+ type: array
30215
+ maxItems: 100
30216
+ uniqueItems: true
30217
+ description: Projects where GitBook handles issues. Empty means all accessible projects.
30218
+ items:
30219
+ type: string
30220
+ minLength: 1
30221
+ maxLength: 255
28757
30222
  statusMapping:
28758
30223
  type: object
28759
30224
  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.'
@@ -29284,6 +30749,9 @@ components:
29284
30749
  revisionId:
29285
30750
  type: string
29286
30751
  description: The revision ID of the result
30752
+ path:
30753
+ type: string
30754
+ description: The path of the page within its space, as the published site serves it.
29287
30755
  anchor:
29288
30756
  type: string
29289
30757
  description: The anchor of the result
@@ -29896,6 +31364,41 @@ components:
29896
31364
  - status
29897
31365
  - importedPages
29898
31366
  - totalPages
31367
+ AIToolCallStartBackgroundAgent:
31368
+ type: object
31369
+ description: |
31370
+ 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.
31371
+ properties:
31372
+ tool:
31373
+ type: string
31374
+ enum:
31375
+ - startBackgroundAgent
31376
+ agentId:
31377
+ type: string
31378
+ description: Identifier of the background agent within the conversation that started it.
31379
+ conversationId:
31380
+ type: string
31381
+ description: |
31382
+ The child conversation holding the background agent's transcript. It can only be read, never continued.
31383
+ title:
31384
+ type: string
31385
+ description: |
31386
+ 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.
31387
+ task:
31388
+ type: string
31389
+ description: The task the background agent was given.
31390
+ pages:
31391
+ type: array
31392
+ description: |
31393
+ 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.
31394
+ items:
31395
+ type: string
31396
+ required:
31397
+ - tool
31398
+ - agentId
31399
+ - conversationId
31400
+ - title
31401
+ - task
29899
31402
  AIToolCallMCP:
29900
31403
  type: object
29901
31404
  description: Tool called from an MCP server
@@ -29973,6 +31476,7 @@ components:
29973
31476
  - $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
29974
31477
  - $ref: "#/components/schemas/AIToolCallStartContentImport"
29975
31478
  - $ref: "#/components/schemas/AIToolCallCheckContentImport"
31479
+ - $ref: "#/components/schemas/AIToolCallStartBackgroundAgent"
29976
31480
  - $ref: "#/components/schemas/AIToolCallMCP"
29977
31481
  - $ref: "#/components/schemas/AIToolCallOther"
29978
31482
  AIMessageStepPhase:
@@ -30190,6 +31694,20 @@ components:
30190
31694
  - type
30191
31695
  - spaceId
30192
31696
  - changeRequestId
31697
+ - type: object
31698
+ description: |
31699
+ When the agent is a background agent running one task for the conversation that started it.
31700
+ properties:
31701
+ type:
31702
+ type: string
31703
+ enum:
31704
+ - background_agent
31705
+ parentConversationId:
31706
+ type: string
31707
+ description: The conversation that started this background agent.
31708
+ required:
31709
+ - type
31710
+ - parentConversationId
30193
31711
  AIMessageResponseMetadata:
30194
31712
  description: The response that generated this message.
30195
31713
  type: object
@@ -30949,6 +32467,11 @@ components:
30949
32467
  url:
30950
32468
  description: URL of the location.
30951
32469
  $ref: "#/components/schemas/URL"
32470
+ previousUrl:
32471
+ 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.
32472
+ oneOf:
32473
+ - type: "null"
32474
+ - $ref: "#/components/schemas/URL"
30952
32475
  displayContext:
30953
32476
  description: Whether the event was tracked on the site, the server, or an embed widget.
30954
32477
  $ref: "#/components/schemas/SiteInsightsDisplayContext"
@@ -31178,6 +32701,14 @@ components:
31178
32701
  type: string
31179
32702
  enum:
31180
32703
  - ask_view
32704
+ trigger:
32705
+ type: string
32706
+ enum:
32707
+ - hover
32708
+ - selection
32709
+ - site
32710
+ - page
32711
+ - embed
31181
32712
  required:
31182
32713
  - type
31183
32714
  SiteInsightsEventAskRateResponse:
@@ -31691,6 +33222,10 @@ components:
31691
33222
  enum:
31692
33223
  - eventAskResponseRating
31693
33224
  - type: object
33225
+ description: |
33226
+ How a page was rated, counted once per rating a reader submitted rather than once per
33227
+ event: rating a page and then commenting on it records two events carrying the same
33228
+ rating, and a reader may rate a page again on a later visit.
31694
33229
  required:
31695
33230
  - column
31696
33231
  properties:
@@ -31722,6 +33257,15 @@ components:
31722
33257
  type: string
31723
33258
  enum:
31724
33259
  - referrerDomain
33260
+ - type: object
33261
+ 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.
33262
+ required:
33263
+ - column
33264
+ properties:
33265
+ column:
33266
+ type: string
33267
+ enum:
33268
+ - previousUrl
31725
33269
  - type: object
31726
33270
  required:
31727
33271
  - column
@@ -32293,6 +33837,7 @@ components:
32293
33837
  enum:
32294
33838
  - page
32295
33839
  values:
33840
+ description: Pages to match. `null` matches events that resolved to no page, which for `page_view` events is a 404 (a broken URL).
32296
33841
  type: array
32297
33842
  items:
32298
33843
  oneOf:
@@ -32438,6 +33983,9 @@ components:
32438
33983
  - string
32439
33984
  - "null"
32440
33985
  - type: object
33986
+ description: |
33987
+ Ratings submitted on a page, counted once per rating a reader submitted rather than once
33988
+ per event.
32441
33989
  required:
32442
33990
  - column
32443
33991
  - values
@@ -32547,6 +34095,19 @@ components:
32547
34095
  type: array
32548
34096
  items:
32549
34097
  type: string
34098
+ - type: object
34099
+ required:
34100
+ - column
34101
+ - values
34102
+ properties:
34103
+ column:
34104
+ type: string
34105
+ enum:
34106
+ - previousUrl
34107
+ values:
34108
+ type: array
34109
+ items:
34110
+ type: string
32550
34111
  - type: object
32551
34112
  required:
32552
34113
  - column
@@ -32670,6 +34231,7 @@ components:
32670
34231
  SiteInsightsQueryRangePreset:
32671
34232
  type: string
32672
34233
  enum:
34234
+ - yearToDate
32673
34235
  - lastYear
32674
34236
  - last3Months
32675
34237
  - last30Days
@@ -33494,11 +35056,11 @@ components:
33494
35056
  type: integer
33495
35057
  minimum: 0
33496
35058
  description: Current numeric billing override, when set.
33497
- OrganizationBillingPercentageOverride:
35059
+ Percentage:
33498
35060
  type: number
33499
35061
  minimum: 0
33500
35062
  maximum: 100
33501
- description: Current percentage billing override, when set.
35063
+ description: A percentage from 0 to 100.
33502
35064
  OrganizationBillingOverrides:
33503
35065
  type: object
33504
35066
  properties:
@@ -33516,10 +35078,13 @@ components:
33516
35078
  $ref: "#/components/schemas/OrganizationBillingNumericOverride"
33517
35079
  aiCreditRollover:
33518
35080
  description: Percentage of remaining paid AI credits carried into the next billing period. Paid self-serve organizations default to 50% when unset.
33519
- $ref: "#/components/schemas/OrganizationBillingPercentageOverride"
35081
+ $ref: "#/components/schemas/Percentage"
33520
35082
  aiCreditAlertThreshold:
33521
35083
  description: Percentage of total AI credits remaining at which to send a low-balance alert.
33522
- $ref: "#/components/schemas/OrganizationBillingPercentageOverride"
35084
+ $ref: "#/components/schemas/Percentage"
35085
+ aiCreditPauseEnabled:
35086
+ description: Whether AI features pause automatically once all AI credits are used, before usage is billed as overage.
35087
+ type: boolean
33523
35088
  minUsers:
33524
35089
  description: Current minimum users override, when set.
33525
35090
  $ref: "#/components/schemas/OrganizationBillingNumericOverride"
@@ -33540,6 +35105,11 @@ components:
33540
35105
  $ref: "#/components/schemas/OrganizationBillingNumericOverride"
33541
35106
  required:
33542
35107
  - overrides
35108
+ PercentageThreshold:
35109
+ description: A percentage threshold, or null when disabled.
35110
+ oneOf:
35111
+ - $ref: "#/components/schemas/Percentage"
35112
+ - type: "null"
33543
35113
  BackOfficeSite:
33544
35114
  allOf:
33545
35115
  - $ref: "#/components/schemas/Site"
@@ -33665,6 +35235,9 @@ components:
33665
35235
  jwtToken:
33666
35236
  type: string
33667
35237
  description: JWT token generated for a authenticated access session.
35238
+ country:
35239
+ type: string
35240
+ description: ISO 3166-1 alpha-2 code of the country the visitor is browsing from, as detected by the renderer.
33668
35241
  unsignedClaims:
33669
35242
  $ref: "#/components/schemas/PlainObject"
33670
35243
  GitSyncGitHubRepository:
@@ -33865,6 +35438,7 @@ components:
33865
35438
  description: Predefined GitBook user identifiers
33866
35439
  enum:
33867
35440
  - gitbook:agent
35441
+ - gitbook:gitsync
33868
35442
  ContentLocationRevisionContext:
33869
35443
  type: object
33870
35444
  required:
@@ -34317,8 +35891,12 @@ components:
34317
35891
  $ref: "#/components/schemas/GitSyncOperationStage"
34318
35892
  dispatchedTasks:
34319
35893
  type: number
35894
+ deprecated: true
35895
+ description: Always `0`. Task-level progress is no longer tracked; read `stage` instead.
34320
35896
  completedTasks:
34321
35897
  type: number
35898
+ deprecated: true
35899
+ description: Always `0`. Task-level progress is no longer tracked; read `stage` instead.
34322
35900
  startedAt:
34323
35901
  description: Date when the operation was started
34324
35902
  $ref: "#/components/schemas/Timestamp"
@@ -34919,6 +36497,9 @@ components:
34919
36497
  - human
34920
36498
  - agent
34921
36499
  description: Whether the visitor, for which the token was generated, is a human or an AI agent. Defaults to human when omitted.
36500
+ visitorRegion:
36501
+ type: string
36502
+ description: The region containing the country of the visitor for whom the token was generated. Omitted if the country isn't in any region.
34922
36503
  claims:
34923
36504
  type: object
34924
36505
  description: Attributes or assertions that provide specific details about the visitor for which the token was generated.
@@ -36111,6 +37692,57 @@ components:
36111
37692
  enum:
36112
37693
  - light
36113
37694
  - dark
37695
+ SiteAdaptiveJSONSchema:
37696
+ type: object
37697
+ description: JSON schema describing the expected attributes of an Adaptive site schema.
37698
+ properties:
37699
+ $schema:
37700
+ type: string
37701
+ enum:
37702
+ - http://json-schema.org/draft-07/schema#
37703
+ type:
37704
+ type: string
37705
+ enum:
37706
+ - object
37707
+ properties:
37708
+ type: object
37709
+ properties:
37710
+ unsigned:
37711
+ type: object
37712
+ description: Unsigned claims of the site visitor.
37713
+ properties:
37714
+ type:
37715
+ type: string
37716
+ enum:
37717
+ - object
37718
+ description:
37719
+ type: string
37720
+ enum:
37721
+ - Unsigned claims of the site visitor.
37722
+ properties:
37723
+ type: object
37724
+ additionalProperties:
37725
+ $ref: "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
37726
+ additionalProperties:
37727
+ type: boolean
37728
+ enum:
37729
+ - false
37730
+ required:
37731
+ - type
37732
+ - description
37733
+ - properties
37734
+ - additionalProperties
37735
+ additionalProperties:
37736
+ $ref: "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
37737
+ additionalProperties:
37738
+ type: boolean
37739
+ enum:
37740
+ - false
37741
+ required:
37742
+ - type
37743
+ - properties
37744
+ - additionalProperties
37745
+ additionalProperties: false
36114
37746
  SiteAdaptiveDeterministicJSONSchemaClaimsProperties:
36115
37747
  oneOf:
36116
37748
  - $ref: "#/components/schemas/SiteAdaptiveDeterministicJSONSchemaPrimitives"
@@ -36316,6 +37948,53 @@ components:
36316
37948
  - read-only
36317
37949
  - current-page
36318
37950
  - modified-pages
37951
+ AgentBackgroundAgentStatus:
37952
+ type: string
37953
+ description: |
37954
+ What became of a background agent.
37955
+ `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.
37956
+ enum:
37957
+ - running
37958
+ - completed
37959
+ - failed
37960
+ - stopped
37961
+ AgentBackgroundAgent:
37962
+ type: object
37963
+ description: |
37964
+ 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.
37965
+ properties:
37966
+ id:
37967
+ type: string
37968
+ description: Identifier of the background agent within the conversation that started it.
37969
+ conversationId:
37970
+ type: string
37971
+ description: The child conversation holding its transcript, which can only be read.
37972
+ title:
37973
+ type: string
37974
+ description: A few words naming what it is doing, for a tab and a line of a transcript.
37975
+ task:
37976
+ type: string
37977
+ description: The task it was given.
37978
+ status:
37979
+ $ref: "#/components/schemas/AgentBackgroundAgentStatus"
37980
+ startedAt:
37981
+ type: string
37982
+ format: date-time
37983
+ description: When it was started.
37984
+ finishedAt:
37985
+ type: string
37986
+ format: date-time
37987
+ description: When it stopped running. Absent while it still runs.
37988
+ error:
37989
+ type: string
37990
+ description: Why it failed, when it did.
37991
+ required:
37992
+ - id
37993
+ - conversationId
37994
+ - title
37995
+ - task
37996
+ - status
37997
+ - startedAt
36319
37998
  AgentState:
36320
37999
  type: object
36321
38000
  properties:
@@ -36354,6 +38033,12 @@ components:
36354
38033
  $ref: "#/components/schemas/AgentEditScope"
36355
38034
  description: |
36356
38035
  How far this conversation should reach when it changes content.
38036
+ backgroundAgents:
38037
+ type: array
38038
+ description: |
38039
+ 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.
38040
+ items:
38041
+ $ref: "#/components/schemas/AgentBackgroundAgent"
36357
38042
  consultOnly:
36358
38043
  type: boolean
36359
38044
  description: |