@gitbook/api 0.196.0 → 0.198.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.json CHANGED
@@ -116,6 +116,13 @@
116
116
  "x-parent": "sites",
117
117
  "description": "Configure how site issue remediation should behave and provide site-specific instructions for the editing and topic analyst agents.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"SiteAgentSettings\" grouped=\"false\" %}\n The SiteAgentSettings object\n{% endopenapi-schemas %}\n"
118
118
  },
119
+ {
120
+ "name": "site-agent-feedback",
121
+ "x-page-title": "Site agent feedback",
122
+ "x-page-description": "Collect feedback from AI agents about the surfaces your site exposes to them.",
123
+ "x-parent": "sites",
124
+ "description": "Collect structured feedback from AI agents about the tools, operations, commands and content they worked with, so you can see where agents struggle instead of only how often they call you. Feedback is usually about the surfaces you expose to agents, such as your own MCP server, API or CLI; the site is where it is collected and who owns it.\n"
125
+ },
119
126
  {
120
127
  "name": "site-spaces",
121
128
  "x-page-title": "Site spaces",
@@ -137,6 +144,13 @@
137
144
  "x-parent": "sites",
138
145
  "description": "Section groups let you bundle multiple top-level sections together, offering additional structuring capabilities and simplifying navigation for your readers.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"SiteSectionGroup\" grouped=\"false\" %}\n The SiteSectionGroup object\n{% endopenapi-schemas %}\n"
139
146
  },
147
+ {
148
+ "name": "site-external-links",
149
+ "x-page-title": "Site external links",
150
+ "x-page-description": "Manage links to external destinations in a site's navigation.",
151
+ "x-parent": "sites",
152
+ "description": "External links add absolute HTTP or HTTPS destinations alongside sections and groups in a site's navigation.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"SiteExternalLink\" grouped=\"false\" %}\n The SiteExternalLink object\n{% endopenapi-schemas %}\n"
153
+ },
140
154
  {
141
155
  "name": "site-redirects",
142
156
  "x-page-title": "Site redirects",
@@ -3879,7 +3893,7 @@
3879
3893
  "post": {
3880
3894
  "operationId": "updateChangeRequestContent",
3881
3895
  "summary": "Apply a batch of content changes to a change request",
3882
- "description": "Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.\nTo put an image or attachment in a page, upload it with an `insert_files` change. Give the file a `ref` and a page inserted in the same batch can reference it as `![Alt](./<ref>)` or `[File](./<ref>)`, which resolves to the file's ID at apply time regardless of operation order. Uploaded files are also listed as `insertedFiles` when `compat=false`, and a file already in the change request can be referenced directly as `/files/<fileId>`. Inline `data:` URIs in markdown are not ingested and large image blocks are dropped, so upload the bytes with `insert_files` instead.\nWhen page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by:\n- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).\n- Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>`\n for a nested page (e.g. `/pages/guides/getting-started`).\n\n- Markdown file path — the path the page would have in Git: `/pages/<slug>.md` for a page,\n or `/pages/<slug>/README.md` for a page that has child pages. The space's root page is\n `/pages/README.md`.\n\n- Relative markdown link — resolved against the page being edited, e.g. `./sibling.md`,\n `../other.md`, or `../README.md` (the parent page). Folder-style links without an\n extension (e.g. `./section`) resolve to that folder's page.\n\nExternal URLs (`https://…`) are kept as-is. A link that does not match any page in the change request is left as plain text rather than causing the request to fail.\nGitBook normalizes submitted content, so the stored page may differ from what was sent. To help callers reconcile local state with the stored result, the response can list each created and modified page with its resolved ID and a `urls.location` to fetch the page's persisted content.\n\n**Response shape (`compat`)** — this endpoint is changing what it returns:\n- `compat=true` (current default) returns the updated change request, matching the endpoint's\n original behavior.\n\n- `compat=false` returns the updated change request **and** the list of affected pages (see\n the response schema).\n\nThe default is `true` for now to preserve backwards compatibility, but **will switch to `false` in a future release**, at which point the affected-page list is always included. You should pass `compat=false` if you want the new behavior today and avoid unexpected errors when the default flips in the future.",
3896
+ "description": "Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, rename, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.\n**Renaming a page** — `update_page` can change a page's `title` and/or its `slug` (the path segment used to build its URL within its current parent). Both fields are independent: to rename only the title without changing the URL, set `title` and omit `slug`; to change the URL without changing the title, set `slug` and omit `title`.\n**Moving a page** — `update_page` can also change a page's parent and/or its position among siblings with `into`/`at`. Set `into` to the new parent's page ID, or `null` to move the page to the root of the tree; omit `into` to leave the parent unchanged. Set `at` to place the page at a specific zero-based index among its new siblings; omit it to leave the position unchanged (when the parent isn't changing) or append at the end (when it is). A page cannot be moved under itself or one of its own descendants. `insert_page`'s `into`/`at` remain the way to place a **new** page at creation time.\nTo put an image or attachment in a page, upload it with an `insert_files` change. Give the file a `ref` and a page inserted in the same batch can reference it as `![Alt](./<ref>)` or `[File](./<ref>)`, which resolves to the file's ID at apply time regardless of operation order. Uploaded files are also listed as `insertedFiles` when `compat=false`, and a file already in the change request can be referenced directly as `/files/<fileId>`. Inline `data:` URIs in markdown are not ingested and large image blocks are dropped, so upload the bytes with `insert_files` instead.\nWhen page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by:\n- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).\n- Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>`\n for a nested page (e.g. `/pages/guides/getting-started`).\n\n- Markdown file path — the path the page would have in Git: `/pages/<slug>.md` for a page,\n or `/pages/<slug>/README.md` for a page that has child pages. The space's root page is\n `/pages/README.md`.\n\n- Relative markdown link — resolved against the page being edited, e.g. `./sibling.md`,\n `../other.md`, or `../README.md` (the parent page). Folder-style links without an\n extension (e.g. `./section`) resolve to that folder's page.\n\nExternal URLs (`https://…`) are kept as-is. A link that does not match any page in the change request is left as plain text rather than causing the request to fail.\nGitBook normalizes submitted content, so the stored page may differ from what was sent. To help callers reconcile local state with the stored result, the response can list each created and modified page with its resolved ID and a `urls.location` to fetch the page's persisted content.\n\n**Response shape (`compat`)** — this endpoint is changing what it returns:\n- `compat=true` (current default) returns the updated change request, matching the endpoint's\n original behavior.\n\n- `compat=false` returns the updated change request **and** the list of affected pages (see\n the response schema).\n\nThe default is `true` for now to preserve backwards compatibility, but **will switch to `false` in a future release**, at which point the affected-page list is always included. You should pass `compat=false` if you want the new behavior today and avoid unexpected errors when the default flips in the future.",
3883
3897
  "x-gitbook-mcp": true,
3884
3898
  "tags": [
3885
3899
  "change-request-content"
@@ -6701,6 +6715,8 @@
6701
6715
  "get": {
6702
6716
  "operationId": "listIntegrations",
6703
6717
  "summary": "List all public integrations",
6718
+ "description": "Returns a paginated list of the integrations published in the GitBook marketplace. Use this to discover an integration by name, category, or the blocks and content sources it provides, before installing it on an organization, space or site.",
6719
+ "x-gitbook-mcp": true,
6704
6720
  "tags": [
6705
6721
  "integrations"
6706
6722
  ],
@@ -6772,6 +6788,8 @@
6772
6788
  "get": {
6773
6789
  "operationId": "getIntegrationByName",
6774
6790
  "summary": "Get an integration by its name",
6791
+ "description": "Returns a single integration by its unique name, including the configuration it expects, the targets it can be installed on, and the permissions it requests. Private integrations are only readable by the organization that owns them.",
6792
+ "x-gitbook-mcp": true,
6775
6793
  "tags": [
6776
6794
  "integrations"
6777
6795
  ],
@@ -6806,6 +6824,11 @@
6806
6824
  "security": [
6807
6825
  {
6808
6826
  "user": []
6827
+ },
6828
+ {
6829
+ "oauth": [
6830
+ "integration:publish"
6831
+ ]
6809
6832
  }
6810
6833
  ],
6811
6834
  "parameters": [
@@ -6849,6 +6872,11 @@
6849
6872
  "security": [
6850
6873
  {
6851
6874
  "user": []
6875
+ },
6876
+ {
6877
+ "oauth": [
6878
+ "integration:delete"
6879
+ ]
6852
6880
  }
6853
6881
  ],
6854
6882
  "parameters": [
@@ -6934,12 +6962,19 @@
6934
6962
  "post": {
6935
6963
  "operationId": "installIntegration",
6936
6964
  "summary": "Install an integration",
6965
+ "description": "Installs an integration on an organization, creating the account-level installation that space and site installations hang off. Configure it with the update operation, then enable it on individual spaces or sites.",
6966
+ "x-gitbook-mcp": true,
6937
6967
  "tags": [
6938
6968
  "integrations"
6939
6969
  ],
6940
6970
  "security": [
6941
6971
  {
6942
6972
  "user": []
6973
+ },
6974
+ {
6975
+ "oauth": [
6976
+ "integration:installations:write"
6977
+ ]
6943
6978
  }
6944
6979
  ],
6945
6980
  "parameters": [
@@ -7232,6 +7267,11 @@
7232
7267
  "security": [
7233
7268
  {
7234
7269
  "user": []
7270
+ },
7271
+ {
7272
+ "oauth": [
7273
+ "integration:publish"
7274
+ ]
7235
7275
  }
7236
7276
  ],
7237
7277
  "parameters": [
@@ -7283,6 +7323,11 @@
7283
7323
  "security": [
7284
7324
  {
7285
7325
  "user": []
7326
+ },
7327
+ {
7328
+ "oauth": [
7329
+ "integration:publish"
7330
+ ]
7286
7331
  }
7287
7332
  ],
7288
7333
  "parameters": [
@@ -7436,6 +7481,8 @@
7436
7481
  "get": {
7437
7482
  "operationId": "getIntegrationInstallationById",
7438
7483
  "summary": "Get an integration installation by its ID",
7484
+ "description": "Returns the organization-level installation of an integration, including its account configuration and how many spaces it manages. The configuration can contain credentials the integration stored for third-party services.",
7485
+ "x-gitbook-mcp": true,
7439
7486
  "tags": [
7440
7487
  "integrations"
7441
7488
  ],
@@ -7448,6 +7495,11 @@
7448
7495
  },
7449
7496
  {
7450
7497
  "integration-installation": []
7498
+ },
7499
+ {
7500
+ "oauth": [
7501
+ "integration:installations:read"
7502
+ ]
7451
7503
  }
7452
7504
  ],
7453
7505
  "parameters": [
@@ -7477,6 +7529,8 @@
7477
7529
  "patch": {
7478
7530
  "operationId": "updateIntegrationInstallation",
7479
7531
  "summary": "Update an integration installation",
7532
+ "description": "Updates the account-level configuration of an installation, and which spaces or sites it applies to.",
7533
+ "x-gitbook-mcp": true,
7480
7534
  "tags": [
7481
7535
  "integrations"
7482
7536
  ],
@@ -7489,6 +7543,11 @@
7489
7543
  },
7490
7544
  {
7491
7545
  "integration-installation": []
7546
+ },
7547
+ {
7548
+ "oauth": [
7549
+ "integration:installations:write"
7550
+ ]
7492
7551
  }
7493
7552
  ],
7494
7553
  "parameters": [
@@ -7594,252 +7653,26 @@
7594
7653
  "get": {
7595
7654
  "operationId": "listIntegrationInstallationSpaces",
7596
7655
  "summary": "List all space integration installations",
7656
+ "description": "Returns a paginated list of the spaces an installation is enabled on, with the configuration of the integration for each of them. Pass extended to get the full space object instead of its ID.",
7657
+ "x-gitbook-mcp": true,
7597
7658
  "tags": [
7598
7659
  "integrations"
7599
7660
  ],
7600
- "parameters": [
7601
- {
7602
- "$ref": "#/components/parameters/integrationName"
7603
- },
7604
- {
7605
- "$ref": "#/components/parameters/installationId"
7606
- },
7607
- {
7608
- "$ref": "#/components/parameters/listPage"
7609
- },
7610
- {
7611
- "$ref": "#/components/parameters/listLimit"
7612
- },
7613
- {
7614
- "name": "extended",
7615
- "in": "query",
7616
- "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
7617
- "schema": {
7618
- "type": "boolean",
7619
- "default": false
7620
- }
7621
- }
7622
- ],
7623
- "responses": {
7624
- "200": {
7625
- "description": "OK",
7626
- "content": {
7627
- "application/json": {
7628
- "schema": {
7629
- "allOf": [
7630
- {
7631
- "$ref": "#/components/schemas/List"
7632
- },
7633
- {
7634
- "type": "object",
7635
- "required": [
7636
- "items"
7637
- ],
7638
- "properties": {
7639
- "items": {
7640
- "type": "array",
7641
- "items": {
7642
- "$ref": "#/components/schemas/IntegrationSpaceInstallation"
7643
- }
7644
- }
7645
- }
7646
- }
7647
- ]
7648
- }
7649
- }
7650
- }
7651
- }
7652
- }
7653
- },
7654
- "post": {
7655
- "operationId": "installIntegrationOnSpace",
7656
- "summary": "Install an integration on a space",
7657
- "parameters": [
7658
- {
7659
- "$ref": "#/components/parameters/integrationName"
7660
- },
7661
- {
7662
- "$ref": "#/components/parameters/installationId"
7663
- },
7664
- {
7665
- "name": "extended",
7666
- "in": "query",
7667
- "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
7668
- "schema": {
7669
- "type": "boolean",
7670
- "default": false
7671
- }
7672
- }
7673
- ],
7674
- "requestBody": {
7675
- "required": true,
7676
- "content": {
7677
- "application/json": {
7678
- "schema": {
7679
- "type": "object",
7680
- "required": [
7681
- "space"
7682
- ],
7683
- "properties": {
7684
- "space": {
7685
- "type": "string",
7686
- "description": "ID of the space to install the integration on"
7687
- }
7688
- }
7689
- }
7690
- }
7691
- }
7692
- },
7693
- "responses": {
7694
- "201": {
7695
- "headers": {
7696
- "Location": {
7697
- "description": "URL for the installed integration",
7698
- "schema": {
7699
- "type": "string"
7700
- }
7701
- }
7702
- },
7703
- "description": "Integration installed successfully on space",
7704
- "content": {
7705
- "application/json": {
7706
- "schema": {
7707
- "$ref": "#/components/schemas/IntegrationSpaceInstallation"
7708
- }
7709
- }
7710
- }
7711
- },
7712
- "404": {
7713
- "$ref": "#/components/responses/NotFoundError"
7714
- }
7715
- }
7716
- }
7717
- },
7718
- "/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}": {
7719
- "get": {
7720
- "operationId": "getIntegrationSpaceInstallation",
7721
- "summary": "Get an integration space installation",
7722
- "tags": [
7723
- "integrations"
7724
- ],
7725
- "parameters": [
7726
- {
7727
- "$ref": "#/components/parameters/integrationName"
7728
- },
7729
- {
7730
- "$ref": "#/components/parameters/installationId"
7731
- },
7732
- {
7733
- "$ref": "#/components/parameters/spaceId"
7734
- },
7735
- {
7736
- "name": "extended",
7737
- "in": "query",
7738
- "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
7739
- "schema": {
7740
- "type": "boolean",
7741
- "default": false
7742
- }
7743
- }
7744
- ],
7745
- "responses": {
7746
- "200": {
7747
- "description": "Integration space installation",
7748
- "content": {
7749
- "application/json": {
7750
- "schema": {
7751
- "$ref": "#/components/schemas/IntegrationSpaceInstallation"
7752
- }
7753
- }
7754
- }
7755
- },
7756
- "404": {
7757
- "$ref": "#/components/responses/NotFoundError"
7758
- }
7759
- }
7760
- },
7761
- "patch": {
7762
- "operationId": "updateIntegrationSpaceInstallation",
7763
- "summary": "Update an integration space installation",
7764
- "tags": [
7765
- "integrations"
7766
- ],
7767
- "parameters": [
7768
- {
7769
- "$ref": "#/components/parameters/integrationName"
7770
- },
7771
- {
7772
- "$ref": "#/components/parameters/installationId"
7773
- },
7661
+ "security": [
7774
7662
  {
7775
- "$ref": "#/components/parameters/spaceId"
7663
+ "user": []
7776
7664
  },
7777
7665
  {
7778
- "name": "extended",
7779
- "in": "query",
7780
- "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
7781
- "schema": {
7782
- "type": "boolean",
7783
- "default": false
7784
- }
7785
- }
7786
- ],
7787
- "responses": {
7788
- "200": {
7789
- "description": "The space installation has been updated.",
7790
- "content": {
7791
- "application/json": {
7792
- "schema": {
7793
- "$ref": "#/components/schemas/IntegrationSpaceInstallation"
7794
- }
7795
- }
7796
- }
7797
- }
7798
- },
7799
- "requestBody": {
7800
- "required": true,
7801
- "content": {
7802
- "application/json": {
7803
- "schema": {
7804
- "$ref": "#/components/schemas/UpdateIntegrationSpaceInstallation"
7805
- }
7806
- }
7807
- }
7808
- }
7809
- },
7810
- "delete": {
7811
- "operationId": "uninstallIntegrationFromSpace",
7812
- "summary": "Uninstall an integration from a space",
7813
- "tags": [
7814
- "integrations"
7815
- ],
7816
- "parameters": [
7817
- {
7818
- "$ref": "#/components/parameters/integrationName"
7666
+ "integration": []
7819
7667
  },
7820
7668
  {
7821
- "$ref": "#/components/parameters/installationId"
7669
+ "integration-installation": []
7822
7670
  },
7823
7671
  {
7824
- "$ref": "#/components/parameters/spaceId"
7825
- }
7826
- ],
7827
- "responses": {
7828
- "204": {
7829
- "description": "The space installation did not exist."
7830
- },
7831
- "205": {
7832
- "description": "The space installation has been deleted."
7672
+ "oauth": [
7673
+ "integration:installations:read"
7674
+ ]
7833
7675
  }
7834
- }
7835
- }
7836
- },
7837
- "/integrations/{integrationName}/installations/{installationId}/sites": {
7838
- "get": {
7839
- "operationId": "listIntegrationInstallationSites",
7840
- "summary": "List all site integration installations",
7841
- "tags": [
7842
- "integrations"
7843
7676
  ],
7844
7677
  "parameters": [
7845
7678
  {
@@ -7857,7 +7690,323 @@
7857
7690
  {
7858
7691
  "name": "extended",
7859
7692
  "in": "query",
7860
- "description": "If true, returns the site object in each items. If false, returns the site ID in each items.",
7693
+ "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
7694
+ "schema": {
7695
+ "type": "boolean",
7696
+ "default": false
7697
+ }
7698
+ }
7699
+ ],
7700
+ "responses": {
7701
+ "200": {
7702
+ "description": "OK",
7703
+ "content": {
7704
+ "application/json": {
7705
+ "schema": {
7706
+ "allOf": [
7707
+ {
7708
+ "$ref": "#/components/schemas/List"
7709
+ },
7710
+ {
7711
+ "type": "object",
7712
+ "required": [
7713
+ "items"
7714
+ ],
7715
+ "properties": {
7716
+ "items": {
7717
+ "type": "array",
7718
+ "items": {
7719
+ "$ref": "#/components/schemas/IntegrationSpaceInstallation"
7720
+ }
7721
+ }
7722
+ }
7723
+ }
7724
+ ]
7725
+ }
7726
+ }
7727
+ }
7728
+ }
7729
+ }
7730
+ },
7731
+ "post": {
7732
+ "operationId": "installIntegrationOnSpace",
7733
+ "summary": "Install an integration on a space",
7734
+ "description": "Enables an existing organization-level installation on one space. The organization must already have the integration installed.",
7735
+ "x-gitbook-mcp": true,
7736
+ "security": [
7737
+ {
7738
+ "user": []
7739
+ },
7740
+ {
7741
+ "integration": []
7742
+ },
7743
+ {
7744
+ "integration-installation": []
7745
+ },
7746
+ {
7747
+ "oauth": [
7748
+ "integration:installations:write"
7749
+ ]
7750
+ }
7751
+ ],
7752
+ "parameters": [
7753
+ {
7754
+ "$ref": "#/components/parameters/integrationName"
7755
+ },
7756
+ {
7757
+ "$ref": "#/components/parameters/installationId"
7758
+ },
7759
+ {
7760
+ "name": "extended",
7761
+ "in": "query",
7762
+ "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
7763
+ "schema": {
7764
+ "type": "boolean",
7765
+ "default": false
7766
+ }
7767
+ }
7768
+ ],
7769
+ "requestBody": {
7770
+ "required": true,
7771
+ "content": {
7772
+ "application/json": {
7773
+ "schema": {
7774
+ "type": "object",
7775
+ "required": [
7776
+ "space"
7777
+ ],
7778
+ "properties": {
7779
+ "space": {
7780
+ "type": "string",
7781
+ "description": "ID of the space to install the integration on"
7782
+ }
7783
+ }
7784
+ }
7785
+ }
7786
+ }
7787
+ },
7788
+ "responses": {
7789
+ "201": {
7790
+ "headers": {
7791
+ "Location": {
7792
+ "description": "URL for the installed integration",
7793
+ "schema": {
7794
+ "type": "string"
7795
+ }
7796
+ }
7797
+ },
7798
+ "description": "Integration installed successfully on space",
7799
+ "content": {
7800
+ "application/json": {
7801
+ "schema": {
7802
+ "$ref": "#/components/schemas/IntegrationSpaceInstallation"
7803
+ }
7804
+ }
7805
+ }
7806
+ },
7807
+ "404": {
7808
+ "$ref": "#/components/responses/NotFoundError"
7809
+ }
7810
+ }
7811
+ }
7812
+ },
7813
+ "/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}": {
7814
+ "get": {
7815
+ "operationId": "getIntegrationSpaceInstallation",
7816
+ "summary": "Get an integration space installation",
7817
+ "description": "Returns the installation of an integration on one space, including the configuration of the integration for that space.",
7818
+ "x-gitbook-mcp": true,
7819
+ "tags": [
7820
+ "integrations"
7821
+ ],
7822
+ "security": [
7823
+ {
7824
+ "user": []
7825
+ },
7826
+ {
7827
+ "integration": []
7828
+ },
7829
+ {
7830
+ "integration-installation": []
7831
+ },
7832
+ {
7833
+ "oauth": [
7834
+ "integration:installations:read"
7835
+ ]
7836
+ }
7837
+ ],
7838
+ "parameters": [
7839
+ {
7840
+ "$ref": "#/components/parameters/integrationName"
7841
+ },
7842
+ {
7843
+ "$ref": "#/components/parameters/installationId"
7844
+ },
7845
+ {
7846
+ "$ref": "#/components/parameters/spaceId"
7847
+ },
7848
+ {
7849
+ "name": "extended",
7850
+ "in": "query",
7851
+ "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
7852
+ "schema": {
7853
+ "type": "boolean",
7854
+ "default": false
7855
+ }
7856
+ }
7857
+ ],
7858
+ "responses": {
7859
+ "200": {
7860
+ "description": "Integration space installation",
7861
+ "content": {
7862
+ "application/json": {
7863
+ "schema": {
7864
+ "$ref": "#/components/schemas/IntegrationSpaceInstallation"
7865
+ }
7866
+ }
7867
+ }
7868
+ },
7869
+ "404": {
7870
+ "$ref": "#/components/responses/NotFoundError"
7871
+ }
7872
+ }
7873
+ },
7874
+ "patch": {
7875
+ "operationId": "updateIntegrationSpaceInstallation",
7876
+ "summary": "Update an integration space installation",
7877
+ "description": "Updates the configuration of an integration for one space.",
7878
+ "x-gitbook-mcp": true,
7879
+ "tags": [
7880
+ "integrations"
7881
+ ],
7882
+ "security": [
7883
+ {
7884
+ "user": []
7885
+ },
7886
+ {
7887
+ "integration": []
7888
+ },
7889
+ {
7890
+ "integration-installation": []
7891
+ },
7892
+ {
7893
+ "oauth": [
7894
+ "integration:installations:write"
7895
+ ]
7896
+ }
7897
+ ],
7898
+ "parameters": [
7899
+ {
7900
+ "$ref": "#/components/parameters/integrationName"
7901
+ },
7902
+ {
7903
+ "$ref": "#/components/parameters/installationId"
7904
+ },
7905
+ {
7906
+ "$ref": "#/components/parameters/spaceId"
7907
+ },
7908
+ {
7909
+ "name": "extended",
7910
+ "in": "query",
7911
+ "description": "If true, returns the space object in each items. If false, returns the space ID in each items.",
7912
+ "schema": {
7913
+ "type": "boolean",
7914
+ "default": false
7915
+ }
7916
+ }
7917
+ ],
7918
+ "responses": {
7919
+ "200": {
7920
+ "description": "The space installation has been updated.",
7921
+ "content": {
7922
+ "application/json": {
7923
+ "schema": {
7924
+ "$ref": "#/components/schemas/IntegrationSpaceInstallation"
7925
+ }
7926
+ }
7927
+ }
7928
+ }
7929
+ },
7930
+ "requestBody": {
7931
+ "required": true,
7932
+ "content": {
7933
+ "application/json": {
7934
+ "schema": {
7935
+ "$ref": "#/components/schemas/UpdateIntegrationSpaceInstallation"
7936
+ }
7937
+ }
7938
+ }
7939
+ }
7940
+ },
7941
+ "delete": {
7942
+ "operationId": "uninstallIntegrationFromSpace",
7943
+ "summary": "Uninstall an integration from a space",
7944
+ "tags": [
7945
+ "integrations"
7946
+ ],
7947
+ "parameters": [
7948
+ {
7949
+ "$ref": "#/components/parameters/integrationName"
7950
+ },
7951
+ {
7952
+ "$ref": "#/components/parameters/installationId"
7953
+ },
7954
+ {
7955
+ "$ref": "#/components/parameters/spaceId"
7956
+ }
7957
+ ],
7958
+ "responses": {
7959
+ "204": {
7960
+ "description": "The space installation did not exist."
7961
+ },
7962
+ "205": {
7963
+ "description": "The space installation has been deleted."
7964
+ }
7965
+ }
7966
+ }
7967
+ },
7968
+ "/integrations/{integrationName}/installations/{installationId}/sites": {
7969
+ "get": {
7970
+ "operationId": "listIntegrationInstallationSites",
7971
+ "summary": "List all site integration installations",
7972
+ "description": "Returns a paginated list of the sites an installation is enabled on, with the configuration of the integration for each of them. Pass extended to get the full site object instead of its ID.",
7973
+ "x-gitbook-mcp": true,
7974
+ "tags": [
7975
+ "integrations"
7976
+ ],
7977
+ "security": [
7978
+ {
7979
+ "user": []
7980
+ },
7981
+ {
7982
+ "integration": []
7983
+ },
7984
+ {
7985
+ "integration-installation": []
7986
+ },
7987
+ {
7988
+ "oauth": [
7989
+ "integration:installations:read"
7990
+ ]
7991
+ }
7992
+ ],
7993
+ "parameters": [
7994
+ {
7995
+ "$ref": "#/components/parameters/integrationName"
7996
+ },
7997
+ {
7998
+ "$ref": "#/components/parameters/installationId"
7999
+ },
8000
+ {
8001
+ "$ref": "#/components/parameters/listPage"
8002
+ },
8003
+ {
8004
+ "$ref": "#/components/parameters/listLimit"
8005
+ },
8006
+ {
8007
+ "name": "extended",
8008
+ "in": "query",
8009
+ "description": "If true, returns the site object in each items. If false, returns the site ID in each items.",
7861
8010
  "schema": {
7862
8011
  "type": "boolean",
7863
8012
  "default": false
@@ -7898,9 +8047,27 @@
7898
8047
  "post": {
7899
8048
  "operationId": "installIntegrationOnSite",
7900
8049
  "summary": "Install an integration on a site",
8050
+ "description": "Enables an existing organization-level installation on one site. The organization must already have the integration installed.",
8051
+ "x-gitbook-mcp": true,
7901
8052
  "tags": [
7902
8053
  "integrations"
7903
8054
  ],
8055
+ "security": [
8056
+ {
8057
+ "user": []
8058
+ },
8059
+ {
8060
+ "integration": []
8061
+ },
8062
+ {
8063
+ "integration-installation": []
8064
+ },
8065
+ {
8066
+ "oauth": [
8067
+ "integration:installations:write"
8068
+ ]
8069
+ }
8070
+ ],
7904
8071
  "parameters": [
7905
8072
  {
7906
8073
  "$ref": "#/components/parameters/integrationName"
@@ -7966,9 +8133,27 @@
7966
8133
  "get": {
7967
8134
  "operationId": "getIntegrationSiteInstallation",
7968
8135
  "summary": "Get an integration site installation",
8136
+ "description": "Returns the installation of an integration on one site, including the configuration of the integration for that site.",
8137
+ "x-gitbook-mcp": true,
7969
8138
  "tags": [
7970
8139
  "integrations"
7971
8140
  ],
8141
+ "security": [
8142
+ {
8143
+ "user": []
8144
+ },
8145
+ {
8146
+ "integration": []
8147
+ },
8148
+ {
8149
+ "integration-installation": []
8150
+ },
8151
+ {
8152
+ "oauth": [
8153
+ "integration:installations:read"
8154
+ ]
8155
+ }
8156
+ ],
7972
8157
  "parameters": [
7973
8158
  {
7974
8159
  "$ref": "#/components/parameters/integrationName"
@@ -8008,9 +8193,27 @@
8008
8193
  "patch": {
8009
8194
  "operationId": "updateIntegrationSiteInstallation",
8010
8195
  "summary": "Update an integration site installation",
8196
+ "description": "Updates the configuration of an integration for one site.",
8197
+ "x-gitbook-mcp": true,
8011
8198
  "tags": [
8012
8199
  "integrations"
8013
8200
  ],
8201
+ "security": [
8202
+ {
8203
+ "user": []
8204
+ },
8205
+ {
8206
+ "integration": []
8207
+ },
8208
+ {
8209
+ "integration-installation": []
8210
+ },
8211
+ {
8212
+ "oauth": [
8213
+ "integration:installations:write"
8214
+ ]
8215
+ }
8216
+ ],
8014
8217
  "parameters": [
8015
8218
  {
8016
8219
  "$ref": "#/components/parameters/integrationName"
@@ -8177,6 +8380,7 @@
8177
8380
  }
8178
8381
  ],
8179
8382
  "requestBody": {
8383
+ "required": true,
8180
8384
  "content": {
8181
8385
  "application/json": {
8182
8386
  "schema": {
@@ -10377,9 +10581,27 @@
10377
10581
  "get": {
10378
10582
  "operationId": "listOrganizationIntegrations",
10379
10583
  "summary": "List all public integrations along with private ones trusted by the specific org.",
10584
+ "description": "Returns a paginated list of the integrations available to the organization: every publicly published integration plus the private ones the organization owns or is trusted with. Prefer this over the public listing when acting inside an organization.",
10585
+ "x-gitbook-mcp": true,
10380
10586
  "tags": [
10381
10587
  "integrations"
10382
10588
  ],
10589
+ "security": [
10590
+ {
10591
+ "user": []
10592
+ },
10593
+ {
10594
+ "integration": []
10595
+ },
10596
+ {
10597
+ "integration-installation": []
10598
+ },
10599
+ {
10600
+ "oauth": [
10601
+ "integration:read"
10602
+ ]
10603
+ }
10604
+ ],
10383
10605
  "parameters": [
10384
10606
  {
10385
10607
  "$ref": "#/components/parameters/organizationId"
@@ -10451,12 +10673,19 @@
10451
10673
  "get": {
10452
10674
  "operationId": "getOrganizationIntegrationStatus",
10453
10675
  "summary": "Get the status of an integration",
10676
+ "description": "Returns whether an integration is installed for the organization and the status of that installation. Use this for a single integration instead of listing every status.",
10677
+ "x-gitbook-mcp": true,
10454
10678
  "tags": [
10455
10679
  "integrations"
10456
10680
  ],
10457
10681
  "security": [
10458
10682
  {
10459
10683
  "user": []
10684
+ },
10685
+ {
10686
+ "oauth": [
10687
+ "integration:read"
10688
+ ]
10460
10689
  }
10461
10690
  ],
10462
10691
  "parameters": [
@@ -10560,11 +10789,28 @@
10560
10789
  "get": {
10561
10790
  "operationId": "listOrganizationIntegrationsStatus",
10562
10791
  "summary": "List all integration statuses",
10563
- "description": "Returns integration installations in the organization. Use site or space with the matching target to efficiently scope the result to one resource.",
10792
+ "description": "Returns integration installations in the organization. Use site or space with the matching target to efficiently scope the result to one resource. The target of each installation says whether it is installed on the organization, a space or a site.",
10793
+ "x-gitbook-mcp": true,
10564
10794
  "tags": [
10565
10795
  "integrations",
10566
10796
  "critical"
10567
10797
  ],
10798
+ "security": [
10799
+ {
10800
+ "user": []
10801
+ },
10802
+ {
10803
+ "integration": []
10804
+ },
10805
+ {
10806
+ "integration-installation": []
10807
+ },
10808
+ {
10809
+ "oauth": [
10810
+ "integration:read"
10811
+ ]
10812
+ }
10813
+ ],
10568
10814
  "parameters": [
10569
10815
  {
10570
10816
  "$ref": "#/components/parameters/organizationId"
@@ -13832,8 +14078,8 @@
13832
14078
  "/orgs/{organizationId}/sites/{siteId}/structure/sort": {
13833
14079
  "patch": {
13834
14080
  "operationId": "sortSiteStructure",
13835
- "summary": "Move a site space, section, or section group to a new position",
13836
- "description": "Reorders an item in the site's navigation structure by moving a site space, section, or section group to a specified position relative to another item. Use this to reorganize the navigation order after adding new sections or to reflect a new content hierarchy.",
14081
+ "summary": "Move a site structure item to a new position",
14082
+ "description": "Reorders a site space, section, section group, or external link relative to any sibling at the same structure level. Sorting changes sibling order only; move an item between the root and a group through that item's update operation first.",
13837
14083
  "x-gitbook-mcp": true,
13838
14084
  "x-gitbook-return-preference": true,
13839
14085
  "tags": [
@@ -13861,13 +14107,14 @@
13861
14107
  }
13862
14108
  ],
13863
14109
  "requestBody": {
14110
+ "required": true,
13864
14111
  "content": {
13865
14112
  "application/json": {
13866
14113
  "schema": {
13867
14114
  "type": "object",
13868
14115
  "properties": {
13869
14116
  "item": {
13870
- "description": "pointer to the item (site space, site section or site section group) being moved.",
14117
+ "description": "Pointer to the site space, section, section group, or external link being moved.",
13871
14118
  "$ref": "#/components/schemas/SiteStructureItemPointer"
13872
14119
  },
13873
14120
  "position": {
@@ -14355,7 +14602,7 @@
14355
14602
  "post": {
14356
14603
  "operationId": "addSpaceToSite",
14357
14604
  "summary": "Add a space to a site as a content source",
14358
- "description": "Links an existing space to the site by creating a site space relationship.",
14605
+ "description": "Pass an existing space ID to link it, or pass `null` to create and link a new space. New spaces are blank unless a template is provided.",
14359
14606
  "x-gitbook-mcp": true,
14360
14607
  "x-gitbook-return-preference": true,
14361
14608
  "tags": [
@@ -14390,8 +14637,19 @@
14390
14637
  "type": "object",
14391
14638
  "properties": {
14392
14639
  "spaceId": {
14393
- "type": "string",
14394
- "description": "ID of the space"
14640
+ "oneOf": [
14641
+ {
14642
+ "type": "string"
14643
+ },
14644
+ {
14645
+ "type": "null"
14646
+ }
14647
+ ],
14648
+ "description": "Pass the ID of an existing space or `null` to create a new space."
14649
+ },
14650
+ "template": {
14651
+ "$ref": "#/components/schemas/ApplySpaceTemplate",
14652
+ "description": "Template for the new space when `spaceId` is `null`. Templates that provision organization-level resources, such as OpenAPI specifications, are not supported by this site-scoped operation."
14395
14653
  },
14396
14654
  "sectionId": {
14397
14655
  "type": "string",
@@ -14400,7 +14658,7 @@
14400
14658
  "draft": {
14401
14659
  "type": "boolean",
14402
14660
  "default": false,
14403
- "description": "Whether the site space should be created as draft. Defaults to false."
14661
+ "description": "Whether the site space should be created as draft. Defaults to false. Editors can set this to true to create draft content on a non-empty site. Creating live content and adding the first content require Creator permission."
14404
14662
  },
14405
14663
  "pageId": {
14406
14664
  "oneOf": [
@@ -14411,10 +14669,11 @@
14411
14669
  "type": "null"
14412
14670
  }
14413
14671
  ],
14414
- "description": "Custom home page within the space, rendered at the site space's path root instead of the space's default landing page."
14672
+ "description": "Custom home page within an existing space, rendered at the site space's path root instead of the space's default landing page. Providing it when `spaceId` is `null` returns a 400 error."
14415
14673
  },
14416
14674
  "title": {
14417
- "$ref": "#/components/schemas/SiteTitle"
14675
+ "$ref": "#/components/schemas/SiteTitle",
14676
+ "description": "Site-specific title override for the variant. Also used as the space title when `spaceId` is `null` and no template is provided."
14418
14677
  }
14419
14678
  },
14420
14679
  "required": [
@@ -14744,6 +15003,17 @@
14744
15003
  "draft": {
14745
15004
  "type": "boolean",
14746
15005
  "description": "Whether the site section group should be kept in draft mode. Setting it to true makes the site section group draft. Setting it to false makes the site section group live."
15006
+ },
15007
+ "parentSectionGroupId": {
15008
+ "description": "ID of the parent section group to move this section group into. Set to null to move the section group to the root of the site.",
15009
+ "oneOf": [
15010
+ {
15011
+ "type": "string"
15012
+ },
15013
+ {
15014
+ "type": "null"
15015
+ }
15016
+ ]
14747
15017
  }
14748
15018
  }
14749
15019
  }
@@ -14812,11 +15082,356 @@
14812
15082
  "post": {
14813
15083
  "operationId": "addSectionToSite",
14814
15084
  "summary": "Add a new navigation section to a site backed by a space",
14815
- "description": "Creates a new top-level navigation section in the site by linking a space as its primary content source. The section appears as a tab or sidebar entry in the site navigation.",
15085
+ "description": "Creates a new top-level navigation section in the site. The section appears as a tab or sidebar entry in the site navigation. Pass an existing space ID to link it as the section's primary content source, or pass `null` to create and link a new space. New spaces are blank unless a template is provided.",
15086
+ "x-gitbook-mcp": true,
15087
+ "tags": [
15088
+ "site-sections"
15089
+ ],
15090
+ "security": [
15091
+ {
15092
+ "user": []
15093
+ },
15094
+ {
15095
+ "oauth": [
15096
+ "site:write"
15097
+ ]
15098
+ }
15099
+ ],
15100
+ "parameters": [
15101
+ {
15102
+ "$ref": "#/components/parameters/organizationId"
15103
+ },
15104
+ {
15105
+ "$ref": "#/components/parameters/siteId"
15106
+ }
15107
+ ],
15108
+ "requestBody": {
15109
+ "required": true,
15110
+ "content": {
15111
+ "application/json": {
15112
+ "schema": {
15113
+ "type": "object",
15114
+ "properties": {
15115
+ "spaceId": {
15116
+ "oneOf": [
15117
+ {
15118
+ "type": "string"
15119
+ },
15120
+ {
15121
+ "type": "null"
15122
+ }
15123
+ ],
15124
+ "description": "Pass the ID of an existing space or pass `null` to create a new space. The space will be added to the section as a site space variant."
15125
+ },
15126
+ "template": {
15127
+ "$ref": "#/components/schemas/ApplySpaceTemplate",
15128
+ "description": "Template for the new space when `spaceId` is `null`. Templates that provision organization-level resources, such as OpenAPI specifications, are not supported by this site-scoped operation."
15129
+ },
15130
+ "title": {
15131
+ "oneOf": [
15132
+ {
15133
+ "$ref": "#/components/schemas/SiteSectionTitle"
15134
+ },
15135
+ {
15136
+ "type": "null"
15137
+ }
15138
+ ],
15139
+ "description": "Section title. Also used as the space title when `spaceId` is `null` and no template is provided."
15140
+ },
15141
+ "icon": {
15142
+ "oneOf": [
15143
+ {
15144
+ "$ref": "#/components/schemas/Icon"
15145
+ },
15146
+ {
15147
+ "type": "null"
15148
+ }
15149
+ ]
15150
+ },
15151
+ "draft": {
15152
+ "type": "boolean",
15153
+ "default": false,
15154
+ "description": "Whether the section should be created in draft mode. Defaults to false. Editors can set this to true to create draft content after sections are enabled. Creating live content requires Creator permission; enabling sections requires Admin permission."
15155
+ },
15156
+ "pageId": {
15157
+ "type": "string",
15158
+ "description": "Custom home page within an existing space, rendered at the section's path root instead of the space's default landing page. Providing it when `spaceId` is `null` returns a 400 error."
15159
+ },
15160
+ "siteSectionGroupId": {
15161
+ "type": "string",
15162
+ "description": "ID of the section group to create the section in"
15163
+ }
15164
+ },
15165
+ "required": [
15166
+ "spaceId"
15167
+ ]
15168
+ }
15169
+ }
15170
+ }
15171
+ },
15172
+ "responses": {
15173
+ "201": {
15174
+ "description": "Section added to the site",
15175
+ "headers": {
15176
+ "Location": {
15177
+ "description": "API URL for the newly created site-section relationship",
15178
+ "schema": {
15179
+ "type": "string"
15180
+ }
15181
+ }
15182
+ },
15183
+ "content": {
15184
+ "application/json": {
15185
+ "schema": {
15186
+ "$ref": "#/components/schemas/SiteSection"
15187
+ }
15188
+ }
15189
+ }
15190
+ }
15191
+ }
15192
+ },
15193
+ "get": {
15194
+ "operationId": "listSiteSections",
15195
+ "summary": "List all navigation sections in a site",
15196
+ "description": "Returns a paginated list of sections in the site. Each section is a top-level navigation item backed by one or more site spaces. Use this to inspect the current navigation structure, find a section ID before updating it, or check whether sections are in draft or live state.",
14816
15197
  "x-gitbook-mcp": true,
14817
15198
  "tags": [
14818
15199
  "site-sections"
14819
15200
  ],
15201
+ "security": [
15202
+ {
15203
+ "user": []
15204
+ },
15205
+ {
15206
+ "oauth": [
15207
+ "site:read"
15208
+ ]
15209
+ }
15210
+ ],
15211
+ "parameters": [
15212
+ {
15213
+ "$ref": "#/components/parameters/organizationId"
15214
+ },
15215
+ {
15216
+ "$ref": "#/components/parameters/siteId"
15217
+ },
15218
+ {
15219
+ "$ref": "#/components/parameters/siteShareKey"
15220
+ },
15221
+ {
15222
+ "$ref": "#/components/parameters/listPage"
15223
+ },
15224
+ {
15225
+ "$ref": "#/components/parameters/listLimit"
15226
+ }
15227
+ ],
15228
+ "responses": {
15229
+ "200": {
15230
+ "description": "OK",
15231
+ "content": {
15232
+ "application/json": {
15233
+ "schema": {
15234
+ "allOf": [
15235
+ {
15236
+ "$ref": "#/components/schemas/List"
15237
+ },
15238
+ {
15239
+ "type": "object",
15240
+ "required": [
15241
+ "items"
15242
+ ],
15243
+ "properties": {
15244
+ "items": {
15245
+ "type": "array",
15246
+ "items": {
15247
+ "$ref": "#/components/schemas/SiteSection"
15248
+ }
15249
+ }
15250
+ }
15251
+ }
15252
+ ]
15253
+ }
15254
+ }
15255
+ }
15256
+ }
15257
+ }
15258
+ }
15259
+ },
15260
+ "/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}": {
15261
+ "patch": {
15262
+ "operationId": "updateSiteSectionById",
15263
+ "summary": "Update a navigation section in a site",
15264
+ "description": "Updates a navigation section's configuration in the site structure.",
15265
+ "x-gitbook-mcp": true,
15266
+ "x-gitbook-return-preference": true,
15267
+ "tags": [
15268
+ "site-sections"
15269
+ ],
15270
+ "security": [
15271
+ {
15272
+ "user": []
15273
+ },
15274
+ {
15275
+ "oauth": [
15276
+ "site:write"
15277
+ ]
15278
+ }
15279
+ ],
15280
+ "parameters": [
15281
+ {
15282
+ "$ref": "#/components/parameters/organizationId"
15283
+ },
15284
+ {
15285
+ "$ref": "#/components/parameters/siteId"
15286
+ },
15287
+ {
15288
+ "$ref": "#/components/parameters/siteSectionId"
15289
+ },
15290
+ {
15291
+ "$ref": "#/components/parameters/returnPreference"
15292
+ }
15293
+ ],
15294
+ "requestBody": {
15295
+ "required": true,
15296
+ "content": {
15297
+ "application/json": {
15298
+ "schema": {
15299
+ "type": "object",
15300
+ "properties": {
15301
+ "title": {
15302
+ "$ref": "#/components/schemas/SiteSectionTitle"
15303
+ },
15304
+ "localizedTitle": {
15305
+ "$ref": "#/components/schemas/LocalizedString128"
15306
+ },
15307
+ "path": {
15308
+ "$ref": "#/components/schemas/SiteSectionPath"
15309
+ },
15310
+ "defaultSiteSpace": {
15311
+ "type": "string",
15312
+ "description": "ID of the site-space to be used as the default in this section."
15313
+ },
15314
+ "condition": {
15315
+ "description": "Conditional expression used to evaluate whether the site section should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.",
15316
+ "oneOf": [
15317
+ {
15318
+ "$ref": "#/components/schemas/Expression"
15319
+ },
15320
+ {
15321
+ "type": "null"
15322
+ }
15323
+ ]
15324
+ },
15325
+ "icon": {
15326
+ "oneOf": [
15327
+ {
15328
+ "$ref": "#/components/schemas/Icon"
15329
+ },
15330
+ {
15331
+ "type": "null"
15332
+ }
15333
+ ]
15334
+ },
15335
+ "draft": {
15336
+ "type": "boolean",
15337
+ "description": "Whether the site section should be kept in draft mode. Setting it to true makes the site section draft. Setting it to false makes the site section live."
15338
+ },
15339
+ "description": {
15340
+ "oneOf": [
15341
+ {
15342
+ "$ref": "#/components/schemas/SiteSectionDescription"
15343
+ },
15344
+ {
15345
+ "type": "null"
15346
+ }
15347
+ ]
15348
+ },
15349
+ "localizedDescription": {
15350
+ "$ref": "#/components/schemas/LocalizedString256"
15351
+ },
15352
+ "siteSectionGroupId": {
15353
+ "description": "ID of the section group to move the section into. Set to null to move the section to the root of the site.",
15354
+ "oneOf": [
15355
+ {
15356
+ "type": "string"
15357
+ },
15358
+ {
15359
+ "type": "null"
15360
+ }
15361
+ ]
15362
+ }
15363
+ }
15364
+ }
15365
+ }
15366
+ }
15367
+ },
15368
+ "responses": {
15369
+ "200": {
15370
+ "description": "OK",
15371
+ "content": {
15372
+ "application/json": {
15373
+ "schema": {
15374
+ "$ref": "#/components/schemas/SiteSection"
15375
+ }
15376
+ }
15377
+ }
15378
+ },
15379
+ "204": {
15380
+ "description": "Site section updated without returning its representation",
15381
+ "headers": {
15382
+ "Preference-Applied": {
15383
+ "$ref": "#/components/headers/returnPreferenceApplied"
15384
+ }
15385
+ }
15386
+ }
15387
+ }
15388
+ },
15389
+ "delete": {
15390
+ "operationId": "deleteSiteSectionById",
15391
+ "summary": "Delete a site section",
15392
+ "tags": [
15393
+ "site-sections"
15394
+ ],
15395
+ "security": [
15396
+ {
15397
+ "user": []
15398
+ },
15399
+ {
15400
+ "oauth": [
15401
+ "site:write"
15402
+ ]
15403
+ }
15404
+ ],
15405
+ "parameters": [
15406
+ {
15407
+ "$ref": "#/components/parameters/organizationId"
15408
+ },
15409
+ {
15410
+ "$ref": "#/components/parameters/siteId"
15411
+ },
15412
+ {
15413
+ "$ref": "#/components/parameters/siteSectionId"
15414
+ }
15415
+ ],
15416
+ "responses": {
15417
+ "204": {
15418
+ "description": "Site section did not exist"
15419
+ },
15420
+ "205": {
15421
+ "description": "Site section has been deleted"
15422
+ }
15423
+ }
15424
+ }
15425
+ },
15426
+ "/orgs/{organizationId}/sites/{siteId}/external-links": {
15427
+ "post": {
15428
+ "operationId": "addExternalLinkToSite",
15429
+ "summary": "Add an external link to a site's navigation",
15430
+ "description": "Creates an external navigation link at the site root or in a section group. External links require a section-based site structure and cannot be placed inside a section. The destination must be an absolute HTTP or HTTPS URL. Draft links and links whose adaptive condition does not match are omitted from published structure responses. Use the generic structure sort operation after creation to change sibling order.",
15431
+ "x-gitbook-mcp": true,
15432
+ "tags": [
15433
+ "site-external-links"
15434
+ ],
14820
15435
  "security": [
14821
15436
  {
14822
15437
  "user": []
@@ -14842,14 +15457,26 @@
14842
15457
  "schema": {
14843
15458
  "type": "object",
14844
15459
  "properties": {
14845
- "spaceId": {
14846
- "type": "string",
14847
- "description": "ID of the space to be added to the section as a site space variant"
14848
- },
14849
15460
  "title": {
15461
+ "$ref": "#/components/schemas/SiteSectionTitle"
15462
+ },
15463
+ "localizedTitle": {
15464
+ "$ref": "#/components/schemas/LocalizedString128"
15465
+ },
15466
+ "description": {
14850
15467
  "oneOf": [
14851
15468
  {
14852
- "$ref": "#/components/schemas/SiteSectionTitle"
15469
+ "$ref": "#/components/schemas/SiteSectionDescription"
15470
+ },
15471
+ {
15472
+ "type": "null"
15473
+ }
15474
+ ]
15475
+ },
15476
+ "localizedDescription": {
15477
+ "oneOf": [
15478
+ {
15479
+ "$ref": "#/components/schemas/LocalizedString256"
14853
15480
  },
14854
15481
  {
14855
15482
  "type": "null"
@@ -14866,21 +15493,33 @@
14866
15493
  }
14867
15494
  ]
14868
15495
  },
14869
- "draft": {
14870
- "type": "boolean",
14871
- "description": "Whether the section should be created in draft mode."
15496
+ "url": {
15497
+ "$ref": "#/components/schemas/URL",
15498
+ "description": "Absolute HTTP or HTTPS destination URL"
14872
15499
  },
14873
- "pageId": {
15500
+ "parent": {
14874
15501
  "type": "string",
14875
- "description": "Custom home page within the space, rendered at the section's path root instead of the space's default landing page."
15502
+ "description": "ID of the section group to create the link in. Omit to place it at the site root."
14876
15503
  },
14877
- "siteSectionGroupId": {
14878
- "type": "string",
14879
- "description": "ID of the section group to create the section in"
15504
+ "draft": {
15505
+ "type": "boolean",
15506
+ "description": "Whether the external link should be created in draft mode"
15507
+ },
15508
+ "condition": {
15509
+ "oneOf": [
15510
+ {
15511
+ "$ref": "#/components/schemas/Expression"
15512
+ },
15513
+ {
15514
+ "type": "null"
15515
+ }
15516
+ ],
15517
+ "description": "Adaptive condition controlling whether visitors see the link"
14880
15518
  }
14881
15519
  },
14882
15520
  "required": [
14883
- "spaceId"
15521
+ "title",
15522
+ "url"
14884
15523
  ]
14885
15524
  }
14886
15525
  }
@@ -14888,10 +15527,10 @@
14888
15527
  },
14889
15528
  "responses": {
14890
15529
  "201": {
14891
- "description": "Section added to the site",
15530
+ "description": "External link added to the site",
14892
15531
  "headers": {
14893
15532
  "Location": {
14894
- "description": "API URL for the newly created site-section relationship",
15533
+ "description": "API URL for the newly created external link",
14895
15534
  "schema": {
14896
15535
  "type": "string"
14897
15536
  }
@@ -14900,89 +15539,30 @@
14900
15539
  "content": {
14901
15540
  "application/json": {
14902
15541
  "schema": {
14903
- "$ref": "#/components/schemas/SiteSection"
15542
+ "$ref": "#/components/schemas/SiteExternalLink"
14904
15543
  }
14905
15544
  }
14906
15545
  }
14907
- }
14908
- }
14909
- },
14910
- "get": {
14911
- "operationId": "listSiteSections",
14912
- "summary": "List all navigation sections in a site",
14913
- "description": "Returns a paginated list of sections in the site. Each section is a top-level navigation item backed by one or more site spaces. Use this to inspect the current navigation structure, find a section ID before updating it, or check whether sections are in draft or live state.",
14914
- "x-gitbook-mcp": true,
14915
- "tags": [
14916
- "site-sections"
14917
- ],
14918
- "security": [
14919
- {
14920
- "user": []
14921
15546
  },
14922
- {
14923
- "oauth": [
14924
- "site:read"
14925
- ]
14926
- }
14927
- ],
14928
- "parameters": [
14929
- {
14930
- "$ref": "#/components/parameters/organizationId"
14931
- },
14932
- {
14933
- "$ref": "#/components/parameters/siteId"
14934
- },
14935
- {
14936
- "$ref": "#/components/parameters/siteShareKey"
14937
- },
14938
- {
14939
- "$ref": "#/components/parameters/listPage"
15547
+ "400": {
15548
+ "description": "The site has a simple structure or the parent group is invalid",
15549
+ "$ref": "#/components/responses/BadRequestError"
14940
15550
  },
14941
- {
14942
- "$ref": "#/components/parameters/listLimit"
14943
- }
14944
- ],
14945
- "responses": {
14946
- "200": {
14947
- "description": "OK",
14948
- "content": {
14949
- "application/json": {
14950
- "schema": {
14951
- "allOf": [
14952
- {
14953
- "$ref": "#/components/schemas/List"
14954
- },
14955
- {
14956
- "type": "object",
14957
- "required": [
14958
- "items"
14959
- ],
14960
- "properties": {
14961
- "items": {
14962
- "type": "array",
14963
- "items": {
14964
- "$ref": "#/components/schemas/SiteSection"
14965
- }
14966
- }
14967
- }
14968
- }
14969
- ]
14970
- }
14971
- }
14972
- }
15551
+ "default": {
15552
+ "$ref": "#/components/responses/UnexpectedError"
14973
15553
  }
14974
15554
  }
14975
15555
  }
14976
15556
  },
14977
- "/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}": {
15557
+ "/orgs/{organizationId}/sites/{siteId}/external-links/{siteExternalLinkId}": {
14978
15558
  "patch": {
14979
- "operationId": "updateSiteSectionById",
14980
- "summary": "Update a navigation section in a site",
14981
- "description": "Updates a navigation section's configuration in the site structure.",
15559
+ "operationId": "updateSiteExternalLinkById",
15560
+ "summary": "Update an external link in a site's navigation",
15561
+ "description": "Updates an external navigation link. Set parent to a section group ID to move the link into that group, or null to move it to the site root; links cannot be placed inside a section. A changed destination must remain an absolute HTTP or HTTPS URL. Draft and adaptive-condition fields control visibility. Use the generic structure sort operation after changing the parent to adjust the link's sibling order.",
14982
15562
  "x-gitbook-mcp": true,
14983
15563
  "x-gitbook-return-preference": true,
14984
15564
  "tags": [
14985
- "site-sections"
15565
+ "site-external-links"
14986
15566
  ],
14987
15567
  "security": [
14988
15568
  {
@@ -15002,7 +15582,7 @@
15002
15582
  "$ref": "#/components/parameters/siteId"
15003
15583
  },
15004
15584
  {
15005
- "$ref": "#/components/parameters/siteSectionId"
15585
+ "$ref": "#/components/parameters/siteExternalLinkId"
15006
15586
  },
15007
15587
  {
15008
15588
  "$ref": "#/components/parameters/returnPreference"
@@ -15019,20 +15599,29 @@
15019
15599
  "$ref": "#/components/schemas/SiteSectionTitle"
15020
15600
  },
15021
15601
  "localizedTitle": {
15022
- "$ref": "#/components/schemas/LocalizedString128"
15023
- },
15024
- "path": {
15025
- "$ref": "#/components/schemas/SiteSectionPath"
15602
+ "oneOf": [
15603
+ {
15604
+ "$ref": "#/components/schemas/LocalizedString128"
15605
+ },
15606
+ {
15607
+ "type": "null"
15608
+ }
15609
+ ]
15026
15610
  },
15027
- "defaultSiteSpace": {
15028
- "type": "string",
15029
- "description": "ID of the site-space to be used as the default in this section."
15611
+ "description": {
15612
+ "oneOf": [
15613
+ {
15614
+ "$ref": "#/components/schemas/SiteSectionDescription"
15615
+ },
15616
+ {
15617
+ "type": "null"
15618
+ }
15619
+ ]
15030
15620
  },
15031
- "condition": {
15032
- "description": "Conditional expression used to evaluate whether the site section should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.",
15621
+ "localizedDescription": {
15033
15622
  "oneOf": [
15034
15623
  {
15035
- "$ref": "#/components/schemas/Expression"
15624
+ "$ref": "#/components/schemas/LocalizedString256"
15036
15625
  },
15037
15626
  {
15038
15627
  "type": "null"
@@ -15049,33 +15638,35 @@
15049
15638
  }
15050
15639
  ]
15051
15640
  },
15052
- "draft": {
15053
- "type": "boolean",
15054
- "description": "Whether the site section should be kept in draft mode. Setting it to true makes the site section draft. Setting it to false makes the site section live."
15641
+ "url": {
15642
+ "$ref": "#/components/schemas/URL",
15643
+ "description": "Absolute HTTP or HTTPS destination URL"
15055
15644
  },
15056
- "description": {
15645
+ "parent": {
15646
+ "description": "ID of the section group to move the link into. Set to null to move it to the site root.",
15057
15647
  "oneOf": [
15058
15648
  {
15059
- "$ref": "#/components/schemas/SiteSectionDescription"
15649
+ "type": "string"
15060
15650
  },
15061
15651
  {
15062
15652
  "type": "null"
15063
15653
  }
15064
15654
  ]
15065
15655
  },
15066
- "localizedDescription": {
15067
- "$ref": "#/components/schemas/LocalizedString256"
15656
+ "draft": {
15657
+ "type": "boolean",
15658
+ "description": "Whether the external link should be kept in draft mode"
15068
15659
  },
15069
- "siteSectionGroupId": {
15070
- "description": "ID of the section group to move the section into. Set to null to move the section to the root of the site.",
15660
+ "condition": {
15071
15661
  "oneOf": [
15072
15662
  {
15073
- "type": "string"
15663
+ "$ref": "#/components/schemas/Expression"
15074
15664
  },
15075
15665
  {
15076
15666
  "type": "null"
15077
15667
  }
15078
- ]
15668
+ ],
15669
+ "description": "Adaptive condition controlling whether visitors see the link"
15079
15670
  }
15080
15671
  }
15081
15672
  }
@@ -15084,30 +15675,42 @@
15084
15675
  },
15085
15676
  "responses": {
15086
15677
  "200": {
15087
- "description": "OK",
15678
+ "description": "External link updated",
15088
15679
  "content": {
15089
15680
  "application/json": {
15090
15681
  "schema": {
15091
- "$ref": "#/components/schemas/SiteSection"
15682
+ "$ref": "#/components/schemas/SiteExternalLink"
15092
15683
  }
15093
15684
  }
15094
15685
  }
15095
15686
  },
15096
15687
  "204": {
15097
- "description": "Site section updated without returning its representation",
15688
+ "description": "External link updated without returning its representation",
15098
15689
  "headers": {
15099
15690
  "Preference-Applied": {
15100
15691
  "$ref": "#/components/headers/returnPreferenceApplied"
15101
15692
  }
15102
15693
  }
15694
+ },
15695
+ "400": {
15696
+ "description": "The parent group or destination URL is invalid",
15697
+ "$ref": "#/components/responses/BadRequestError"
15698
+ },
15699
+ "404": {
15700
+ "description": "Site or external link not found",
15701
+ "$ref": "#/components/responses/NotFoundError"
15702
+ },
15703
+ "default": {
15704
+ "$ref": "#/components/responses/UnexpectedError"
15103
15705
  }
15104
15706
  }
15105
15707
  },
15106
15708
  "delete": {
15107
- "operationId": "deleteSiteSectionById",
15108
- "summary": "Delete a site section",
15709
+ "operationId": "deleteSiteExternalLinkById",
15710
+ "summary": "Delete an external link from a site's navigation",
15711
+ "description": "Deletes an external link. This operation is intentionally unavailable to MCP clients.",
15109
15712
  "tags": [
15110
- "site-sections"
15713
+ "site-external-links"
15111
15714
  ],
15112
15715
  "security": [
15113
15716
  {
@@ -15127,15 +15730,22 @@
15127
15730
  "$ref": "#/components/parameters/siteId"
15128
15731
  },
15129
15732
  {
15130
- "$ref": "#/components/parameters/siteSectionId"
15733
+ "$ref": "#/components/parameters/siteExternalLinkId"
15131
15734
  }
15132
15735
  ],
15133
15736
  "responses": {
15134
15737
  "204": {
15135
- "description": "Site section did not exist"
15738
+ "description": "External link did not exist"
15136
15739
  },
15137
15740
  "205": {
15138
- "description": "Site section has been deleted"
15741
+ "description": "External link has been deleted"
15742
+ },
15743
+ "404": {
15744
+ "description": "Site not found",
15745
+ "$ref": "#/components/responses/NotFoundError"
15746
+ },
15747
+ "default": {
15748
+ "$ref": "#/components/responses/UnexpectedError"
15139
15749
  }
15140
15750
  }
15141
15751
  }
@@ -15313,11 +15923,45 @@
15313
15923
  }
15314
15924
  }
15315
15925
  },
15926
+ "/orgs/{organizationId}/sites/{siteId}/search/prewarm": {
15927
+ "post": {
15928
+ "operationId": "prewarmSiteSearch",
15929
+ "summary": "Prewarm a site's search cache",
15930
+ "description": "Hints the search backend that latency-sensitive site search requests are likely to arrive soon. Call this when a visitor opens the site's search interface.",
15931
+ "tags": [
15932
+ "sites"
15933
+ ],
15934
+ "security": [
15935
+ {
15936
+ "user": []
15937
+ },
15938
+ {
15939
+ "oauth": [
15940
+ "site:search"
15941
+ ]
15942
+ }
15943
+ ],
15944
+ "parameters": [
15945
+ {
15946
+ "$ref": "#/components/parameters/organizationId"
15947
+ },
15948
+ {
15949
+ "$ref": "#/components/parameters/siteId"
15950
+ }
15951
+ ],
15952
+ "responses": {
15953
+ "204": {
15954
+ "description": "Search cache warmup accepted"
15955
+ }
15956
+ }
15957
+ }
15958
+ },
15316
15959
  "/orgs/{organizationId}/sites/{siteId}/agent-feedback": {
15317
15960
  "post": {
15318
15961
  "operationId": "submitSiteAgentFeedback",
15319
- "summary": "Submit agent feedback for a site",
15320
- "description": "Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user.",
15962
+ "deprecated": true,
15963
+ "summary": "Submit agent feedback for a site. (Deprecated) use submitAgentFeedbackToSite instead.",
15964
+ "description": "Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user.\n\nDeprecated in favour of `submitAgentFeedbackToSite`, which collects feedback about every surface a site exposes to agents. Send the same payload there as a `site-content` subject.",
15321
15965
  "x-internal": true,
15322
15966
  "tags": [
15323
15967
  "site-insights"
@@ -15386,6 +16030,78 @@
15386
16030
  }
15387
16031
  }
15388
16032
  },
16033
+ "/orgs/{organizationId}/sites/{siteId}/agents/feedback": {
16034
+ "post": {
16035
+ "operationId": "submitAgentFeedbackToSite",
16036
+ "summary": "Submit agent feedback",
16037
+ "description": "Submit structured feedback from an AI agent about an MCP tool or operation, a CLI command, an API endpoint, a site page/mcp, or the product overall. The site collects and owns the feedback rather than being its subject.",
16038
+ "x-internal": true,
16039
+ "tags": [
16040
+ "site-agent-feedback"
16041
+ ],
16042
+ "security": [
16043
+ {
16044
+ "user": []
16045
+ },
16046
+ {
16047
+ "oauth": [
16048
+ "site:write"
16049
+ ]
16050
+ }
16051
+ ],
16052
+ "parameters": [
16053
+ {
16054
+ "$ref": "#/components/parameters/organizationId"
16055
+ },
16056
+ {
16057
+ "$ref": "#/components/parameters/siteId"
16058
+ }
16059
+ ],
16060
+ "requestBody": {
16061
+ "required": true,
16062
+ "content": {
16063
+ "application/json": {
16064
+ "schema": {
16065
+ "$ref": "#/components/schemas/AgentFeedbackInput"
16066
+ }
16067
+ }
16068
+ }
16069
+ },
16070
+ "responses": {
16071
+ "201": {
16072
+ "description": "The feedback was recorded successfully.",
16073
+ "content": {
16074
+ "application/json": {
16075
+ "schema": {
16076
+ "type": "object",
16077
+ "additionalProperties": false,
16078
+ "properties": {
16079
+ "id": {
16080
+ "type": "string",
16081
+ "description": "Unique identifier of the submission."
16082
+ },
16083
+ "result": {
16084
+ "type": "string",
16085
+ "description": "Message relayed back to the agent, acknowledging the feedback and telling it what happens next."
16086
+ }
16087
+ },
16088
+ "required": [
16089
+ "id",
16090
+ "result"
16091
+ ]
16092
+ }
16093
+ }
16094
+ }
16095
+ },
16096
+ "400": {
16097
+ "$ref": "#/components/responses/BadRequestError"
16098
+ },
16099
+ "403": {
16100
+ "$ref": "#/components/responses/ForbiddenError"
16101
+ }
16102
+ }
16103
+ }
16104
+ },
15389
16105
  "/orgs/{organizationId}/sites/{siteId}/ask": {
15390
16106
  "post": {
15391
16107
  "operationId": "streamAskInSite",
@@ -16905,6 +17621,8 @@
16905
17621
  "get": {
16906
17622
  "operationId": "getSiteTopicById",
16907
17623
  "summary": "Get a topic",
17624
+ "description": "Retrieves a single topic of a site by its ID, including its label, its parent topic when it is a subtopic, its summary and usage settings, and its page, record, finding and Ask AI question counts. Use this when you have a topic ID and need the topic's label or its stats.",
17625
+ "x-gitbook-mcp": true,
16908
17626
  "tags": [
16909
17627
  "site-context"
16910
17628
  ],
@@ -19787,7 +20505,7 @@
19787
20505
  "post": {
19788
20506
  "operationId": "createSiteRedirect",
19789
20507
  "summary": "Create a URL redirect rule for a site",
19790
- "description": "Creates a new redirect rule mapping a source path to a destination URL or content reference. Use the bulk upsert endpoint instead when creating many redirects at once.",
20508
+ "description": "Creates a new redirect rule mapping a source path to a destination URL or content reference. Creating a live redirect also resolves open broken-link findings for the same source path. Use the bulk upsert endpoint instead when creating many redirects at once.",
19791
20509
  "x-gitbook-mcp": true,
19792
20510
  "tags": [
19793
20511
  "site-redirects"
@@ -20173,6 +20891,14 @@
20173
20891
  "type": "boolean",
20174
20892
  "default": false
20175
20893
  }
20894
+ },
20895
+ {
20896
+ "name": "orderBy",
20897
+ "in": "query",
20898
+ "description": "Sort redirects by the given field.",
20899
+ "schema": {
20900
+ "$ref": "#/components/schemas/SiteRedirectOrderBy"
20901
+ }
20176
20902
  }
20177
20903
  ],
20178
20904
  "responses": {
@@ -21665,7 +22391,7 @@
21665
22391
  "patch": {
21666
22392
  "operationId": "updateGitSyncInstallationById",
21667
22393
  "summary": "Update a Git Sync installation configuration",
21668
- "description": "Updates the installation configuration, then queues a sync operation using the new settings.\nA `git` priority queues an import from the selected repository and branch into GitBook; a\n`gitbook` priority queues an export from GitBook to the repository. Site imports require a\n`docs.yaml` file at the configured project directory and return a conflict without saving or\nqueuing the sync when the file is missing.\n",
22394
+ "description": "Updates the installation configuration, then queues a sync operation using the new settings.\nA `git` priority queues an import from the selected repository and branch into GitBook; a\n`gitbook` priority queues an export from GitBook to the repository. Site imports require a\n`gitbook-docs.yaml` file at the configured project directory and return a conflict without saving or\nqueuing the sync when the file is missing.\n",
21669
22395
  "tags": [
21670
22396
  "git"
21671
22397
  ],
@@ -21760,11 +22486,11 @@
21760
22486
  "properties": {
21761
22487
  "path": {
21762
22488
  "type": "string",
21763
- "description": "Repository-relative path where `docs.yaml` is required."
22489
+ "description": "Repository-relative path where `gitbook-docs.yaml` is required."
21764
22490
  },
21765
22491
  "branch": {
21766
22492
  "type": "string",
21767
- "description": "Repository branch where `docs.yaml` is required."
22493
+ "description": "Repository branch where `gitbook-docs.yaml` is required."
21768
22494
  },
21769
22495
  "prompt": {
21770
22496
  "type": "string",
@@ -22207,6 +22933,11 @@
22207
22933
  "site:insights:read": "Read site analytics and insights.",
22208
22934
  "site:ask": "Ask AI questions across a site's content.",
22209
22935
  "site:search": "Search across a site's content.",
22936
+ "integration:read": "Read integrations and where they are installed.",
22937
+ "integration:installations:read": "Read integration installations and their configuration, which can include credentials for third-party services.",
22938
+ "integration:installations:write": "Install and configure integrations on an organization, its spaces and its sites.",
22939
+ "integration:publish": "Publish integrations, which can request their own permissions on your content, and route their events to a development tunnel.",
22940
+ "integration:delete": "Unpublish integrations, permanently deleting them and every installation of them.",
22210
22941
  "openapi:read": "Read OpenAPI specifications.",
22211
22942
  "openapi:write": "Create, update and delete OpenAPI specifications."
22212
22943
  }
@@ -22816,6 +23547,15 @@
22816
23547
  "type": "string"
22817
23548
  }
22818
23549
  },
23550
+ "siteExternalLinkId": {
23551
+ "name": "siteExternalLinkId",
23552
+ "in": "path",
23553
+ "required": true,
23554
+ "description": "The unique ID of the site external link",
23555
+ "schema": {
23556
+ "type": "string"
23557
+ }
23558
+ },
22819
23559
  "siteContextRecordId": {
22820
23560
  "name": "siteContextRecordId",
22821
23561
  "in": "path",
@@ -23560,6 +24300,10 @@
23560
24300
  "startedAt"
23561
24301
  ]
23562
24302
  },
24303
+ "operationTimeout": {
24304
+ "type": "integer",
24305
+ "description": "How long an operation is allowed to run before it is terminated (in milliseconds)."
24306
+ },
23563
24307
  "updatedAt": {
23564
24308
  "description": "When the Git provider details were last updated",
23565
24309
  "$ref": "#/components/schemas/Timestamp"
@@ -31807,7 +32551,7 @@
31807
32551
  }
31808
32552
  },
31809
32553
  "ChangeRequestContentChangeUpdatePage": {
31810
- "description": "Update an existing page. Its document and/or its metadata (title, icon, description, visibility, adaptive-content condition) can be changed.",
32554
+ "description": "Update an existing page. Its document and/or its metadata (title, icon, description, visibility, adaptive-content condition) can be changed, and it can be moved to a new parent and/or position with `into`/`at`.",
31811
32555
  "allOf": [
31812
32556
  {
31813
32557
  "$ref": "#/components/schemas/RevisionPageUpdate"
@@ -31832,6 +32576,22 @@
31832
32576
  "document": {
31833
32577
  "description": "New document for the page. When provided as markdown, its frontmatter is read to update the page metadata. Omit to update only the metadata fields.",
31834
32578
  "$ref": "#/components/schemas/Document"
32579
+ },
32580
+ "into": {
32581
+ "description": "Move the page to be a child of this page ID. Set to `null` to move it to the root of the page tree. Omit to leave the page's parent unchanged. The target cannot be the page itself or one of its own descendants.",
32582
+ "oneOf": [
32583
+ {
32584
+ "type": "string"
32585
+ },
32586
+ {
32587
+ "type": "null"
32588
+ }
32589
+ ]
32590
+ },
32591
+ "at": {
32592
+ "type": "integer",
32593
+ "minimum": 0,
32594
+ "description": "Zero-based index to move the page to among its new siblings (those of `into`, or the root pages when `into` is omitted or `null`). Omit to leave the page's position unchanged when its parent isn't changing, or to append it at the end when its parent is changing."
31835
32595
  }
31836
32596
  }
31837
32597
  }
@@ -36134,15 +36894,15 @@
36134
36894
  },
36135
36895
  "edit": {
36136
36896
  "type": "boolean",
36137
- "description": "Can the user edit content associated with the site."
36897
+ "description": "Can the user edit content and create draft content in the site."
36138
36898
  },
36139
36899
  "create": {
36140
36900
  "type": "boolean",
36141
- "description": "Can the user create content in the site."
36901
+ "description": "Can the user create draft content, publish content, and manage the site's content structure."
36142
36902
  },
36143
36903
  "admin": {
36144
36904
  "type": "boolean",
36145
- "description": "Can the user edit the site and manage its settings."
36905
+ "description": "Can the user manage the site content, settings and publish the site."
36146
36906
  },
36147
36907
  "installIntegration": {
36148
36908
  "type": "boolean",
@@ -37672,6 +38432,71 @@
37672
38432
  }
37673
38433
  }
37674
38434
  },
38435
+ "SiteOnboardingSource": {
38436
+ "type": "string",
38437
+ "description": "Where the user's docs are coming from today.",
38438
+ "enum": [
38439
+ "markdown-in-git",
38440
+ "import",
38441
+ "template"
38442
+ ]
38443
+ },
38444
+ "SiteOnboardingAudience": {
38445
+ "type": "string",
38446
+ "description": "Who the user wants to be able to access their site.",
38447
+ "enum": [
38448
+ "public",
38449
+ "mixed",
38450
+ "protected",
38451
+ "internal"
38452
+ ]
38453
+ },
38454
+ "SiteOnboardingInterest": {
38455
+ "type": "string",
38456
+ "description": "Something the user is interested in doing with the site.",
38457
+ "enum": [
38458
+ "adaptive-content",
38459
+ "api-docs",
38460
+ "proactive-agent"
38461
+ ]
38462
+ },
38463
+ "SiteOnboardingPreferences": {
38464
+ "type": "object",
38465
+ "description": "Preferences collected from the user during site onboarding, used to tailor recommendations and to apply their initial setup choices.",
38466
+ "properties": {
38467
+ "source": {
38468
+ "oneOf": [
38469
+ {
38470
+ "$ref": "#/components/schemas/SiteOnboardingSource"
38471
+ },
38472
+ {
38473
+ "type": "null"
38474
+ }
38475
+ ]
38476
+ },
38477
+ "audience": {
38478
+ "oneOf": [
38479
+ {
38480
+ "$ref": "#/components/schemas/SiteOnboardingAudience"
38481
+ },
38482
+ {
38483
+ "type": "null"
38484
+ }
38485
+ ]
38486
+ },
38487
+ "interests": {
38488
+ "type": "array",
38489
+ "items": {
38490
+ "$ref": "#/components/schemas/SiteOnboardingInterest"
38491
+ }
38492
+ }
38493
+ },
38494
+ "required": [
38495
+ "source",
38496
+ "audience",
38497
+ "interests"
38498
+ ]
38499
+ },
37675
38500
  "CreateOrganization": {
37676
38501
  "type": "object",
37677
38502
  "properties": {
@@ -37681,11 +38506,9 @@
37681
38506
  "emailDomains": {
37682
38507
  "$ref": "#/components/schemas/OrganizationEmailDomains"
37683
38508
  },
37684
- "type": {
37685
- "$ref": "#/components/schemas/OrganizationType"
37686
- },
37687
- "useCase": {
37688
- "$ref": "#/components/schemas/OrganizationUseCase"
38509
+ "onboardingPreferences": {
38510
+ "description": "Preferences collected from the user during onboarding, to apply to the organization's default site. Only used when `withDefaultSite` is true.",
38511
+ "$ref": "#/components/schemas/SiteOnboardingPreferences"
37689
38512
  }
37690
38513
  },
37691
38514
  "required": [
@@ -37941,7 +38764,7 @@
37941
38764
  },
37942
38765
  "children": {
37943
38766
  "type": "array",
37944
- "description": "List of all child sections and groups nested under this group",
38767
+ "description": "List of all child sections, groups, and external links nested under this group",
37945
38768
  "items": {
37946
38769
  "oneOf": [
37947
38770
  {
@@ -37949,6 +38772,9 @@
37949
38772
  },
37950
38773
  {
37951
38774
  "$ref": "#/components/schemas/SiteSectionGroup"
38775
+ },
38776
+ {
38777
+ "$ref": "#/components/schemas/SiteExternalLink"
37952
38778
  }
37953
38779
  ]
37954
38780
  }
@@ -37966,6 +38792,60 @@
37966
38792
  "children"
37967
38793
  ]
37968
38794
  },
38795
+ "SiteExternalLink": {
38796
+ "type": "object",
38797
+ "properties": {
38798
+ "object": {
38799
+ "type": "string",
38800
+ "description": "The object type, which is always \"site-external-link\"",
38801
+ "enum": [
38802
+ "site-external-link"
38803
+ ]
38804
+ },
38805
+ "id": {
38806
+ "type": "string",
38807
+ "description": "Unique identifier of the external link"
38808
+ },
38809
+ "title": {
38810
+ "$ref": "#/components/schemas/SiteSectionTitle"
38811
+ },
38812
+ "localizedTitle": {
38813
+ "$ref": "#/components/schemas/LocalizedString128"
38814
+ },
38815
+ "description": {
38816
+ "$ref": "#/components/schemas/SiteSectionDescription"
38817
+ },
38818
+ "localizedDescription": {
38819
+ "$ref": "#/components/schemas/LocalizedString256"
38820
+ },
38821
+ "icon": {
38822
+ "$ref": "#/components/schemas/Icon"
38823
+ },
38824
+ "url": {
38825
+ "$ref": "#/components/schemas/URL",
38826
+ "description": "Absolute HTTP or HTTPS URL opened by the external link"
38827
+ },
38828
+ "sectionGroup": {
38829
+ "type": "string",
38830
+ "description": "ID of the section group the external link belongs to. Omitted for a root link."
38831
+ },
38832
+ "draft": {
38833
+ "type": "boolean",
38834
+ "description": "Whether the external link is draft and not live"
38835
+ },
38836
+ "condition": {
38837
+ "description": "Conditional expression used to evaluate whether the external link should be shown to the site's visitor",
38838
+ "$ref": "#/components/schemas/Expression"
38839
+ }
38840
+ },
38841
+ "required": [
38842
+ "object",
38843
+ "id",
38844
+ "title",
38845
+ "url",
38846
+ "draft"
38847
+ ]
38848
+ },
37969
38849
  "SiteStructure": {
37970
38850
  "oneOf": [
37971
38851
  {
@@ -37986,6 +38866,9 @@
37986
38866
  },
37987
38867
  {
37988
38868
  "$ref": "#/components/schemas/SiteSectionGroup"
38869
+ },
38870
+ {
38871
+ "$ref": "#/components/schemas/SiteExternalLink"
37989
38872
  }
37990
38873
  ]
37991
38874
  }
@@ -42789,12 +43672,13 @@
42789
43672
  "enum": [
42790
43673
  "site-space",
42791
43674
  "site-section",
42792
- "site-section-group"
43675
+ "site-section-group",
43676
+ "site-external-link"
42793
43677
  ]
42794
43678
  },
42795
43679
  "id": {
42796
43680
  "type": "string",
42797
- "description": "Unique identifier for the site structure item (site space, site section or site section group)."
43681
+ "description": "Unique identifier for the site structure item (site space, site section, site section group, or external link)."
42798
43682
  }
42799
43683
  },
42800
43684
  "required": [
@@ -42804,7 +43688,7 @@
42804
43688
  },
42805
43689
  "SiteStructureItemMovePosition": {
42806
43690
  "type": "object",
42807
- "description": "Position at which to move the site structure item (site space, site section or site section group).",
43691
+ "description": "Position at which to move the site structure item relative to any sibling of the same structure level.",
42808
43692
  "properties": {
42809
43693
  "before": {
42810
43694
  "$ref": "#/components/schemas/SiteStructureItemPointer"
@@ -42817,7 +43701,7 @@
42817
43701
  "SiteStructureItem": {
42818
43702
  "title": "Site Structure Item",
42819
43703
  "type": "object",
42820
- "description": "A site structure item can be a site space, a site section or a site section group.\nIt is used to represent the structure of a site.\n",
43704
+ "description": "A site structure item can be a site space, a site section, a site section group, or an external link.\nIt is used to represent the structure of a site.\n",
42821
43705
  "oneOf": [
42822
43706
  {
42823
43707
  "$ref": "#/components/schemas/SiteSpace"
@@ -42827,6 +43711,9 @@
42827
43711
  },
42828
43712
  {
42829
43713
  "$ref": "#/components/schemas/SiteSectionGroup"
43714
+ },
43715
+ {
43716
+ "$ref": "#/components/schemas/SiteExternalLink"
42830
43717
  }
42831
43718
  ]
42832
43719
  },
@@ -43142,6 +44029,276 @@
43142
44029
  "assistant"
43143
44030
  ]
43144
44031
  },
44032
+ "AgentFeedbackReportedBy": {
44033
+ "type": "object",
44034
+ "additionalProperties": false,
44035
+ "description": "The agent that reported the feedback. It must never identify the end user the agent is acting on behalf of.",
44036
+ "properties": {
44037
+ "model": {
44038
+ "type": "string",
44039
+ "maxLength": 100,
44040
+ "description": "Self-reported model powering the agent."
44041
+ },
44042
+ "userAgent": {
44043
+ "type": "string",
44044
+ "maxLength": 512,
44045
+ "description": "User-Agent the agent itself presented, for example `claude-code/1.2.3`. It is what identifies the harness the agent ran in."
44046
+ },
44047
+ "onDemand": {
44048
+ "type": "boolean",
44049
+ "default": false,
44050
+ "description": "Whether the user explicitly asked the agent to submit this feedback."
44051
+ }
44052
+ }
44053
+ },
44054
+ "AgentFeedbackSubjectMCPTool": {
44055
+ "type": "object",
44056
+ "additionalProperties": false,
44057
+ "description": "Feedback about a tool exposed by an MCP server.",
44058
+ "properties": {
44059
+ "kind": {
44060
+ "type": "string",
44061
+ "enum": [
44062
+ "mcp-tool"
44063
+ ]
44064
+ },
44065
+ "toolName": {
44066
+ "type": "string",
44067
+ "maxLength": 200,
44068
+ "description": "Name of the tool the agent called, as it was exposed to the agent."
44069
+ },
44070
+ "target": {
44071
+ "type": "string",
44072
+ "maxLength": 200,
44073
+ "description": "What the tool was pointed at, for a tool that dispatches to something else rather than doing one fixed thing. For a tool that invokes an API operation, the identifier of that operation."
44074
+ }
44075
+ },
44076
+ "required": [
44077
+ "kind",
44078
+ "toolName"
44079
+ ]
44080
+ },
44081
+ "AgentFeedbackSubjectCliCommand": {
44082
+ "type": "object",
44083
+ "additionalProperties": false,
44084
+ "description": "Feedback about a command exposed by a command line interface.",
44085
+ "properties": {
44086
+ "kind": {
44087
+ "type": "string",
44088
+ "enum": [
44089
+ "cli-command"
44090
+ ]
44091
+ },
44092
+ "command": {
44093
+ "type": "string",
44094
+ "maxLength": 200,
44095
+ "description": "The command the agent ran, without its arguments. Do not include any auth or other sensitive information."
44096
+ },
44097
+ "flags": {
44098
+ "type": "array",
44099
+ "maxItems": 50,
44100
+ "description": "Names of the flags passed to the command. It must never contain their values.",
44101
+ "items": {
44102
+ "type": "string",
44103
+ "maxLength": 100
44104
+ }
44105
+ }
44106
+ },
44107
+ "required": [
44108
+ "kind",
44109
+ "command"
44110
+ ]
44111
+ },
44112
+ "AgentFeedbackSubjectApiEndpoint": {
44113
+ "type": "object",
44114
+ "additionalProperties": false,
44115
+ "description": "Feedback about an API endpoint the agent called directly, without an MCP server or a command line interface in between.",
44116
+ "properties": {
44117
+ "kind": {
44118
+ "type": "string",
44119
+ "enum": [
44120
+ "api-endpoint"
44121
+ ]
44122
+ },
44123
+ "method": {
44124
+ "type": "string",
44125
+ "description": "HTTP method of the endpoint.",
44126
+ "enum": [
44127
+ "GET",
44128
+ "POST",
44129
+ "PUT",
44130
+ "PATCH",
44131
+ "DELETE",
44132
+ "HEAD",
44133
+ "OPTIONS"
44134
+ ]
44135
+ },
44136
+ "path": {
44137
+ "type": "string",
44138
+ "maxLength": 500,
44139
+ "description": "Templated path of the endpoint, for example `/v1/orders/{orderId}/fulfill`. It must never contain resolved identifiers or query string values."
44140
+ }
44141
+ },
44142
+ "required": [
44143
+ "kind",
44144
+ "method",
44145
+ "path"
44146
+ ]
44147
+ },
44148
+ "AgentFeedbackSubjectDocumentation": {
44149
+ "type": "object",
44150
+ "additionalProperties": false,
44151
+ "description": "Feedback about published documentation, such as a page that is outdated, incorrect, or missing information the agent needed to help its user.",
44152
+ "properties": {
44153
+ "kind": {
44154
+ "type": "string",
44155
+ "enum": [
44156
+ "documentation"
44157
+ ]
44158
+ },
44159
+ "url": {
44160
+ "description": "URL of the content the feedback is about.",
44161
+ "$ref": "#/components/schemas/URL"
44162
+ }
44163
+ },
44164
+ "required": [
44165
+ "kind",
44166
+ "url"
44167
+ ]
44168
+ },
44169
+ "AgentFeedbackSubjectGeneric": {
44170
+ "type": "object",
44171
+ "additionalProperties": false,
44172
+ "description": "Feedback with no single tool, command, endpoint, or page behind it, such as product friction or a capability the agent expected to find and could not.",
44173
+ "properties": {
44174
+ "kind": {
44175
+ "type": "string",
44176
+ "enum": [
44177
+ "generic"
44178
+ ]
44179
+ }
44180
+ },
44181
+ "required": [
44182
+ "kind"
44183
+ ]
44184
+ },
44185
+ "AgentFeedbackSubject": {
44186
+ "description": "What the feedback is about. `kind` determines both the shape of the subject and the surface the agent was working through.",
44187
+ "oneOf": [
44188
+ {
44189
+ "$ref": "#/components/schemas/AgentFeedbackSubjectMCPTool"
44190
+ },
44191
+ {
44192
+ "$ref": "#/components/schemas/AgentFeedbackSubjectCliCommand"
44193
+ },
44194
+ {
44195
+ "$ref": "#/components/schemas/AgentFeedbackSubjectApiEndpoint"
44196
+ },
44197
+ {
44198
+ "$ref": "#/components/schemas/AgentFeedbackSubjectDocumentation"
44199
+ },
44200
+ {
44201
+ "$ref": "#/components/schemas/AgentFeedbackSubjectGeneric"
44202
+ }
44203
+ ],
44204
+ "discriminator": {
44205
+ "propertyName": "kind"
44206
+ }
44207
+ },
44208
+ "AgentFeedbackContent": {
44209
+ "type": "object",
44210
+ "additionalProperties": false,
44211
+ "description": "The content of the feedback. It must never contain parameter values, request or response bodies, credentials, or anything identifying the end user the agent acted for.",
44212
+ "properties": {
44213
+ "category": {
44214
+ "type": "string",
44215
+ "description": "Classification of the feedback:\n - Usability: The subject was hard to understand or use correctly, such as a confusing name or unclear parameters.\n - Reliability: The subject behaved inconsistently, failed unexpectedly, or returned unusable results.\n - Documentation: The description, schema, or guidance about the subject was missing, unclear, or misleading.\n - Efficiency: Reaching the outcome took more calls, steps, or tokens than it should have.\n - Interoperability: The subject did not compose well with other tools, operations, or formats.\n - Could not accomplish: Nothing exposed to the agent could accomplish what it needed to do.",
44216
+ "enum": [
44217
+ "usability",
44218
+ "reliability",
44219
+ "documentation",
44220
+ "efficiency",
44221
+ "interoperability",
44222
+ "could-not-accomplish"
44223
+ ]
44224
+ },
44225
+ "severity": {
44226
+ "type": "string",
44227
+ "description": "How much the issue impeded the agent.",
44228
+ "enum": [
44229
+ "low",
44230
+ "medium",
44231
+ "high"
44232
+ ]
44233
+ },
44234
+ "goal": {
44235
+ "description": "What the agent was working towards when it ran into the issue.",
44236
+ "$ref": "#/components/schemas/AgentGoal"
44237
+ },
44238
+ "summary": {
44239
+ "type": "string",
44240
+ "minLength": 1,
44241
+ "maxLength": 256,
44242
+ "description": "A short summary of what went wrong, in the agent's own words."
44243
+ },
44244
+ "detail": {
44245
+ "type": "string",
44246
+ "maxLength": 4096,
44247
+ "description": "Additional explanation of the issue and how the agent ran into it."
44248
+ },
44249
+ "workaround": {
44250
+ "type": "string",
44251
+ "maxLength": 2048,
44252
+ "description": "How the agent worked around the issue, when it managed to."
44253
+ },
44254
+ "metrics": {
44255
+ "type": "object",
44256
+ "additionalProperties": false,
44257
+ "description": "How the agent interacted with the subject before reporting.",
44258
+ "properties": {
44259
+ "callCount": {
44260
+ "type": "integer",
44261
+ "minimum": 0,
44262
+ "description": "Number of times the agent used the subject."
44263
+ },
44264
+ "successCount": {
44265
+ "type": "integer",
44266
+ "minimum": 0,
44267
+ "description": "Number of those uses that produced a usable result."
44268
+ },
44269
+ "retryCount": {
44270
+ "type": "integer",
44271
+ "minimum": 0,
44272
+ "description": "Number of those uses that were retries after a failure."
44273
+ }
44274
+ }
44275
+ }
44276
+ },
44277
+ "required": [
44278
+ "category",
44279
+ "summary"
44280
+ ]
44281
+ },
44282
+ "AgentFeedbackInput": {
44283
+ "type": "object",
44284
+ "additionalProperties": false,
44285
+ "description": "Feedback submitted by an AI agent about a tool, command, endpoint or page it worked with. `reportedBy` and `feedback` have the same shape whatever the feedback is about; only `subject` varies.",
44286
+ "properties": {
44287
+ "reportedBy": {
44288
+ "$ref": "#/components/schemas/AgentFeedbackReportedBy"
44289
+ },
44290
+ "subject": {
44291
+ "$ref": "#/components/schemas/AgentFeedbackSubject"
44292
+ },
44293
+ "feedback": {
44294
+ "$ref": "#/components/schemas/AgentFeedbackContent"
44295
+ }
44296
+ },
44297
+ "required": [
44298
+ "subject",
44299
+ "feedback"
44300
+ ]
44301
+ },
43145
44302
  "SiteInsightsSession": {
43146
44303
  "type": "object",
43147
44304
  "description": "Identifiers for a GitBook site session, used for analytics and adaptive content.",
@@ -43440,12 +44597,13 @@
43440
44597
  },
43441
44598
  "SiteFindingType": {
43442
44599
  "type": "string",
43443
- "description": "Classification of a site finding:\n - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.\n - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.\n - Content gap: The content is missing important information that should be present to answer user questions effectively.\n - Broken link: A URL on the site returns a 404, and can be resolved by creating a redirect or a new page.\n - Other: Any other type of finding not covered by the above categories.",
44600
+ "description": "Classification of a site finding:\n - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.\n - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.\n - Content gap: The content is missing important information that should be present to answer user questions effectively.\n - Broken link: A URL on the site returns a 404, and can be resolved by creating a redirect or a new page.\n - Outbound link error: An external URL used by the site's content fails to resolve, and can be fixed by replacing or removing the link.\n - Other: Any other type of finding not covered by the above categories.",
43444
44601
  "enum": [
43445
44602
  "content-outdated",
43446
44603
  "content-incorrect",
43447
44604
  "content-gap",
43448
44605
  "broken-link",
44606
+ "outbound-link-error",
43449
44607
  "other"
43450
44608
  ]
43451
44609
  },
@@ -43491,102 +44649,6 @@
43491
44649
  "maxLength": 512,
43492
44650
  "pattern": "^\\/(?!\\*)(?!.*\\*.+)(?:[A-Za-z0-9\\-._~+]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\\/\\*|\\*)?$"
43493
44651
  },
43494
- "SiteRedirectDestinationSiteSection": {
43495
- "type": "object",
43496
- "properties": {
43497
- "kind": {
43498
- "type": "string",
43499
- "enum": [
43500
- "site-section"
43501
- ]
43502
- },
43503
- "siteSectionId": {
43504
- "type": "string",
43505
- "description": "Unique identifier for the site section to redirect to"
43506
- }
43507
- },
43508
- "required": [
43509
- "kind",
43510
- "siteSectionId"
43511
- ]
43512
- },
43513
- "SiteRedirectDestinationSiteSpace": {
43514
- "type": "object",
43515
- "properties": {
43516
- "kind": {
43517
- "type": "string",
43518
- "enum": [
43519
- "site-space"
43520
- ]
43521
- },
43522
- "siteSpaceId": {
43523
- "type": "string",
43524
- "description": "Unique identifier for the site space to redirect to"
43525
- }
43526
- },
43527
- "required": [
43528
- "kind",
43529
- "siteSpaceId"
43530
- ]
43531
- },
43532
- "SiteRedirectDestinationPage": {
43533
- "type": "object",
43534
- "properties": {
43535
- "kind": {
43536
- "type": "string",
43537
- "enum": [
43538
- "site-page"
43539
- ]
43540
- },
43541
- "siteSpaceId": {
43542
- "type": "string",
43543
- "description": "Unique identifier for the site space of the page"
43544
- },
43545
- "pageId": {
43546
- "type": "string",
43547
- "description": "Unique identifier for the page within the site space to redirect to"
43548
- }
43549
- },
43550
- "required": [
43551
- "kind",
43552
- "siteSpaceId",
43553
- "pageId"
43554
- ]
43555
- },
43556
- "SiteRedirectDestinationExternal": {
43557
- "type": "object",
43558
- "properties": {
43559
- "kind": {
43560
- "type": "string",
43561
- "enum": [
43562
- "external"
43563
- ]
43564
- },
43565
- "url": {
43566
- "$ref": "#/components/schemas/URL"
43567
- }
43568
- },
43569
- "required": [
43570
- "kind",
43571
- "url"
43572
- ]
43573
- },
43574
- "SiteRedirectDestination": {
43575
- "oneOf": [
43576
- {
43577
- "$ref": "#/components/schemas/SiteRedirectDestinationSiteSection"
43578
- },
43579
- {
43580
- "$ref": "#/components/schemas/SiteRedirectDestinationSiteSpace"
43581
- },
43582
- {
43583
- "$ref": "#/components/schemas/SiteRedirectDestinationPage"
43584
- },
43585
- {
43586
- "$ref": "#/components/schemas/SiteRedirectDestinationExternal"
43587
- }
43588
- ]
43589
- },
43590
44652
  "SiteRedirectInputDestinationPath": {
43591
44653
  "type": "object",
43592
44654
  "properties": {
@@ -43611,16 +44673,6 @@
43611
44673
  "path"
43612
44674
  ]
43613
44675
  },
43614
- "SiteRedirectInputDestination": {
43615
- "oneOf": [
43616
- {
43617
- "$ref": "#/components/schemas/SiteRedirectDestination"
43618
- },
43619
- {
43620
- "$ref": "#/components/schemas/SiteRedirectInputDestinationPath"
43621
- }
43622
- ]
43623
- },
43624
44676
  "SiteFindingBrokenLinkAction": {
43625
44677
  "type": "object",
43626
44678
  "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).",
@@ -43633,7 +44685,7 @@
43633
44685
  "description": "Whether the redirect appends the wildcard-matched suffix of the source path to the destination."
43634
44686
  },
43635
44687
  "destination": {
43636
- "$ref": "#/components/schemas/SiteRedirectInputDestination"
44688
+ "$ref": "#/components/schemas/SiteRedirectInputDestinationPath"
43637
44689
  }
43638
44690
  },
43639
44691
  "required": [
@@ -43641,6 +44693,54 @@
43641
44693
  "destination"
43642
44694
  ]
43643
44695
  },
44696
+ "SiteFindingOutboundLink": {
44697
+ "type": "object",
44698
+ "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.",
44699
+ "properties": {
44700
+ "url": {
44701
+ "type": "string",
44702
+ "format": "uri",
44703
+ "description": "The external URL that fails to resolve."
44704
+ },
44705
+ "status": {
44706
+ "type": "string",
44707
+ "description": "Current health status of the URL for this site.",
44708
+ "enum": [
44709
+ "pending",
44710
+ "healthy",
44711
+ "suspect",
44712
+ "failed",
44713
+ "recovering",
44714
+ "canceled"
44715
+ ]
44716
+ },
44717
+ "failureKind": {
44718
+ "type": "string",
44719
+ "description": "Classification of the confirmed failure.",
44720
+ "enum": [
44721
+ "client-error",
44722
+ "server-error",
44723
+ "redirect",
44724
+ "dns",
44725
+ "tls",
44726
+ "connection",
44727
+ "timeout"
44728
+ ]
44729
+ },
44730
+ "httpStatus": {
44731
+ "type": "number",
44732
+ "description": "HTTP status code of the last observation, when one was received."
44733
+ },
44734
+ "checkedAt": {
44735
+ "$ref": "#/components/schemas/Timestamp",
44736
+ "description": "When the URL was last observed over HTTP."
44737
+ }
44738
+ },
44739
+ "required": [
44740
+ "url",
44741
+ "status"
44742
+ ]
44743
+ },
43644
44744
  "SiteFinding": {
43645
44745
  "type": "object",
43646
44746
  "properties": {
@@ -43703,6 +44803,9 @@
43703
44803
  "brokenLinkAction": {
43704
44804
  "$ref": "#/components/schemas/SiteFindingBrokenLinkAction"
43705
44805
  },
44806
+ "outboundLink": {
44807
+ "$ref": "#/components/schemas/SiteFindingOutboundLink"
44808
+ },
43706
44809
  "createdAt": {
43707
44810
  "$ref": "#/components/schemas/Timestamp"
43708
44811
  },
@@ -49261,7 +50364,17 @@
49261
50364
  "vscode",
49262
50365
  "claude-code",
49263
50366
  "codex",
49264
- "opencode"
50367
+ "opencode",
50368
+ "gptbot",
50369
+ "claudebot",
50370
+ "meta-fetcher",
50371
+ "grok",
50372
+ "github-copilot",
50373
+ "meta-webindexer",
50374
+ "meta-ads",
50375
+ "duckassist",
50376
+ "amzn-searchbot",
50377
+ "amzn-user"
49265
50378
  ]
49266
50379
  },
49267
50380
  "SiteInsightsPageNotFoundType": {
@@ -50625,6 +51738,112 @@
50625
51738
  }
50626
51739
  }
50627
51740
  },
51741
+ "SiteRedirectOrderBy": {
51742
+ "type": "string",
51743
+ "enum": [
51744
+ "createdAt",
51745
+ "updatedAt",
51746
+ "source"
51747
+ ],
51748
+ "default": "createdAt",
51749
+ "description": "The field to sort site redirects by. `createdAt` returns the most recently created redirects first. `updatedAt` returns the most recently updated redirects first (falling back to the creation date for redirects never updated). `source` returns redirects sorted alphabetically by source path. Defaults to 'createdAt'."
51750
+ },
51751
+ "SiteRedirectDestinationSiteSection": {
51752
+ "type": "object",
51753
+ "properties": {
51754
+ "kind": {
51755
+ "type": "string",
51756
+ "enum": [
51757
+ "site-section"
51758
+ ]
51759
+ },
51760
+ "siteSectionId": {
51761
+ "type": "string",
51762
+ "description": "Unique identifier for the site section to redirect to"
51763
+ }
51764
+ },
51765
+ "required": [
51766
+ "kind",
51767
+ "siteSectionId"
51768
+ ]
51769
+ },
51770
+ "SiteRedirectDestinationSiteSpace": {
51771
+ "type": "object",
51772
+ "properties": {
51773
+ "kind": {
51774
+ "type": "string",
51775
+ "enum": [
51776
+ "site-space"
51777
+ ]
51778
+ },
51779
+ "siteSpaceId": {
51780
+ "type": "string",
51781
+ "description": "Unique identifier for the site space to redirect to"
51782
+ }
51783
+ },
51784
+ "required": [
51785
+ "kind",
51786
+ "siteSpaceId"
51787
+ ]
51788
+ },
51789
+ "SiteRedirectDestinationPage": {
51790
+ "type": "object",
51791
+ "properties": {
51792
+ "kind": {
51793
+ "type": "string",
51794
+ "enum": [
51795
+ "site-page"
51796
+ ]
51797
+ },
51798
+ "siteSpaceId": {
51799
+ "type": "string",
51800
+ "description": "Unique identifier for the site space of the page"
51801
+ },
51802
+ "pageId": {
51803
+ "type": "string",
51804
+ "description": "Unique identifier for the page within the site space to redirect to"
51805
+ }
51806
+ },
51807
+ "required": [
51808
+ "kind",
51809
+ "siteSpaceId",
51810
+ "pageId"
51811
+ ]
51812
+ },
51813
+ "SiteRedirectDestinationExternal": {
51814
+ "type": "object",
51815
+ "properties": {
51816
+ "kind": {
51817
+ "type": "string",
51818
+ "enum": [
51819
+ "external"
51820
+ ]
51821
+ },
51822
+ "url": {
51823
+ "$ref": "#/components/schemas/URL"
51824
+ }
51825
+ },
51826
+ "required": [
51827
+ "kind",
51828
+ "url"
51829
+ ]
51830
+ },
51831
+ "SiteRedirectDestination": {
51832
+ "oneOf": [
51833
+ {
51834
+ "$ref": "#/components/schemas/SiteRedirectDestinationSiteSection"
51835
+ },
51836
+ {
51837
+ "$ref": "#/components/schemas/SiteRedirectDestinationSiteSpace"
51838
+ },
51839
+ {
51840
+ "$ref": "#/components/schemas/SiteRedirectDestinationPage"
51841
+ },
51842
+ {
51843
+ "$ref": "#/components/schemas/SiteRedirectDestinationExternal"
51844
+ }
51845
+ ]
51846
+ },
50628
51847
  "SiteRedirect": {
50629
51848
  "type": "object",
50630
51849
  "properties": {
@@ -50651,6 +51870,16 @@
50651
51870
  },
50652
51871
  "destination": {
50653
51872
  "$ref": "#/components/schemas/SiteRedirectDestination"
51873
+ },
51874
+ "createdAt": {
51875
+ "type": "string",
51876
+ "format": "date-time",
51877
+ "description": "When the redirect was created."
51878
+ },
51879
+ "updatedAt": {
51880
+ "type": "string",
51881
+ "format": "date-time",
51882
+ "description": "When the redirect was last updated. Absent if never updated since creation."
50654
51883
  }
50655
51884
  },
50656
51885
  "required": [
@@ -50659,7 +51888,18 @@
50659
51888
  "source",
50660
51889
  "draft",
50661
51890
  "captureWildcard",
50662
- "destination"
51891
+ "destination",
51892
+ "createdAt"
51893
+ ]
51894
+ },
51895
+ "SiteRedirectInputDestination": {
51896
+ "oneOf": [
51897
+ {
51898
+ "$ref": "#/components/schemas/SiteRedirectDestination"
51899
+ },
51900
+ {
51901
+ "$ref": "#/components/schemas/SiteRedirectInputDestinationPath"
51902
+ }
50663
51903
  ]
50664
51904
  },
50665
51905
  "SiteMcpServerName": {
@@ -53079,7 +54319,7 @@
53079
54319
  },
53080
54320
  "GitSyncSiteConfig": {
53081
54321
  "type": "object",
53082
- "description": "Schema for a site `docs.yaml` file — the canonical contract for what\ncan be authored in Git Sync to drive a site's structure.\n\nThe file lives at the root of the site's project directory in the synced\nrepository. It names the site and maps the repository's content directories\nonto the site's navigation.\n",
54322
+ "description": "Schema for a site `gitbook-docs.yaml` file — the canonical contract for what\ncan be authored in Git Sync to drive a site's structure.\n\nThe file lives at the root of the site's project directory in the synced\nrepository. It names the site and maps the repository's content directories\nonto the site's navigation.\n",
53083
54323
  "properties": {
53084
54324
  "$schema": {
53085
54325
  "type": "string",