@gitbook/api 0.186.0 → 0.187.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/dist/client.d.ts +473 -335
- package/dist/constants.d.ts +4 -2
- package/dist/index.cjs +14 -10
- package/dist/index.js +12 -10
- package/package.json +1 -1
- package/spec/openapi.json +1924 -245
- package/spec/openapi.yaml +1088 -223
package/spec/openapi.yaml
CHANGED
|
@@ -618,7 +618,8 @@ paths:
|
|
|
618
618
|
/spaces/{spaceId}:
|
|
619
619
|
get:
|
|
620
620
|
operationId: getSpaceById
|
|
621
|
-
summary: Get a space by its ID
|
|
621
|
+
summary: Get full details of a space by its ID
|
|
622
|
+
description: Returns the full metadata for a space. Use this to resolve a spaceId into a complete Space object. If you only need content, use the content endpoint instead.
|
|
622
623
|
x-gitbook-mcp: true
|
|
623
624
|
tags:
|
|
624
625
|
- spaces
|
|
@@ -627,6 +628,8 @@ paths:
|
|
|
627
628
|
- user: []
|
|
628
629
|
- integration: []
|
|
629
630
|
- integration-installation: []
|
|
631
|
+
- oauth:
|
|
632
|
+
- space:read
|
|
630
633
|
parameters:
|
|
631
634
|
- $ref: "#/components/parameters/spaceId"
|
|
632
635
|
- $ref: "#/components/parameters/siteShareKey"
|
|
@@ -639,12 +642,15 @@ paths:
|
|
|
639
642
|
$ref: "#/components/schemas/Space"
|
|
640
643
|
patch:
|
|
641
644
|
operationId: updateSpaceById
|
|
642
|
-
summary: Update a space
|
|
645
|
+
summary: Update a space's title, icon, or settings
|
|
646
|
+
description: Updates a space's metadata and settings. To update page content, use the change-request workflow instead.
|
|
643
647
|
x-gitbook-mcp: true
|
|
644
648
|
tags:
|
|
645
649
|
- spaces
|
|
646
650
|
security:
|
|
647
651
|
- user: []
|
|
652
|
+
- oauth:
|
|
653
|
+
- space:write
|
|
648
654
|
parameters:
|
|
649
655
|
- $ref: "#/components/parameters/spaceId"
|
|
650
656
|
requestBody:
|
|
@@ -702,6 +708,8 @@ paths:
|
|
|
702
708
|
- spaces
|
|
703
709
|
security:
|
|
704
710
|
- user: []
|
|
711
|
+
- oauth:
|
|
712
|
+
- space:write
|
|
705
713
|
parameters:
|
|
706
714
|
- $ref: "#/components/parameters/spaceId"
|
|
707
715
|
responses:
|
|
@@ -712,12 +720,15 @@ paths:
|
|
|
712
720
|
/spaces/{spaceId}/duplicate:
|
|
713
721
|
post:
|
|
714
722
|
operationId: duplicateSpace
|
|
715
|
-
summary:
|
|
723
|
+
summary: Create a full copy of a space
|
|
724
|
+
description: Creates a new space that is a complete copy of the specified space, including all pages and their content. The duplicate is created in the same organization. Returns the newly created space. Use this to create a template-based copy or to snapshot a space before making large changes.
|
|
716
725
|
x-gitbook-mcp: true
|
|
717
726
|
tags:
|
|
718
727
|
- spaces
|
|
719
728
|
security:
|
|
720
729
|
- user: []
|
|
730
|
+
- oauth:
|
|
731
|
+
- space:write
|
|
721
732
|
parameters:
|
|
722
733
|
- $ref: "#/components/parameters/spaceId"
|
|
723
734
|
responses:
|
|
@@ -735,13 +746,15 @@ paths:
|
|
|
735
746
|
/spaces/{spaceId}/restore:
|
|
736
747
|
post:
|
|
737
748
|
operationId: restoreSpace
|
|
738
|
-
summary: Restore a deleted space
|
|
749
|
+
summary: Restore a recently deleted space from the trash
|
|
750
|
+
description: Restores a previously deleted space, making it active again. Only spaces deleted within the last 7 days can be restored; after that they are permanently removed. Returns the restored space object. To delete a space, use the space delete endpoint.
|
|
739
751
|
x-gitbook-mcp: true
|
|
740
|
-
description: Only spaces deleted in the last 7 days can be restored.
|
|
741
752
|
tags:
|
|
742
753
|
- spaces
|
|
743
754
|
security:
|
|
744
755
|
- user: []
|
|
756
|
+
- oauth:
|
|
757
|
+
- space:write
|
|
745
758
|
parameters:
|
|
746
759
|
- $ref: "#/components/parameters/spaceId"
|
|
747
760
|
responses:
|
|
@@ -754,12 +767,15 @@ paths:
|
|
|
754
767
|
/spaces/{spaceId}/move:
|
|
755
768
|
post:
|
|
756
769
|
operationId: moveSpace
|
|
757
|
-
summary: Move a space to a
|
|
770
|
+
summary: Move a space to a different collection or position
|
|
771
|
+
description: Moves a space to a new parent collection and/or a new position within the hierarchy.
|
|
758
772
|
x-gitbook-mcp: true
|
|
759
773
|
tags:
|
|
760
774
|
- spaces
|
|
761
775
|
security:
|
|
762
776
|
- user: []
|
|
777
|
+
- oauth:
|
|
778
|
+
- space:write
|
|
763
779
|
parameters:
|
|
764
780
|
- $ref: "#/components/parameters/spaceId"
|
|
765
781
|
requestBody:
|
|
@@ -797,12 +813,15 @@ paths:
|
|
|
797
813
|
/spaces/{spaceId}/embed:
|
|
798
814
|
get:
|
|
799
815
|
operationId: getEmbedByUrlInSpace
|
|
800
|
-
summary: Resolve a URL to an
|
|
816
|
+
summary: Resolve a URL to an oEmbed object within a space
|
|
817
|
+
description: Resolves an external URL to an oEmbed representation (title, thumbnail, HTML snippet) within the context of a space. Use this to preview or embed third-party content referenced in a space's pages. Requires the URL as a query parameter.
|
|
801
818
|
x-gitbook-mcp: true
|
|
802
819
|
tags:
|
|
803
820
|
- space-embeds
|
|
804
821
|
security:
|
|
805
822
|
- user: []
|
|
823
|
+
- oauth:
|
|
824
|
+
- space:read
|
|
806
825
|
parameters:
|
|
807
826
|
- $ref: "#/components/parameters/spaceId"
|
|
808
827
|
- name: url
|
|
@@ -821,12 +840,15 @@ paths:
|
|
|
821
840
|
/spaces/{spaceId}/search:
|
|
822
841
|
get:
|
|
823
842
|
operationId: searchSpaceContent
|
|
824
|
-
summary:
|
|
843
|
+
summary: Full-text search across all pages in a space
|
|
844
|
+
description: Searches the full text of all published pages in a space and returns matching pages with ranked excerpts. Use this to find pages by topic or keyword within a specific space. For site-wide search across all spaces in a site, use the site search endpoint instead.
|
|
825
845
|
x-gitbook-mcp: true
|
|
826
846
|
tags:
|
|
827
847
|
- space-content
|
|
828
848
|
security:
|
|
829
849
|
- user: []
|
|
850
|
+
- oauth:
|
|
851
|
+
- space:read
|
|
830
852
|
parameters:
|
|
831
853
|
- name: query
|
|
832
854
|
in: query
|
|
@@ -856,7 +878,8 @@ paths:
|
|
|
856
878
|
/spaces/{spaceId}/git/import:
|
|
857
879
|
post:
|
|
858
880
|
operationId: importGitRepository
|
|
859
|
-
summary:
|
|
881
|
+
summary: Pull content into a space from a connected Git repository
|
|
882
|
+
description: Triggers an import from the linked Git repository into the space, updating the space's content to match the repository. This is an async operation — it runs in the background after the request returns 204. Use getSpaceGitInfo to check sync status. The space must already have a Git provider configured.
|
|
860
883
|
x-gitbook-mcp: true
|
|
861
884
|
tags:
|
|
862
885
|
- space-git
|
|
@@ -864,6 +887,8 @@ paths:
|
|
|
864
887
|
- user: []
|
|
865
888
|
- integration: []
|
|
866
889
|
- integration-installation: []
|
|
890
|
+
- oauth:
|
|
891
|
+
- space:write
|
|
867
892
|
parameters:
|
|
868
893
|
- $ref: "#/components/parameters/spaceId"
|
|
869
894
|
responses:
|
|
@@ -878,7 +903,8 @@ paths:
|
|
|
878
903
|
/spaces/{spaceId}/git/export:
|
|
879
904
|
post:
|
|
880
905
|
operationId: exportToGitRepository
|
|
881
|
-
summary:
|
|
906
|
+
summary: Push space content to a connected Git repository
|
|
907
|
+
description: Triggers an export of the space's current content to the linked Git repository. This is an async operation — the export runs in the background after the request returns 204. Use getSpaceGitInfo to check the current git sync status. The space must already have a Git provider configured.
|
|
882
908
|
x-gitbook-mcp: true
|
|
883
909
|
tags:
|
|
884
910
|
- space-git
|
|
@@ -886,6 +912,8 @@ paths:
|
|
|
886
912
|
- user: []
|
|
887
913
|
- integration: []
|
|
888
914
|
- integration-installation: []
|
|
915
|
+
- oauth:
|
|
916
|
+
- space:write
|
|
889
917
|
parameters:
|
|
890
918
|
- $ref: "#/components/parameters/spaceId"
|
|
891
919
|
responses:
|
|
@@ -900,13 +928,15 @@ paths:
|
|
|
900
928
|
/spaces/{spaceId}/git/info:
|
|
901
929
|
get:
|
|
902
930
|
operationId: getSpaceGitInfo
|
|
903
|
-
summary: Get
|
|
931
|
+
summary: Get the Git Sync configuration and status for a space
|
|
932
|
+
description: Returns metadata about the Git Sync provider connected to the space. Returns 404 if no Git provider is configured. Use this to check sync state before triggering an import or export.
|
|
904
933
|
x-gitbook-mcp: true
|
|
905
|
-
description: Get metadata about the Git Sync provider currently set up on the space.
|
|
906
934
|
tags:
|
|
907
935
|
- space-git
|
|
908
936
|
security:
|
|
909
937
|
- user: []
|
|
938
|
+
- oauth:
|
|
939
|
+
- space:read
|
|
910
940
|
parameters:
|
|
911
941
|
- $ref: "#/components/parameters/spaceId"
|
|
912
942
|
responses:
|
|
@@ -942,6 +972,8 @@ paths:
|
|
|
942
972
|
- space-permissions
|
|
943
973
|
security:
|
|
944
974
|
- user: []
|
|
975
|
+
- oauth:
|
|
976
|
+
- space:permissions:write
|
|
945
977
|
parameters:
|
|
946
978
|
- $ref: "#/components/parameters/spaceId"
|
|
947
979
|
responses:
|
|
@@ -964,6 +996,8 @@ paths:
|
|
|
964
996
|
- space-permissions
|
|
965
997
|
security:
|
|
966
998
|
- user: []
|
|
999
|
+
- oauth:
|
|
1000
|
+
- space:permissions:write
|
|
967
1001
|
parameters:
|
|
968
1002
|
- $ref: "#/components/parameters/spaceId"
|
|
969
1003
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -989,6 +1023,8 @@ paths:
|
|
|
989
1023
|
- space-permissions
|
|
990
1024
|
security:
|
|
991
1025
|
- user: []
|
|
1026
|
+
- oauth:
|
|
1027
|
+
- space:permissions:write
|
|
992
1028
|
parameters:
|
|
993
1029
|
- $ref: "#/components/parameters/spaceId"
|
|
994
1030
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -1008,6 +1044,8 @@ paths:
|
|
|
1008
1044
|
- space-permissions
|
|
1009
1045
|
security:
|
|
1010
1046
|
- user: []
|
|
1047
|
+
- oauth:
|
|
1048
|
+
- space:permissions:read
|
|
1011
1049
|
parameters:
|
|
1012
1050
|
- $ref: "#/components/parameters/spaceId"
|
|
1013
1051
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -1039,6 +1077,8 @@ paths:
|
|
|
1039
1077
|
- space-permissions
|
|
1040
1078
|
security:
|
|
1041
1079
|
- user: []
|
|
1080
|
+
- oauth:
|
|
1081
|
+
- space:permissions:write
|
|
1042
1082
|
parameters:
|
|
1043
1083
|
- $ref: "#/components/parameters/spaceId"
|
|
1044
1084
|
- $ref: "#/components/parameters/userId"
|
|
@@ -1064,6 +1104,8 @@ paths:
|
|
|
1064
1104
|
- space-permissions
|
|
1065
1105
|
security:
|
|
1066
1106
|
- user: []
|
|
1107
|
+
- oauth:
|
|
1108
|
+
- space:permissions:write
|
|
1067
1109
|
parameters:
|
|
1068
1110
|
- $ref: "#/components/parameters/spaceId"
|
|
1069
1111
|
- $ref: "#/components/parameters/userId"
|
|
@@ -1080,6 +1122,8 @@ paths:
|
|
|
1080
1122
|
- space-permissions
|
|
1081
1123
|
security:
|
|
1082
1124
|
- user: []
|
|
1125
|
+
- oauth:
|
|
1126
|
+
- space:permissions:read
|
|
1083
1127
|
parameters:
|
|
1084
1128
|
- $ref: "#/components/parameters/spaceId"
|
|
1085
1129
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -1115,7 +1159,8 @@ paths:
|
|
|
1115
1159
|
/spaces/{spaceId}/content:
|
|
1116
1160
|
get:
|
|
1117
1161
|
operationId: getCurrentRevision
|
|
1118
|
-
summary: Get
|
|
1162
|
+
summary: Get the current published content revision of a space
|
|
1163
|
+
description: Retrieves the live published revision of a space, which includes the full page tree structure and associated files. Use this to inspect the currently published content state of a space. For in-progress edits, use the change-request content endpoint instead.
|
|
1119
1164
|
x-gitbook-mcp: true
|
|
1120
1165
|
tags:
|
|
1121
1166
|
- space-content
|
|
@@ -1123,6 +1168,8 @@ paths:
|
|
|
1123
1168
|
- user: []
|
|
1124
1169
|
- integration: []
|
|
1125
1170
|
- integration-installation: []
|
|
1171
|
+
- oauth:
|
|
1172
|
+
- space:read
|
|
1126
1173
|
parameters:
|
|
1127
1174
|
- $ref: "#/components/parameters/spaceId"
|
|
1128
1175
|
- $ref: "#/components/parameters/revisionMetadata"
|
|
@@ -1137,12 +1184,15 @@ paths:
|
|
|
1137
1184
|
/spaces/{spaceId}/content/template:
|
|
1138
1185
|
post:
|
|
1139
1186
|
operationId: applyTemplateToSpace
|
|
1140
|
-
summary: Apply a template to a space
|
|
1187
|
+
summary: Apply a content template to populate a space with initial pages
|
|
1188
|
+
description: Populates a space with pages and structure from a specified template, bootstrapping it with a standard documentation layout. Use this to initialise a new space rather than creating pages manually. Optionally apply the template to a specific change request instead of main content by providing the changeRequestId field.
|
|
1141
1189
|
x-gitbook-mcp: true
|
|
1142
1190
|
tags:
|
|
1143
1191
|
- space-content
|
|
1144
1192
|
security:
|
|
1145
1193
|
- user: []
|
|
1194
|
+
- oauth:
|
|
1195
|
+
- space:write
|
|
1146
1196
|
parameters:
|
|
1147
1197
|
- $ref: "#/components/parameters/spaceId"
|
|
1148
1198
|
responses:
|
|
@@ -1163,12 +1213,15 @@ paths:
|
|
|
1163
1213
|
/spaces/{spaceId}/content/pages:
|
|
1164
1214
|
get:
|
|
1165
1215
|
operationId: listPages
|
|
1166
|
-
summary: List all space
|
|
1216
|
+
summary: List all pages in a space with their hierarchy and metadata
|
|
1217
|
+
description: Returns the complete list of all pages in a space's current revision, including their titles, URL paths, and parent-child relationships. Use this to understand the full content structure of a space or build navigation. For the content of a single page, use getPageById or getPageByPath instead.
|
|
1167
1218
|
x-gitbook-mcp: true
|
|
1168
1219
|
tags:
|
|
1169
1220
|
- space-content
|
|
1170
1221
|
security:
|
|
1171
1222
|
- user: []
|
|
1223
|
+
- oauth:
|
|
1224
|
+
- space:read
|
|
1172
1225
|
parameters:
|
|
1173
1226
|
- $ref: "#/components/parameters/spaceId"
|
|
1174
1227
|
- $ref: "#/components/parameters/revisionMetadata"
|
|
@@ -1190,12 +1243,15 @@ paths:
|
|
|
1190
1243
|
/spaces/{spaceId}/content/files:
|
|
1191
1244
|
get:
|
|
1192
1245
|
operationId: listFiles
|
|
1193
|
-
summary: List all
|
|
1246
|
+
summary: List all uploaded files and assets in a space
|
|
1247
|
+
description: Returns a paginated list of all files (images, attachments, and other assets) uploaded to a space's current revision. Use this to discover available assets or audit file usage across a space.
|
|
1194
1248
|
x-gitbook-mcp: true
|
|
1195
1249
|
tags:
|
|
1196
1250
|
- space-content
|
|
1197
1251
|
security:
|
|
1198
1252
|
- user: []
|
|
1253
|
+
- oauth:
|
|
1254
|
+
- space:read
|
|
1199
1255
|
parameters:
|
|
1200
1256
|
- $ref: "#/components/parameters/spaceId"
|
|
1201
1257
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -1221,12 +1277,15 @@ paths:
|
|
|
1221
1277
|
/spaces/{spaceId}/content/files/{fileId}:
|
|
1222
1278
|
get:
|
|
1223
1279
|
operationId: getFileById
|
|
1224
|
-
summary: Get a
|
|
1280
|
+
summary: Get a specific uploaded file from a space by its ID
|
|
1281
|
+
description: Retrieves metadata and download URL for a single file (image, attachment, or other asset) in a space's current revision by its file ID. Use this when you have a specific file ID and need its URL, MIME type, or other metadata.
|
|
1225
1282
|
x-gitbook-mcp: true
|
|
1226
1283
|
tags:
|
|
1227
1284
|
- space-content
|
|
1228
1285
|
security:
|
|
1229
1286
|
- user: []
|
|
1287
|
+
- oauth:
|
|
1288
|
+
- space:read
|
|
1230
1289
|
parameters:
|
|
1231
1290
|
- $ref: "#/components/parameters/spaceId"
|
|
1232
1291
|
- $ref: "#/components/parameters/fileId"
|
|
@@ -1242,12 +1301,15 @@ paths:
|
|
|
1242
1301
|
/spaces/{spaceId}/content/files/{fileId}/backlinks:
|
|
1243
1302
|
get:
|
|
1244
1303
|
operationId: listSpaceFileBacklinks
|
|
1245
|
-
summary: List all space
|
|
1304
|
+
summary: List all pages in a space that reference a specific file
|
|
1305
|
+
description: Returns the content locations (pages and inline positions) within the space that link to or embed the specified file. Use this to find where an asset is used before deleting or replacing it.
|
|
1246
1306
|
x-gitbook-mcp: true
|
|
1247
1307
|
tags:
|
|
1248
1308
|
- space-content
|
|
1249
1309
|
security:
|
|
1250
1310
|
- user: []
|
|
1311
|
+
- oauth:
|
|
1312
|
+
- space:read
|
|
1251
1313
|
parameters:
|
|
1252
1314
|
- $ref: "#/components/parameters/spaceId"
|
|
1253
1315
|
- $ref: "#/components/parameters/fileId"
|
|
@@ -1272,12 +1334,15 @@ paths:
|
|
|
1272
1334
|
/spaces/{spaceId}/content/page/{pageId}:
|
|
1273
1335
|
get:
|
|
1274
1336
|
operationId: getPageById
|
|
1275
|
-
summary: Get a
|
|
1337
|
+
summary: Get a single page from a space by its ID
|
|
1338
|
+
description: Retrieves a page's metadata, content, and document structure from a space's current revision by its page ID. Use this when you know the exact page ID and need its content or path. For lookup by URL path, use the content/path endpoint instead.
|
|
1276
1339
|
x-gitbook-mcp: true
|
|
1277
1340
|
tags:
|
|
1278
1341
|
- space-content
|
|
1279
1342
|
security:
|
|
1280
1343
|
- user: []
|
|
1344
|
+
- oauth:
|
|
1345
|
+
- space:read
|
|
1281
1346
|
parameters:
|
|
1282
1347
|
- $ref: "#/components/parameters/spaceId"
|
|
1283
1348
|
- $ref: "#/components/parameters/pageId"
|
|
@@ -1297,7 +1362,8 @@ paths:
|
|
|
1297
1362
|
/spaces/{spaceId}/content/page/{pageId}/links:
|
|
1298
1363
|
get:
|
|
1299
1364
|
operationId: listPageLinksInSpace
|
|
1300
|
-
summary: List all
|
|
1365
|
+
summary: List all outbound links from a specific page in a space
|
|
1366
|
+
description: Returns all content references (internal links, cross-space links, and external URLs) originating from the specified page. Use this to audit link health or detect broken references on a page.
|
|
1301
1367
|
x-gitbook-mcp: true
|
|
1302
1368
|
tags:
|
|
1303
1369
|
- space-content
|
|
@@ -1305,6 +1371,8 @@ paths:
|
|
|
1305
1371
|
- critical
|
|
1306
1372
|
security:
|
|
1307
1373
|
- user: []
|
|
1374
|
+
- oauth:
|
|
1375
|
+
- space:read
|
|
1308
1376
|
parameters:
|
|
1309
1377
|
- $ref: "#/components/parameters/spaceId"
|
|
1310
1378
|
- $ref: "#/components/parameters/pageId"
|
|
@@ -1336,12 +1404,15 @@ paths:
|
|
|
1336
1404
|
/spaces/{spaceId}/content/page/{pageId}/backlinks:
|
|
1337
1405
|
get:
|
|
1338
1406
|
operationId: listSpacePageBacklinks
|
|
1339
|
-
summary: List all space
|
|
1407
|
+
summary: List all pages in a space that link to a specific page
|
|
1408
|
+
description: Returns the content locations (pages and inline positions) within the space that contain links pointing to the specified page. Use this to understand a page's incoming references before moving, deleting, or renaming it.
|
|
1340
1409
|
x-gitbook-mcp: true
|
|
1341
1410
|
tags:
|
|
1342
1411
|
- space-content
|
|
1343
1412
|
security:
|
|
1344
1413
|
- user: []
|
|
1414
|
+
- oauth:
|
|
1415
|
+
- space:read
|
|
1345
1416
|
parameters:
|
|
1346
1417
|
- $ref: "#/components/parameters/spaceId"
|
|
1347
1418
|
- $ref: "#/components/parameters/pageId"
|
|
@@ -1366,12 +1437,15 @@ paths:
|
|
|
1366
1437
|
/spaces/{spaceId}/content/page/{pageId}/meta-links:
|
|
1367
1438
|
get:
|
|
1368
1439
|
operationId: listSpacePageMetaLinks
|
|
1369
|
-
summary:
|
|
1440
|
+
summary: Get navigation metadata links for a page (previous, next, parent)
|
|
1441
|
+
description: Returns structural navigation metadata for a page, including references to the previous page, next page, and parent page within the space's hierarchy. Use this to implement or inspect linear navigation flows in a docs site without fetching the full page tree.
|
|
1370
1442
|
x-gitbook-mcp: true
|
|
1371
1443
|
tags:
|
|
1372
1444
|
- space-content
|
|
1373
1445
|
security:
|
|
1374
1446
|
- user: []
|
|
1447
|
+
- oauth:
|
|
1448
|
+
- space:read
|
|
1375
1449
|
parameters:
|
|
1376
1450
|
- $ref: "#/components/parameters/spaceId"
|
|
1377
1451
|
- $ref: "#/components/parameters/pageId"
|
|
@@ -1385,12 +1459,15 @@ paths:
|
|
|
1385
1459
|
/spaces/{spaceId}/content/path/{pagePath}:
|
|
1386
1460
|
get:
|
|
1387
1461
|
operationId: getPageByPath
|
|
1388
|
-
summary: Get a space
|
|
1462
|
+
summary: Get a page from a space by its URL path
|
|
1463
|
+
description: Retrieves a page by its URL path (e.g. /guides/getting-started) from the space's current revision. Use this when you have a page's path rather than its ID. Returns either a document page or a group/section page depending on the path.
|
|
1389
1464
|
x-gitbook-mcp: true
|
|
1390
1465
|
tags:
|
|
1391
1466
|
- space-content
|
|
1392
1467
|
security:
|
|
1393
1468
|
- user: []
|
|
1469
|
+
- oauth:
|
|
1470
|
+
- space:read
|
|
1394
1471
|
parameters:
|
|
1395
1472
|
- $ref: "#/components/parameters/spaceId"
|
|
1396
1473
|
- $ref: "#/components/parameters/pagePath"
|
|
@@ -1412,12 +1489,15 @@ paths:
|
|
|
1412
1489
|
/spaces/{spaceId}/content/reusable-contents/{reusableContentId}:
|
|
1413
1490
|
get:
|
|
1414
1491
|
operationId: getReusableContentById
|
|
1415
|
-
summary: Get a
|
|
1492
|
+
summary: Get a reusable content block from a space by its ID
|
|
1493
|
+
description: Retrieves a reusable content block (a shared snippet that can be embedded across multiple pages) from a space's current revision by its ID. Use this to read the content of a reusable block when you have its ID. To find which pages reference it, check the page backlinks endpoint.
|
|
1416
1494
|
x-gitbook-mcp: true
|
|
1417
1495
|
tags:
|
|
1418
1496
|
- space-content
|
|
1419
1497
|
security:
|
|
1420
1498
|
- user: []
|
|
1499
|
+
- oauth:
|
|
1500
|
+
- space:read
|
|
1421
1501
|
parameters:
|
|
1422
1502
|
- $ref: "#/components/parameters/spaceId"
|
|
1423
1503
|
- $ref: "#/components/parameters/reusableContentId"
|
|
@@ -1433,12 +1513,15 @@ paths:
|
|
|
1433
1513
|
/spaces/{spaceId}/content/computed/document:
|
|
1434
1514
|
post:
|
|
1435
1515
|
operationId: getComputedDocument
|
|
1436
|
-
summary:
|
|
1516
|
+
summary: Compute and render a document from a structured content source
|
|
1517
|
+
description: Server-renders a document from a provided content source definition, evaluating template expressions and resolving variables to produce a fully computed document. Use this to preview how dynamic content will look without publishing a full revision.
|
|
1437
1518
|
x-gitbook-mcp: true
|
|
1438
1519
|
tags:
|
|
1439
1520
|
- space-content
|
|
1440
1521
|
security:
|
|
1441
1522
|
- user: []
|
|
1523
|
+
- oauth:
|
|
1524
|
+
- space:read
|
|
1442
1525
|
parameters:
|
|
1443
1526
|
- $ref: "#/components/parameters/spaceId"
|
|
1444
1527
|
- $ref: "#/components/parameters/documentSchema"
|
|
@@ -1467,12 +1550,15 @@ paths:
|
|
|
1467
1550
|
/spaces/{spaceId}/content/computed/revision:
|
|
1468
1551
|
post:
|
|
1469
1552
|
operationId: getComputedRevision
|
|
1470
|
-
summary:
|
|
1553
|
+
summary: Compute and render a full revision from a structured content source
|
|
1554
|
+
description: Server-renders an entire revision — pages, files, and reusable contents — from a provided content source definition, resolving all template expressions and variables. Use this to evaluate and preview computed content before publishing. Returns the full set of pages and files with all dynamic content fully resolved.
|
|
1471
1555
|
x-gitbook-mcp: true
|
|
1472
1556
|
tags:
|
|
1473
1557
|
- space-content
|
|
1474
1558
|
security:
|
|
1475
1559
|
- user: []
|
|
1560
|
+
- oauth:
|
|
1561
|
+
- space:read
|
|
1476
1562
|
parameters:
|
|
1477
1563
|
- $ref: "#/components/parameters/spaceId"
|
|
1478
1564
|
requestBody:
|
|
@@ -1517,12 +1603,15 @@ paths:
|
|
|
1517
1603
|
/spaces/{spaceId}/documents/{documentId}:
|
|
1518
1604
|
get:
|
|
1519
1605
|
operationId: getDocumentById
|
|
1520
|
-
summary: Get a
|
|
1606
|
+
summary: Get a raw document from a space by its document ID
|
|
1607
|
+
description: Returns the structured JSON document for a specific document ID within a space. Documents are the low-level block-based representation of page content. Use this when you have a documentId and need the raw block structure. To retrieve a page's document by pageId, use the page document endpoint instead.
|
|
1521
1608
|
x-gitbook-mcp: true
|
|
1522
1609
|
tags:
|
|
1523
1610
|
- space-content
|
|
1524
1611
|
security:
|
|
1525
1612
|
- user: []
|
|
1613
|
+
- oauth:
|
|
1614
|
+
- space:read
|
|
1526
1615
|
parameters:
|
|
1527
1616
|
- $ref: "#/components/parameters/spaceId"
|
|
1528
1617
|
- name: documentId
|
|
@@ -1542,12 +1631,15 @@ paths:
|
|
|
1542
1631
|
/spaces/{spaceId}/change-requests:
|
|
1543
1632
|
post:
|
|
1544
1633
|
operationId: createChangeRequest
|
|
1545
|
-
summary: Create a change request
|
|
1634
|
+
summary: Create a new change request in a space
|
|
1635
|
+
description: Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready.
|
|
1546
1636
|
x-gitbook-mcp: true
|
|
1547
1637
|
tags:
|
|
1548
1638
|
- change-requests
|
|
1549
1639
|
security:
|
|
1550
1640
|
- user: []
|
|
1641
|
+
- oauth:
|
|
1642
|
+
- space:write
|
|
1551
1643
|
parameters:
|
|
1552
1644
|
- $ref: "#/components/parameters/spaceId"
|
|
1553
1645
|
responses:
|
|
@@ -1555,7 +1647,7 @@ paths:
|
|
|
1555
1647
|
description: Change Request Created
|
|
1556
1648
|
headers:
|
|
1557
1649
|
Location:
|
|
1558
|
-
description: API URL for the newly created change
|
|
1650
|
+
description: API URL for the newly created change request
|
|
1559
1651
|
schema:
|
|
1560
1652
|
type: string
|
|
1561
1653
|
content:
|
|
@@ -1571,19 +1663,22 @@ paths:
|
|
|
1571
1663
|
properties:
|
|
1572
1664
|
subject:
|
|
1573
1665
|
type: string
|
|
1574
|
-
description: Subject of the change
|
|
1666
|
+
description: Subject of the change request
|
|
1575
1667
|
template:
|
|
1576
1668
|
$ref: "#/components/schemas/ApplySpaceTemplate"
|
|
1577
1669
|
description: Template to apply to the change request
|
|
1578
1670
|
additionalProperties: true
|
|
1579
1671
|
get:
|
|
1580
1672
|
operationId: listChangeRequestsForSpace
|
|
1581
|
-
summary: List all change requests
|
|
1673
|
+
summary: List all change requests for a space
|
|
1674
|
+
description: Returns a paginated list of change requests for the given space. Use this to discover existing change requests before creating a new one, or to find change requests assigned to a specific user for review.
|
|
1582
1675
|
x-gitbook-mcp: true
|
|
1583
1676
|
tags:
|
|
1584
1677
|
- change-requests
|
|
1585
1678
|
security:
|
|
1586
1679
|
- user: []
|
|
1680
|
+
- oauth:
|
|
1681
|
+
- space:read
|
|
1587
1682
|
parameters:
|
|
1588
1683
|
- $ref: "#/components/parameters/listPage"
|
|
1589
1684
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -1644,11 +1739,14 @@ paths:
|
|
|
1644
1739
|
get:
|
|
1645
1740
|
operationId: getChangeRequestById
|
|
1646
1741
|
summary: Get a change request by its ID
|
|
1742
|
+
description: Retrieves the full details of a single change request, including its status, subject, description, and metadata. Use this to check the current state of a change request before deciding to merge, update, or request a review.
|
|
1647
1743
|
x-gitbook-mcp: true
|
|
1648
1744
|
tags:
|
|
1649
1745
|
- change-requests
|
|
1650
1746
|
security:
|
|
1651
1747
|
- user: []
|
|
1748
|
+
- oauth:
|
|
1749
|
+
- space:read
|
|
1652
1750
|
parameters:
|
|
1653
1751
|
- $ref: "#/components/parameters/spaceId"
|
|
1654
1752
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1664,12 +1762,15 @@ paths:
|
|
|
1664
1762
|
$ref: "#/components/responses/NotFoundError"
|
|
1665
1763
|
patch:
|
|
1666
1764
|
operationId: updateChangeRequestById
|
|
1667
|
-
summary: Update a change request
|
|
1765
|
+
summary: Update a change request's subject, description, or status
|
|
1766
|
+
description: Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead.
|
|
1668
1767
|
x-gitbook-mcp: true
|
|
1669
1768
|
tags:
|
|
1670
1769
|
- change-requests
|
|
1671
1770
|
security:
|
|
1672
1771
|
- user: []
|
|
1772
|
+
- oauth:
|
|
1773
|
+
- space:write
|
|
1673
1774
|
parameters:
|
|
1674
1775
|
- $ref: "#/components/parameters/spaceId"
|
|
1675
1776
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1702,12 +1803,15 @@ paths:
|
|
|
1702
1803
|
/spaces/{spaceId}/change-requests/{changeRequestId}/merge:
|
|
1703
1804
|
post:
|
|
1704
1805
|
operationId: mergeChangeRequest
|
|
1705
|
-
summary: Merge a change request
|
|
1806
|
+
summary: Merge a change request into the space's live content
|
|
1807
|
+
description: Merges the change request's draft content into the space's primary (published) content, making all changes live. If the result is "conflicts", the merge was still applied but the space may need manual conflict resolution. Consider running updateChangeRequest first to sync with the latest live content and reduce conflicts.
|
|
1706
1808
|
x-gitbook-mcp: true
|
|
1707
1809
|
tags:
|
|
1708
1810
|
- change-requests
|
|
1709
1811
|
security:
|
|
1710
1812
|
- user: []
|
|
1813
|
+
- oauth:
|
|
1814
|
+
- change-request:merge
|
|
1711
1815
|
parameters:
|
|
1712
1816
|
- $ref: "#/components/parameters/spaceId"
|
|
1713
1817
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1733,12 +1837,15 @@ paths:
|
|
|
1733
1837
|
/spaces/{spaceId}/change-requests/{changeRequestId}/update:
|
|
1734
1838
|
post:
|
|
1735
1839
|
operationId: updateChangeRequest
|
|
1736
|
-
summary:
|
|
1840
|
+
summary: Sync a change request with the latest live space content
|
|
1841
|
+
description: Rebases the change request onto the latest primary revision of the space, pulling in any changes that were merged to the live space since this change request was created. Run this before merging to minimise conflicts, especially if the change request has been open for a while.
|
|
1737
1842
|
x-gitbook-mcp: true
|
|
1738
1843
|
tags:
|
|
1739
1844
|
- change-requests
|
|
1740
1845
|
security:
|
|
1741
1846
|
- user: []
|
|
1847
|
+
- oauth:
|
|
1848
|
+
- space:write
|
|
1742
1849
|
parameters:
|
|
1743
1850
|
- $ref: "#/components/parameters/spaceId"
|
|
1744
1851
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1764,12 +1871,15 @@ paths:
|
|
|
1764
1871
|
/spaces/{spaceId}/change-requests/{changeRequestId}/reviews:
|
|
1765
1872
|
get:
|
|
1766
1873
|
operationId: getReviewsByChangeRequestId
|
|
1767
|
-
summary: List all change request
|
|
1874
|
+
summary: List all formal reviews submitted for a change request
|
|
1875
|
+
description: Returns a paginated list of reviews submitted for the change request. Use this to check the current review status and whether all requested reviewers have responded before merging.
|
|
1768
1876
|
x-gitbook-mcp: true
|
|
1769
1877
|
tags:
|
|
1770
1878
|
- change-requests-reviews
|
|
1771
1879
|
security:
|
|
1772
1880
|
- user: []
|
|
1881
|
+
- oauth:
|
|
1882
|
+
- space:read
|
|
1773
1883
|
parameters:
|
|
1774
1884
|
- $ref: "#/components/parameters/spaceId"
|
|
1775
1885
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1802,12 +1912,15 @@ paths:
|
|
|
1802
1912
|
$ref: "#/components/responses/NotFoundError"
|
|
1803
1913
|
post:
|
|
1804
1914
|
operationId: submitChangeRequestReview
|
|
1805
|
-
summary: Submit a change request
|
|
1915
|
+
summary: Submit an approve or request-changes review for a change request
|
|
1916
|
+
description: Submits a formal review decision (approved or changes-requested) on the change request, optionally with a rich-text comment. Use this to complete a review you were requested to perform. Only users who are requested reviewers or have space review permissions can submit a review.
|
|
1806
1917
|
x-gitbook-mcp: true
|
|
1807
1918
|
tags:
|
|
1808
1919
|
- change-requests-reviews
|
|
1809
1920
|
security:
|
|
1810
1921
|
- user: []
|
|
1922
|
+
- oauth:
|
|
1923
|
+
- space:write
|
|
1811
1924
|
parameters:
|
|
1812
1925
|
- $ref: "#/components/parameters/spaceId"
|
|
1813
1926
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1841,12 +1954,15 @@ paths:
|
|
|
1841
1954
|
/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/{reviewId}:
|
|
1842
1955
|
get:
|
|
1843
1956
|
operationId: getChangeRequestReviewById
|
|
1844
|
-
summary: Get a change request
|
|
1957
|
+
summary: Get a specific review on a change request by its ID
|
|
1958
|
+
description: Retrieves the full details of a single review submission on a change request, including the decision status (approved/changes-requested), reviewer, and any attached comment. Use this when you have a review ID and need its full details.
|
|
1845
1959
|
x-gitbook-mcp: true
|
|
1846
1960
|
tags:
|
|
1847
1961
|
- change-requests-reviews
|
|
1848
1962
|
security:
|
|
1849
1963
|
- user: []
|
|
1964
|
+
- oauth:
|
|
1965
|
+
- space:read
|
|
1850
1966
|
parameters:
|
|
1851
1967
|
- $ref: "#/components/parameters/spaceId"
|
|
1852
1968
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1865,12 +1981,15 @@ paths:
|
|
|
1865
1981
|
/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers:
|
|
1866
1982
|
get:
|
|
1867
1983
|
operationId: getRequestedReviewersByChangeRequestId
|
|
1868
|
-
summary:
|
|
1984
|
+
summary: List all users requested to review a change request
|
|
1985
|
+
description: Returns a paginated list of users who have been explicitly requested to review the change request. Use this to check who is currently assigned as a reviewer before adding or removing reviewer requests.
|
|
1869
1986
|
x-gitbook-mcp: true
|
|
1870
1987
|
tags:
|
|
1871
1988
|
- change-request-reviewers
|
|
1872
1989
|
security:
|
|
1873
1990
|
- user: []
|
|
1991
|
+
- oauth:
|
|
1992
|
+
- space:read
|
|
1874
1993
|
parameters:
|
|
1875
1994
|
- $ref: "#/components/parameters/spaceId"
|
|
1876
1995
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1894,12 +2013,15 @@ paths:
|
|
|
1894
2013
|
$ref: "#/components/schemas/ChangeRequestRequestedReviewer"
|
|
1895
2014
|
post:
|
|
1896
2015
|
operationId: requestReviewersForChangeRequest
|
|
1897
|
-
summary:
|
|
2016
|
+
summary: Send review requests to users for a change request
|
|
2017
|
+
description: Sends review request notifications to one or more users, asking them to review the change request. Optionally updates the change request subject and description at the same time. Use this to move the change request into the review workflow after finishing edits. The users array must contain at least one valid user ID.
|
|
1898
2018
|
x-gitbook-mcp: true
|
|
1899
2019
|
tags:
|
|
1900
2020
|
- change-request-reviewers
|
|
1901
2021
|
security:
|
|
1902
2022
|
- user: []
|
|
2023
|
+
- oauth:
|
|
2024
|
+
- space:write
|
|
1903
2025
|
parameters:
|
|
1904
2026
|
- $ref: "#/components/parameters/spaceId"
|
|
1905
2027
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1944,6 +2066,8 @@ paths:
|
|
|
1944
2066
|
- change-request-reviewers
|
|
1945
2067
|
security:
|
|
1946
2068
|
- user: []
|
|
2069
|
+
- oauth:
|
|
2070
|
+
- space:write
|
|
1947
2071
|
parameters:
|
|
1948
2072
|
- $ref: "#/components/parameters/spaceId"
|
|
1949
2073
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1956,12 +2080,15 @@ paths:
|
|
|
1956
2080
|
/spaces/{spaceId}/change-requests/{changeRequestId}/conversations:
|
|
1957
2081
|
get:
|
|
1958
2082
|
operationId: listChangeRequestConversations
|
|
1959
|
-
summary: List
|
|
2083
|
+
summary: List AI agent conversations associated with a change request
|
|
2084
|
+
description: Returns a paginated list of AI agent conversations that were created in the context of this change request. These conversations capture the AI-assisted editing sessions that contributed to the draft. Use this to review the history of AI interactions on a change request before merging.
|
|
1960
2085
|
x-gitbook-mcp: true
|
|
1961
2086
|
tags:
|
|
1962
2087
|
- change-request-conversations
|
|
1963
2088
|
security:
|
|
1964
2089
|
- user: []
|
|
2090
|
+
- oauth:
|
|
2091
|
+
- space:read
|
|
1965
2092
|
parameters:
|
|
1966
2093
|
- $ref: "#/components/parameters/spaceId"
|
|
1967
2094
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1986,12 +2113,15 @@ paths:
|
|
|
1986
2113
|
/spaces/{spaceId}/change-requests/{changeRequestId}/conversations/{conversationId}:
|
|
1987
2114
|
patch:
|
|
1988
2115
|
operationId: updateChangeRequestConversation
|
|
1989
|
-
summary: Update an agent conversation
|
|
2116
|
+
summary: Update an AI agent conversation on a change request
|
|
2117
|
+
description: Updates a specific AI agent conversation associated with a change request. Use this to rename the conversation.
|
|
1990
2118
|
x-gitbook-mcp: true
|
|
1991
2119
|
tags:
|
|
1992
2120
|
- change-request-conversations
|
|
1993
2121
|
security:
|
|
1994
2122
|
- user: []
|
|
2123
|
+
- oauth:
|
|
2124
|
+
- space:write
|
|
1995
2125
|
parameters:
|
|
1996
2126
|
- $ref: "#/components/parameters/spaceId"
|
|
1997
2127
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2002,12 +2132,12 @@ paths:
|
|
|
2002
2132
|
application/json:
|
|
2003
2133
|
schema:
|
|
2004
2134
|
type: object
|
|
2135
|
+
required:
|
|
2136
|
+
- title
|
|
2005
2137
|
properties:
|
|
2006
2138
|
title:
|
|
2007
2139
|
type: string
|
|
2008
2140
|
description: The new title of the conversation.
|
|
2009
|
-
required:
|
|
2010
|
-
- title
|
|
2011
2141
|
responses:
|
|
2012
2142
|
"200":
|
|
2013
2143
|
description: The updated conversation.
|
|
@@ -2032,7 +2162,8 @@ paths:
|
|
|
2032
2162
|
/spaces/{spaceId}/change-requests/{changeRequestId}/links:
|
|
2033
2163
|
get:
|
|
2034
2164
|
operationId: listChangeRequestLinks
|
|
2035
|
-
summary: List all change request
|
|
2165
|
+
summary: List all content references across an entire change request
|
|
2166
|
+
description: Returns a paginated list of all outbound content references (links) across all pages in the change request. Use this to audit link health across the entire draft before merging.
|
|
2036
2167
|
x-gitbook-mcp: true
|
|
2037
2168
|
tags:
|
|
2038
2169
|
- change-requests-links
|
|
@@ -2040,6 +2171,8 @@ paths:
|
|
|
2040
2171
|
- critical
|
|
2041
2172
|
security:
|
|
2042
2173
|
- user: []
|
|
2174
|
+
- oauth:
|
|
2175
|
+
- space:read
|
|
2043
2176
|
parameters:
|
|
2044
2177
|
- $ref: "#/components/parameters/spaceId"
|
|
2045
2178
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2083,12 +2216,15 @@ paths:
|
|
|
2083
2216
|
/spaces/{spaceId}/change-requests/{changeRequestId}/comments:
|
|
2084
2217
|
get:
|
|
2085
2218
|
operationId: listCommentsInChangeRequest
|
|
2086
|
-
summary: List all change request
|
|
2219
|
+
summary: List all top-level comments in a change request
|
|
2220
|
+
description: Returns a paginated list of comments posted on the change request, optionally filtered by status, target page, or author. Comments can be anchored to a specific page or be general change-request-level comments. Use this to read the review discussion before responding. To fetch replies to a comment, use the comment replies endpoint.
|
|
2087
2221
|
x-gitbook-mcp: true
|
|
2088
2222
|
tags:
|
|
2089
2223
|
- change-request-comments
|
|
2090
2224
|
security:
|
|
2091
2225
|
- user: []
|
|
2226
|
+
- oauth:
|
|
2227
|
+
- space:read
|
|
2092
2228
|
parameters:
|
|
2093
2229
|
- $ref: "#/components/parameters/spaceId"
|
|
2094
2230
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2117,12 +2253,15 @@ paths:
|
|
|
2117
2253
|
$ref: "#/components/schemas/Comment"
|
|
2118
2254
|
post:
|
|
2119
2255
|
operationId: postCommentInChangeRequest
|
|
2120
|
-
summary:
|
|
2256
|
+
summary: Post a new comment on a change request
|
|
2257
|
+
description: Posts a new top-level comment on the change request. Comments can be general or anchored to a specific page and inline location within the change request content. Use this to provide review feedback, ask questions, or flag issues. To reply to an existing comment, use the comment replies endpoint instead.
|
|
2121
2258
|
x-gitbook-mcp: true
|
|
2122
2259
|
tags:
|
|
2123
2260
|
- change-request-comments
|
|
2124
2261
|
security:
|
|
2125
2262
|
- user: []
|
|
2263
|
+
- oauth:
|
|
2264
|
+
- space:write
|
|
2126
2265
|
parameters:
|
|
2127
2266
|
- $ref: "#/components/parameters/spaceId"
|
|
2128
2267
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2142,12 +2281,15 @@ paths:
|
|
|
2142
2281
|
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}:
|
|
2143
2282
|
get:
|
|
2144
2283
|
operationId: getCommentInChangeRequest
|
|
2145
|
-
summary: Get a change request
|
|
2284
|
+
summary: Get a single comment from a change request by its ID
|
|
2285
|
+
description: Retrieves a specific comment from a change request, including its content, author, and anchor location. Use this when you have a comment ID (e.g., from a notification or list) and need its full details.
|
|
2146
2286
|
x-gitbook-mcp: true
|
|
2147
2287
|
tags:
|
|
2148
2288
|
- change-request-comments
|
|
2149
2289
|
security:
|
|
2150
2290
|
- user: []
|
|
2291
|
+
- oauth:
|
|
2292
|
+
- space:read
|
|
2151
2293
|
parameters:
|
|
2152
2294
|
- $ref: "#/components/parameters/spaceId"
|
|
2153
2295
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2167,6 +2309,8 @@ paths:
|
|
|
2167
2309
|
- change-request-comments
|
|
2168
2310
|
security:
|
|
2169
2311
|
- user: []
|
|
2312
|
+
- oauth:
|
|
2313
|
+
- space:write
|
|
2170
2314
|
parameters:
|
|
2171
2315
|
- $ref: "#/components/parameters/spaceId"
|
|
2172
2316
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2178,12 +2322,15 @@ paths:
|
|
|
2178
2322
|
description: The comment has been deleted.
|
|
2179
2323
|
put:
|
|
2180
2324
|
operationId: updateCommentInChangeRequest
|
|
2181
|
-
summary: Update a change request comment
|
|
2325
|
+
summary: Update the content or status of a change request comment
|
|
2326
|
+
description: Replaces the body or status of an existing change request comment. Use this to edit the text of a comment you previously posted, or to resolve/reopen a comment thread. Only the comment author or space admins can update a comment.
|
|
2182
2327
|
x-gitbook-mcp: true
|
|
2183
2328
|
tags:
|
|
2184
2329
|
- change-request-comments
|
|
2185
2330
|
security:
|
|
2186
2331
|
- user: []
|
|
2332
|
+
- oauth:
|
|
2333
|
+
- space:write
|
|
2187
2334
|
parameters:
|
|
2188
2335
|
- $ref: "#/components/parameters/spaceId"
|
|
2189
2336
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2204,12 +2351,15 @@ paths:
|
|
|
2204
2351
|
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies:
|
|
2205
2352
|
get:
|
|
2206
2353
|
operationId: listCommentRepliesInChangeRequest
|
|
2207
|
-
summary: List all change request comment
|
|
2354
|
+
summary: List all replies to a change request comment
|
|
2355
|
+
description: Returns a paginated list of replies to a specific top-level comment in a change request. Use this to read the full thread of a review discussion on a particular comment before adding a reply.
|
|
2208
2356
|
x-gitbook-mcp: true
|
|
2209
2357
|
tags:
|
|
2210
2358
|
- change-request-comments
|
|
2211
2359
|
security:
|
|
2212
2360
|
- user: []
|
|
2361
|
+
- oauth:
|
|
2362
|
+
- space:read
|
|
2213
2363
|
parameters:
|
|
2214
2364
|
- $ref: "#/components/parameters/spaceId"
|
|
2215
2365
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2235,12 +2385,15 @@ paths:
|
|
|
2235
2385
|
$ref: "#/components/schemas/CommentReply"
|
|
2236
2386
|
post:
|
|
2237
2387
|
operationId: postCommentReplyInChangeRequest
|
|
2238
|
-
summary:
|
|
2388
|
+
summary: Post a reply to a change request comment
|
|
2389
|
+
description: Adds a reply to an existing comment thread on a change request. Use this to respond to review feedback or continue a discussion on a specific comment. To start a new top-level comment rather than replying, use the change request comments endpoint.
|
|
2239
2390
|
x-gitbook-mcp: true
|
|
2240
2391
|
tags:
|
|
2241
2392
|
- change-request-comments
|
|
2242
2393
|
security:
|
|
2243
2394
|
- user: []
|
|
2395
|
+
- oauth:
|
|
2396
|
+
- space:write
|
|
2244
2397
|
parameters:
|
|
2245
2398
|
- $ref: "#/components/parameters/spaceId"
|
|
2246
2399
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2262,12 +2415,15 @@ paths:
|
|
|
2262
2415
|
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}:
|
|
2263
2416
|
get:
|
|
2264
2417
|
operationId: getCommentReplyInChangeRequest
|
|
2265
|
-
summary: Get a change request comment
|
|
2418
|
+
summary: Get a single reply to a change request comment
|
|
2419
|
+
description: Retrieves a specific reply within a change request comment thread. Use this when you have a reply ID and need its full content and author details.
|
|
2266
2420
|
x-gitbook-mcp: true
|
|
2267
2421
|
tags:
|
|
2268
2422
|
- change-request-comments
|
|
2269
2423
|
security:
|
|
2270
2424
|
- user: []
|
|
2425
|
+
- oauth:
|
|
2426
|
+
- space:read
|
|
2271
2427
|
parameters:
|
|
2272
2428
|
- $ref: "#/components/parameters/spaceId"
|
|
2273
2429
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2283,12 +2439,15 @@ paths:
|
|
|
2283
2439
|
$ref: "#/components/schemas/CommentReply"
|
|
2284
2440
|
put:
|
|
2285
2441
|
operationId: updateCommentReplyInChangeRequest
|
|
2286
|
-
summary: Update a change request comment reply
|
|
2442
|
+
summary: Update the content of a change request comment reply
|
|
2443
|
+
description: Replaces the body of an existing reply in a change request comment thread. Use this to correct or amend a reply you previously posted. Only the reply author or space admins can update a reply.
|
|
2287
2444
|
x-gitbook-mcp: true
|
|
2288
2445
|
tags:
|
|
2289
2446
|
- change-request-comments
|
|
2290
2447
|
security:
|
|
2291
2448
|
- user: []
|
|
2449
|
+
- oauth:
|
|
2450
|
+
- space:write
|
|
2292
2451
|
parameters:
|
|
2293
2452
|
- $ref: "#/components/parameters/spaceId"
|
|
2294
2453
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2314,6 +2473,8 @@ paths:
|
|
|
2314
2473
|
- change-request-comments
|
|
2315
2474
|
security:
|
|
2316
2475
|
- user: []
|
|
2476
|
+
- oauth:
|
|
2477
|
+
- space:write
|
|
2317
2478
|
parameters:
|
|
2318
2479
|
- $ref: "#/components/parameters/spaceId"
|
|
2319
2480
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2327,12 +2488,15 @@ paths:
|
|
|
2327
2488
|
/spaces/{spaceId}/change-requests/{changeRequestId}/contributors:
|
|
2328
2489
|
get:
|
|
2329
2490
|
operationId: getContributorsByChangeRequestId
|
|
2330
|
-
summary:
|
|
2491
|
+
summary: List all users who have made edits to a change request
|
|
2492
|
+
description: Returns a list of users who have contributed content edits to the change request. Use this to identify who has been actively editing the draft, for example when deciding who to notify before merging.
|
|
2331
2493
|
x-gitbook-mcp: true
|
|
2332
2494
|
tags:
|
|
2333
2495
|
- change-request-contributors
|
|
2334
2496
|
security:
|
|
2335
2497
|
- user: []
|
|
2498
|
+
- oauth:
|
|
2499
|
+
- space:read
|
|
2336
2500
|
parameters:
|
|
2337
2501
|
- $ref: "#/components/parameters/spaceId"
|
|
2338
2502
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2358,12 +2522,15 @@ paths:
|
|
|
2358
2522
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content:
|
|
2359
2523
|
get:
|
|
2360
2524
|
operationId: getRevisionOfChangeRequestById
|
|
2361
|
-
summary: Get
|
|
2525
|
+
summary: Get the latest content revision of a change request
|
|
2526
|
+
description: Returns the current revision snapshot of the change request, including the full page tree structure and metadata. Use this to inspect the overall state of the change request's content, such as the list of pages and their hierarchy, without fetching each page individually. For page content (body text), use the individual page endpoints.
|
|
2362
2527
|
x-gitbook-mcp: true
|
|
2363
2528
|
tags:
|
|
2364
2529
|
- change-request-content
|
|
2365
2530
|
security:
|
|
2366
2531
|
- user: []
|
|
2532
|
+
- oauth:
|
|
2533
|
+
- space:read
|
|
2367
2534
|
parameters:
|
|
2368
2535
|
- $ref: "#/components/parameters/spaceId"
|
|
2369
2536
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2378,16 +2545,15 @@ paths:
|
|
|
2378
2545
|
$ref: "#/components/schemas/Revision"
|
|
2379
2546
|
post:
|
|
2380
2547
|
operationId: updateChangeRequestContent
|
|
2381
|
-
summary:
|
|
2382
|
-
description:
|
|
2383
|
-
This endpoint allows you to update the content of a change request by providing an array of changes.
|
|
2384
|
-
Each change is ran sequentially. This operation will create a single new revision in the change request, apply all changes, and then point the change request to the new revision.
|
|
2385
|
-
This endpoint will only run if all changes in the request are valid. If any change fails, the entire request will fail and no changes will be applied.
|
|
2548
|
+
summary: Apply a batch of content changes to a change request
|
|
2549
|
+
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.
|
|
2386
2550
|
x-gitbook-mcp: true
|
|
2387
2551
|
tags:
|
|
2388
2552
|
- change-request-content
|
|
2389
2553
|
security:
|
|
2390
2554
|
- user: []
|
|
2555
|
+
- oauth:
|
|
2556
|
+
- space:write
|
|
2391
2557
|
parameters:
|
|
2392
2558
|
- $ref: "#/components/parameters/spaceId"
|
|
2393
2559
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2419,12 +2585,15 @@ paths:
|
|
|
2419
2585
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages:
|
|
2420
2586
|
get:
|
|
2421
2587
|
operationId: listPagesInChangeRequest
|
|
2422
|
-
summary: List all change request
|
|
2588
|
+
summary: List all pages in a change request as a flat list
|
|
2589
|
+
description: Returns the full flat list of all pages in the change request's current draft revision, including page groups. Does not include page body content — use the individual page endpoint to fetch content. Use this to get an overview of the draft's page structure before reading or modifying specific pages.
|
|
2423
2590
|
x-gitbook-mcp: true
|
|
2424
2591
|
tags:
|
|
2425
2592
|
- change-request-content
|
|
2426
2593
|
security:
|
|
2427
2594
|
- user: []
|
|
2595
|
+
- oauth:
|
|
2596
|
+
- space:read
|
|
2428
2597
|
parameters:
|
|
2429
2598
|
- $ref: "#/components/parameters/spaceId"
|
|
2430
2599
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2447,12 +2616,15 @@ paths:
|
|
|
2447
2616
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/files:
|
|
2448
2617
|
get:
|
|
2449
2618
|
operationId: listFilesInChangeRequestById
|
|
2450
|
-
summary: List all change request
|
|
2619
|
+
summary: List all files (images/attachments) in a change request
|
|
2620
|
+
description: Returns a paginated list of files (images and other attachments) stored in the change request's current revision. Use this to inspect uploaded assets within a draft before merging. For files in the live published space, use the space content files endpoint.
|
|
2451
2621
|
x-gitbook-mcp: true
|
|
2452
2622
|
tags:
|
|
2453
2623
|
- change-request-content
|
|
2454
2624
|
security:
|
|
2455
2625
|
- user: []
|
|
2626
|
+
- oauth:
|
|
2627
|
+
- space:read
|
|
2456
2628
|
parameters:
|
|
2457
2629
|
- $ref: "#/components/parameters/spaceId"
|
|
2458
2630
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2479,12 +2651,15 @@ paths:
|
|
|
2479
2651
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}:
|
|
2480
2652
|
get:
|
|
2481
2653
|
operationId: getFileInChangeRequestById
|
|
2482
|
-
summary: Get a change request
|
|
2654
|
+
summary: Get a specific file in a change request by its ID
|
|
2655
|
+
description: Retrieves metadata for a single file (image or attachment) stored in the change request's current revision. Use this to get the download URL or details of a specific asset referenced by a page in the change request.
|
|
2483
2656
|
x-gitbook-mcp: true
|
|
2484
2657
|
tags:
|
|
2485
2658
|
- change-request-content
|
|
2486
2659
|
security:
|
|
2487
2660
|
- user: []
|
|
2661
|
+
- oauth:
|
|
2662
|
+
- space:read
|
|
2488
2663
|
parameters:
|
|
2489
2664
|
- $ref: "#/components/parameters/spaceId"
|
|
2490
2665
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2501,12 +2676,15 @@ paths:
|
|
|
2501
2676
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks:
|
|
2502
2677
|
get:
|
|
2503
2678
|
operationId: listChangeRequestFileBacklinks
|
|
2504
|
-
summary: List all
|
|
2679
|
+
summary: List all pages in a change request that reference a file
|
|
2680
|
+
description: Returns a paginated list of content locations (pages and inline positions) within the change request that link to or embed the specified file. Use this to find all usages of an asset before renaming or removing it.
|
|
2505
2681
|
x-gitbook-mcp: true
|
|
2506
2682
|
tags:
|
|
2507
2683
|
- change-request-content
|
|
2508
2684
|
security:
|
|
2509
2685
|
- user: []
|
|
2686
|
+
- oauth:
|
|
2687
|
+
- space:read
|
|
2510
2688
|
parameters:
|
|
2511
2689
|
- $ref: "#/components/parameters/spaceId"
|
|
2512
2690
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2532,12 +2710,15 @@ paths:
|
|
|
2532
2710
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}:
|
|
2533
2711
|
get:
|
|
2534
2712
|
operationId: getPageInChangeRequestById
|
|
2535
|
-
summary: Get a change request
|
|
2713
|
+
summary: Get a page in a change request by its ID
|
|
2714
|
+
description: Retrieves a specific page from a change request's draft content, including its title, metadata, and body document. Use the documentFormat parameter to control the format of the returned document (e.g., markdown). This reflects the draft state of the page, not the live published version — use the space content page endpoint for live content.
|
|
2536
2715
|
x-gitbook-mcp: true
|
|
2537
2716
|
tags:
|
|
2538
2717
|
- change-request-content
|
|
2539
2718
|
security:
|
|
2540
2719
|
- user: []
|
|
2720
|
+
- oauth:
|
|
2721
|
+
- space:read
|
|
2541
2722
|
parameters:
|
|
2542
2723
|
- $ref: "#/components/parameters/spaceId"
|
|
2543
2724
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2558,13 +2739,16 @@ paths:
|
|
|
2558
2739
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links:
|
|
2559
2740
|
get:
|
|
2560
2741
|
operationId: listPageLinksInChangeRequest
|
|
2561
|
-
summary: List all change request
|
|
2742
|
+
summary: List all content references (links) on a change request page
|
|
2743
|
+
description: Returns all outbound content references from a specific page within the change request, including their status (valid, broken) and usage context. Use this to audit link health on a draft page before merging. Also returns aggregate stats about broken vs healthy references on the page.
|
|
2562
2744
|
x-gitbook-mcp: true
|
|
2563
2745
|
tags:
|
|
2564
2746
|
- change-request-content
|
|
2565
2747
|
- critical
|
|
2566
2748
|
security:
|
|
2567
2749
|
- user: []
|
|
2750
|
+
- oauth:
|
|
2751
|
+
- space:read
|
|
2568
2752
|
parameters:
|
|
2569
2753
|
- $ref: "#/components/parameters/spaceId"
|
|
2570
2754
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2593,12 +2777,15 @@ paths:
|
|
|
2593
2777
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/backlinks:
|
|
2594
2778
|
get:
|
|
2595
2779
|
operationId: listChangeRequestPageBacklinks
|
|
2596
|
-
summary: List all
|
|
2780
|
+
summary: List all pages in a change request that link to a specific page
|
|
2781
|
+
description: Returns a paginated list of content locations within the change request that contain links pointing to the specified page. Use this to check what pages would be affected by renaming or removing a page before applying the change.
|
|
2597
2782
|
x-gitbook-mcp: true
|
|
2598
2783
|
tags:
|
|
2599
2784
|
- change-request-content
|
|
2600
2785
|
security:
|
|
2601
2786
|
- user: []
|
|
2787
|
+
- oauth:
|
|
2788
|
+
- space:read
|
|
2602
2789
|
parameters:
|
|
2603
2790
|
- $ref: "#/components/parameters/spaceId"
|
|
2604
2791
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2624,12 +2811,15 @@ paths:
|
|
|
2624
2811
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links:
|
|
2625
2812
|
get:
|
|
2626
2813
|
operationId: listChangeRequestPageMetaLinks
|
|
2627
|
-
summary:
|
|
2814
|
+
summary: Get navigation meta-links (prev/next/parent) for a change request page
|
|
2815
|
+
description: Returns the structural navigation links for a specific page within a change request, such as its parent page, previous sibling, and next sibling in the page tree. Use this to understand a page's position within the content hierarchy of the draft.
|
|
2628
2816
|
x-gitbook-mcp: true
|
|
2629
2817
|
tags:
|
|
2630
2818
|
- change-request-content
|
|
2631
2819
|
security:
|
|
2632
2820
|
- user: []
|
|
2821
|
+
- oauth:
|
|
2822
|
+
- space:read
|
|
2633
2823
|
parameters:
|
|
2634
2824
|
- $ref: "#/components/parameters/spaceId"
|
|
2635
2825
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2644,12 +2834,15 @@ paths:
|
|
|
2644
2834
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}:
|
|
2645
2835
|
get:
|
|
2646
2836
|
operationId: getReusableContentInChangeRequestById
|
|
2647
|
-
summary: Get a change request
|
|
2837
|
+
summary: Get a reusable content block in a change request by its ID
|
|
2838
|
+
description: Retrieves a specific reusable content block (a shared snippet that can be embedded across multiple pages) from the change request's draft revision. Use this to inspect the current draft state of a shared content block before merging.
|
|
2648
2839
|
x-gitbook-mcp: true
|
|
2649
2840
|
tags:
|
|
2650
2841
|
- change-request-content
|
|
2651
2842
|
security:
|
|
2652
2843
|
- user: []
|
|
2844
|
+
- oauth:
|
|
2845
|
+
- space:read
|
|
2653
2846
|
parameters:
|
|
2654
2847
|
- $ref: "#/components/parameters/spaceId"
|
|
2655
2848
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2666,13 +2859,15 @@ paths:
|
|
|
2666
2859
|
/spaces/{spaceId}/change-requests/{changeRequestId}/changes:
|
|
2667
2860
|
get:
|
|
2668
2861
|
operationId: getChangeRequestChanges
|
|
2669
|
-
summary:
|
|
2862
|
+
summary: List semantic content changes in a change request vs its base
|
|
2863
|
+
description: Returns the semantic diff between the change request's current content and the base revision it branched from. Each item describes a logical change such as a page added, removed, or modified. Use this to summarise what a change request changes before merging or reviewing. The default limit is 10 — increase it if the change request is large.
|
|
2670
2864
|
x-gitbook-mcp: true
|
|
2671
|
-
description: Return the semantic changes between a change request and its base revision.
|
|
2672
2865
|
tags:
|
|
2673
2866
|
- change-request-content
|
|
2674
2867
|
security:
|
|
2675
2868
|
- user: []
|
|
2869
|
+
- oauth:
|
|
2870
|
+
- space:read
|
|
2676
2871
|
parameters:
|
|
2677
2872
|
- $ref: "#/components/parameters/spaceId"
|
|
2678
2873
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2695,12 +2890,15 @@ paths:
|
|
|
2695
2890
|
/spaces/{spaceId}/change-requests/{changeRequestId}/pdf:
|
|
2696
2891
|
get:
|
|
2697
2892
|
operationId: getChangeRequestPDF
|
|
2698
|
-
summary: Get a URL
|
|
2893
|
+
summary: Get a temporary URL to download a change request's content as PDF
|
|
2894
|
+
description: Generates a temporary URL (valid for 1 hour) to download the change request's draft content as a PDF. Optionally scope the export to a single page using the page and only parameters. Use this to share or archive the draft content before merging.
|
|
2699
2895
|
x-gitbook-mcp: true
|
|
2700
2896
|
tags:
|
|
2701
2897
|
- change-requests
|
|
2702
2898
|
security:
|
|
2703
2899
|
- user: []
|
|
2900
|
+
- oauth:
|
|
2901
|
+
- space:read
|
|
2704
2902
|
parameters:
|
|
2705
2903
|
- $ref: "#/components/parameters/spaceId"
|
|
2706
2904
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2730,7 +2928,8 @@ paths:
|
|
|
2730
2928
|
/spaces/{spaceId}/revisions/{revisionId}:
|
|
2731
2929
|
get:
|
|
2732
2930
|
operationId: getRevisionById
|
|
2733
|
-
summary: Get a
|
|
2931
|
+
summary: Get a specific historical revision of a space
|
|
2932
|
+
description: Returns a specific revision snapshot of a space by its revision ID, including the page tree structure and revision metadata. Use this to inspect a historical state of a space. To access the current live content, use the space content endpoint instead.
|
|
2734
2933
|
x-gitbook-mcp: true
|
|
2735
2934
|
tags:
|
|
2736
2935
|
- space-content
|
|
@@ -2738,6 +2937,8 @@ paths:
|
|
|
2738
2937
|
- user: []
|
|
2739
2938
|
- integration: []
|
|
2740
2939
|
- integration-installation: []
|
|
2940
|
+
- oauth:
|
|
2941
|
+
- space:read
|
|
2741
2942
|
parameters:
|
|
2742
2943
|
- $ref: "#/components/parameters/spaceId"
|
|
2743
2944
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2753,15 +2954,17 @@ paths:
|
|
|
2753
2954
|
/spaces/{spaceId}/revisions/{revisionId}/changes:
|
|
2754
2955
|
get:
|
|
2755
2956
|
operationId: getRevisionSemanticChanges
|
|
2756
|
-
summary: Get
|
|
2957
|
+
summary: Get semantic content changes introduced by a revision
|
|
2958
|
+
description: Returns a structured diff of the semantic changes introduced by a revision compared to its parent revision, such as added, removed, or updated pages and blocks. Use this to understand what changed in a specific revision.
|
|
2757
2959
|
x-gitbook-mcp: true
|
|
2758
|
-
description: Return the semantic changes between a revision and its parent.
|
|
2759
2960
|
tags:
|
|
2760
2961
|
- space-content
|
|
2761
2962
|
security:
|
|
2762
2963
|
- user: []
|
|
2763
2964
|
- integration: []
|
|
2764
2965
|
- integration-installation: []
|
|
2966
|
+
- oauth:
|
|
2967
|
+
- space:read
|
|
2765
2968
|
parameters:
|
|
2766
2969
|
- $ref: "#/components/parameters/spaceId"
|
|
2767
2970
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2782,13 +2985,16 @@ paths:
|
|
|
2782
2985
|
$ref: "#/components/schemas/RevisionSemanticChanges"
|
|
2783
2986
|
/spaces/{spaceId}/revisions/{revisionId}/pages:
|
|
2784
2987
|
get:
|
|
2785
|
-
summary: List all pages in a
|
|
2988
|
+
summary: List all pages in a specific historical revision of a space
|
|
2989
|
+
description: Returns the full flat list of all pages (document pages and group pages) in a specific historical revision of a space. Use this to inspect the complete page tree of a past snapshot. For the current live content pages, use the space content pages endpoint.
|
|
2786
2990
|
x-gitbook-mcp: true
|
|
2787
2991
|
operationId: listPagesInRevisionById
|
|
2788
2992
|
tags:
|
|
2789
2993
|
- space-content
|
|
2790
2994
|
security:
|
|
2791
2995
|
- user: []
|
|
2996
|
+
- oauth:
|
|
2997
|
+
- space:read
|
|
2792
2998
|
parameters:
|
|
2793
2999
|
- $ref: "#/components/parameters/spaceId"
|
|
2794
3000
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2810,13 +3016,16 @@ paths:
|
|
|
2810
3016
|
- pages
|
|
2811
3017
|
/spaces/{spaceId}/revisions/{revisionId}/files:
|
|
2812
3018
|
get:
|
|
2813
|
-
summary: List all space revision
|
|
3019
|
+
summary: List all files (images, assets) in a specific space revision
|
|
3020
|
+
description: Returns a paginated list of files (images and other binary assets) attached to a specific revision of a space. Use this to enumerate all media assets present in a historical snapshot. To get a single file, use the revision file by ID endpoint.
|
|
2814
3021
|
x-gitbook-mcp: true
|
|
2815
3022
|
operationId: listFilesInRevisionById
|
|
2816
3023
|
tags:
|
|
2817
3024
|
- space-content
|
|
2818
3025
|
security:
|
|
2819
3026
|
- user: []
|
|
3027
|
+
- oauth:
|
|
3028
|
+
- space:read
|
|
2820
3029
|
parameters:
|
|
2821
3030
|
- $ref: "#/components/parameters/spaceId"
|
|
2822
3031
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2842,13 +3051,16 @@ paths:
|
|
|
2842
3051
|
$ref: "#/components/schemas/RevisionFile"
|
|
2843
3052
|
/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}:
|
|
2844
3053
|
get:
|
|
2845
|
-
summary: Get a space revision
|
|
3054
|
+
summary: Get a specific file from a space revision by its file ID
|
|
3055
|
+
description: Returns the metadata for a single file (image or binary asset) within a specific revision of a space. Use this to retrieve download URL, MIME type, and dimensions for a known file ID. To list all files in a revision, use the revision files list endpoint.
|
|
2846
3056
|
x-gitbook-mcp: true
|
|
2847
3057
|
operationId: getFileInRevisionById
|
|
2848
3058
|
tags:
|
|
2849
3059
|
- space-content
|
|
2850
3060
|
security:
|
|
2851
3061
|
- user: []
|
|
3062
|
+
- oauth:
|
|
3063
|
+
- space:read
|
|
2852
3064
|
parameters:
|
|
2853
3065
|
- $ref: "#/components/parameters/spaceId"
|
|
2854
3066
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2865,7 +3077,8 @@ paths:
|
|
|
2865
3077
|
/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}:
|
|
2866
3078
|
get:
|
|
2867
3079
|
operationId: getPageInRevisionById
|
|
2868
|
-
summary: Get a
|
|
3080
|
+
summary: Get a page from a specific historical revision by its page ID
|
|
3081
|
+
description: Returns the full page object (metadata and optionally document content) for a specific page within a historical revision. Use documentFormat to control whether content is returned as blocks or markdown. To get a page from the current live revision, use the space content page endpoint.
|
|
2869
3082
|
x-gitbook-mcp: true
|
|
2870
3083
|
tags:
|
|
2871
3084
|
- space-content
|
|
@@ -2873,6 +3086,8 @@ paths:
|
|
|
2873
3086
|
- user: []
|
|
2874
3087
|
- integration: []
|
|
2875
3088
|
- integration-installation: []
|
|
3089
|
+
- oauth:
|
|
3090
|
+
- space:read
|
|
2876
3091
|
parameters:
|
|
2877
3092
|
- $ref: "#/components/parameters/spaceId"
|
|
2878
3093
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2893,12 +3108,15 @@ paths:
|
|
|
2893
3108
|
/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/document:
|
|
2894
3109
|
get:
|
|
2895
3110
|
operationId: getPageDocumentInRevisionById
|
|
2896
|
-
summary: Get the document of a page in a revision
|
|
3111
|
+
summary: Get the raw document body of a page in a historical revision
|
|
3112
|
+
description: Returns the structured JSON document (block tree) for a specific page within a historical revision of a space. Use this when you need the low-level block representation of historical page content. For the current live content, use the space content page document endpoint.
|
|
2897
3113
|
x-gitbook-mcp: true
|
|
2898
3114
|
tags:
|
|
2899
3115
|
- space-content
|
|
2900
3116
|
security:
|
|
2901
3117
|
- user: []
|
|
3118
|
+
- oauth:
|
|
3119
|
+
- space:read
|
|
2902
3120
|
parameters:
|
|
2903
3121
|
- $ref: "#/components/parameters/spaceId"
|
|
2904
3122
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2915,12 +3133,15 @@ paths:
|
|
|
2915
3133
|
/spaces/{spaceId}/revisions/{revisionId}/path/{pagePath}:
|
|
2916
3134
|
get:
|
|
2917
3135
|
operationId: getPageInRevisionByPath
|
|
2918
|
-
summary: Get a
|
|
3136
|
+
summary: Get a page from a specific historical revision by its URL path
|
|
3137
|
+
description: Returns a page from a historical revision looked up by its URL path (e.g. "getting-started/installation") rather than its ID. Useful when you know the page path but not the ID. Use documentFormat to control whether content is returned as blocks or markdown. For the current live revision, use the content path endpoint.
|
|
2919
3138
|
x-gitbook-mcp: true
|
|
2920
3139
|
tags:
|
|
2921
3140
|
- space-content
|
|
2922
3141
|
security:
|
|
2923
3142
|
- user: []
|
|
3143
|
+
- oauth:
|
|
3144
|
+
- space:read
|
|
2924
3145
|
parameters:
|
|
2925
3146
|
- $ref: "#/components/parameters/spaceId"
|
|
2926
3147
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2943,12 +3164,15 @@ paths:
|
|
|
2943
3164
|
/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/meta-links:
|
|
2944
3165
|
get:
|
|
2945
3166
|
operationId: listRevisionPageMetaLinks
|
|
2946
|
-
summary: List all meta links for a revision
|
|
3167
|
+
summary: List all meta links (prev/next navigation) for a page in a revision
|
|
3168
|
+
description: Returns the meta navigation links for a specific page within a historical revision, including the previous and next page in the space's reading order. Use this to implement sequential navigation across historical content or to build a reading flow for a specific revision.
|
|
2947
3169
|
x-gitbook-mcp: true
|
|
2948
3170
|
tags:
|
|
2949
3171
|
- space-content
|
|
2950
3172
|
security:
|
|
2951
3173
|
- user: []
|
|
3174
|
+
- oauth:
|
|
3175
|
+
- space:read
|
|
2952
3176
|
parameters:
|
|
2953
3177
|
- $ref: "#/components/parameters/spaceId"
|
|
2954
3178
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2963,12 +3187,15 @@ paths:
|
|
|
2963
3187
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}:
|
|
2964
3188
|
get:
|
|
2965
3189
|
operationId: getPageInChangeRequestByPath
|
|
2966
|
-
summary: Get a change request
|
|
3190
|
+
summary: Get a page in a change request by its URL path
|
|
3191
|
+
description: Retrieves a specific page from a change request's draft content using its URL path (e.g., "getting-started/installation") rather than its ID. Use this when you know the path of a page but not its ID. Returns either a document page or a page group, depending on the path. Supports the same format and evaluation options as the ID-based endpoint.
|
|
2967
3192
|
x-gitbook-mcp: true
|
|
2968
3193
|
tags:
|
|
2969
3194
|
- change-request-content
|
|
2970
3195
|
security:
|
|
2971
3196
|
- user: []
|
|
3197
|
+
- oauth:
|
|
3198
|
+
- space:read
|
|
2972
3199
|
parameters:
|
|
2973
3200
|
- $ref: "#/components/parameters/spaceId"
|
|
2974
3201
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2991,12 +3218,15 @@ paths:
|
|
|
2991
3218
|
/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}:
|
|
2992
3219
|
get:
|
|
2993
3220
|
operationId: getReusableContentInRevisionById
|
|
2994
|
-
summary: Get a
|
|
3221
|
+
summary: Get a reusable content block from a historical revision by its ID
|
|
3222
|
+
description: Returns metadata for a specific reusable content block within a historical revision of a space. Reusable content blocks are shared content snippets referenced across multiple pages. To get the actual document body of the reusable content, use the reusable content document endpoint.
|
|
2995
3223
|
x-gitbook-mcp: true
|
|
2996
3224
|
tags:
|
|
2997
3225
|
- space-content
|
|
2998
3226
|
security:
|
|
2999
3227
|
- user: []
|
|
3228
|
+
- oauth:
|
|
3229
|
+
- space:read
|
|
3000
3230
|
parameters:
|
|
3001
3231
|
- $ref: "#/components/parameters/spaceId"
|
|
3002
3232
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -3013,12 +3243,15 @@ paths:
|
|
|
3013
3243
|
/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}/document:
|
|
3014
3244
|
get:
|
|
3015
3245
|
operationId: getReusableContentDocumentInRevisionById
|
|
3016
|
-
summary: Get the document of a reusable content in a revision
|
|
3246
|
+
summary: Get the document body of a reusable content block in a historical revision
|
|
3247
|
+
description: Returns the structured JSON document (block tree) for a reusable content block within a specific historical revision of a space. Use this to read the actual content of a shared snippet at a point in time. For the metadata, use the reusable content by ID endpoint.
|
|
3017
3248
|
x-gitbook-mcp: true
|
|
3018
3249
|
tags:
|
|
3019
3250
|
- space-content
|
|
3020
3251
|
security:
|
|
3021
3252
|
- user: []
|
|
3253
|
+
- oauth:
|
|
3254
|
+
- space:read
|
|
3022
3255
|
parameters:
|
|
3023
3256
|
- $ref: "#/components/parameters/spaceId"
|
|
3024
3257
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -3035,13 +3268,16 @@ paths:
|
|
|
3035
3268
|
/spaces/{spaceId}/comments:
|
|
3036
3269
|
get:
|
|
3037
3270
|
operationId: listCommentsInSpace
|
|
3038
|
-
summary: List all
|
|
3271
|
+
summary: List all top-level comments posted on a space
|
|
3272
|
+
description: Returns a paginated list of comments posted directly on the space (not inside a change request). To read replies to a specific comment, use the comment replies endpoint.
|
|
3039
3273
|
x-gitbook-mcp: true
|
|
3040
3274
|
tags:
|
|
3041
3275
|
- space-comments
|
|
3042
3276
|
- critical
|
|
3043
3277
|
security:
|
|
3044
3278
|
- user: []
|
|
3279
|
+
- oauth:
|
|
3280
|
+
- space:read
|
|
3045
3281
|
parameters:
|
|
3046
3282
|
- $ref: "#/components/parameters/spaceId"
|
|
3047
3283
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -3069,12 +3305,15 @@ paths:
|
|
|
3069
3305
|
$ref: "#/components/schemas/Comment"
|
|
3070
3306
|
post:
|
|
3071
3307
|
operationId: postCommentInSpace
|
|
3072
|
-
summary:
|
|
3308
|
+
summary: Post a new comment on a space or a specific page
|
|
3309
|
+
description: Creates a new top-level comment on the space, optionally anchored to a specific page or a text selection within a page. Use this to leave feedback, start a review thread, or annotate content. To reply to an existing comment, use the comment replies endpoint.
|
|
3073
3310
|
x-gitbook-mcp: true
|
|
3074
3311
|
tags:
|
|
3075
3312
|
- space-comments
|
|
3076
3313
|
security:
|
|
3077
3314
|
- user: []
|
|
3315
|
+
- oauth:
|
|
3316
|
+
- space:write
|
|
3078
3317
|
parameters:
|
|
3079
3318
|
- $ref: "#/components/parameters/spaceId"
|
|
3080
3319
|
requestBody:
|
|
@@ -3093,12 +3332,15 @@ paths:
|
|
|
3093
3332
|
/spaces/{spaceId}/comments/{commentId}:
|
|
3094
3333
|
get:
|
|
3095
3334
|
operationId: getCommentInSpace
|
|
3096
|
-
summary: Get a space
|
|
3335
|
+
summary: Get a single comment from a space by its ID
|
|
3336
|
+
description: Returns a specific comment posted on a space. To list all comments in a space, use the space comments list endpoint.
|
|
3097
3337
|
x-gitbook-mcp: true
|
|
3098
3338
|
tags:
|
|
3099
3339
|
- space-comments
|
|
3100
3340
|
security:
|
|
3101
3341
|
- user: []
|
|
3342
|
+
- oauth:
|
|
3343
|
+
- space:read
|
|
3102
3344
|
parameters:
|
|
3103
3345
|
- $ref: "#/components/parameters/spaceId"
|
|
3104
3346
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3117,6 +3359,8 @@ paths:
|
|
|
3117
3359
|
- space-comments
|
|
3118
3360
|
security:
|
|
3119
3361
|
- user: []
|
|
3362
|
+
- oauth:
|
|
3363
|
+
- space:write
|
|
3120
3364
|
parameters:
|
|
3121
3365
|
- $ref: "#/components/parameters/spaceId"
|
|
3122
3366
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3127,12 +3371,15 @@ paths:
|
|
|
3127
3371
|
description: The comment has been deleted.
|
|
3128
3372
|
put:
|
|
3129
3373
|
operationId: updateCommentInSpace
|
|
3130
|
-
summary: Update a space comment
|
|
3374
|
+
summary: Update the body or status of a space comment
|
|
3375
|
+
description: Updates the content or resolution status of an existing comment on a space. Only the comment author or a space admin can update a comment. Use this to edit a comment's text, mark it as resolved, or reopen it.
|
|
3131
3376
|
x-gitbook-mcp: true
|
|
3132
3377
|
tags:
|
|
3133
3378
|
- space-comments
|
|
3134
3379
|
security:
|
|
3135
3380
|
- user: []
|
|
3381
|
+
- oauth:
|
|
3382
|
+
- space:write
|
|
3136
3383
|
parameters:
|
|
3137
3384
|
- $ref: "#/components/parameters/spaceId"
|
|
3138
3385
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3152,12 +3399,15 @@ paths:
|
|
|
3152
3399
|
/spaces/{spaceId}/comments/{commentId}/replies:
|
|
3153
3400
|
get:
|
|
3154
3401
|
operationId: listCommentRepliesInSpace
|
|
3155
|
-
summary: List all
|
|
3402
|
+
summary: List all replies to a comment in a space
|
|
3403
|
+
description: Returns a paginated list of replies posted under a specific comment in a space. Use this to read the full conversation thread for a comment. To get the parent comment itself, use the space comment by ID endpoint.
|
|
3156
3404
|
x-gitbook-mcp: true
|
|
3157
3405
|
tags:
|
|
3158
3406
|
- space-comment
|
|
3159
3407
|
security:
|
|
3160
3408
|
- user: []
|
|
3409
|
+
- oauth:
|
|
3410
|
+
- space:read
|
|
3161
3411
|
parameters:
|
|
3162
3412
|
- $ref: "#/components/parameters/spaceId"
|
|
3163
3413
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3182,12 +3432,15 @@ paths:
|
|
|
3182
3432
|
$ref: "#/components/schemas/CommentReply"
|
|
3183
3433
|
post:
|
|
3184
3434
|
operationId: postCommentReplyInSpace
|
|
3185
|
-
summary:
|
|
3435
|
+
summary: Post a reply to an existing space comment
|
|
3436
|
+
description: Creates a reply to an existing comment on a space. Use this to continue a discussion thread started by a top-level comment. To start a new thread, use the space comment creation endpoint instead.
|
|
3186
3437
|
x-gitbook-mcp: true
|
|
3187
3438
|
tags:
|
|
3188
3439
|
- space-comments
|
|
3189
3440
|
security:
|
|
3190
3441
|
- user: []
|
|
3442
|
+
- oauth:
|
|
3443
|
+
- space:write
|
|
3191
3444
|
parameters:
|
|
3192
3445
|
- $ref: "#/components/parameters/spaceId"
|
|
3193
3446
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3207,12 +3460,15 @@ paths:
|
|
|
3207
3460
|
/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}:
|
|
3208
3461
|
get:
|
|
3209
3462
|
operationId: getCommentReplyInSpace
|
|
3210
|
-
summary: Get a space comment
|
|
3463
|
+
summary: Get a single reply to a space comment by its ID
|
|
3464
|
+
description: Returns a specific reply to a comment in a space. To list all replies for a comment, use the comment replies list endpoint.
|
|
3211
3465
|
x-gitbook-mcp: true
|
|
3212
3466
|
tags:
|
|
3213
3467
|
- space-comments
|
|
3214
3468
|
security:
|
|
3215
3469
|
- user: []
|
|
3470
|
+
- oauth:
|
|
3471
|
+
- space:read
|
|
3216
3472
|
parameters:
|
|
3217
3473
|
- $ref: "#/components/parameters/spaceId"
|
|
3218
3474
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3227,12 +3483,15 @@ paths:
|
|
|
3227
3483
|
$ref: "#/components/schemas/CommentReply"
|
|
3228
3484
|
put:
|
|
3229
3485
|
operationId: updateCommentReplyInSpace
|
|
3230
|
-
summary: Update a space comment
|
|
3486
|
+
summary: Update the body of a reply to a space comment
|
|
3487
|
+
description: Updates the content of an existing reply to a comment in a space. Only the reply author or a space admin can update the reply. To update the parent comment, use the space comment update endpoint.
|
|
3231
3488
|
x-gitbook-mcp: true
|
|
3232
3489
|
tags:
|
|
3233
3490
|
- space-comments
|
|
3234
3491
|
security:
|
|
3235
3492
|
- user: []
|
|
3493
|
+
- oauth:
|
|
3494
|
+
- space:write
|
|
3236
3495
|
parameters:
|
|
3237
3496
|
- $ref: "#/components/parameters/spaceId"
|
|
3238
3497
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3257,6 +3516,8 @@ paths:
|
|
|
3257
3516
|
- space-comments
|
|
3258
3517
|
security:
|
|
3259
3518
|
- user: []
|
|
3519
|
+
- oauth:
|
|
3520
|
+
- space:write
|
|
3260
3521
|
parameters:
|
|
3261
3522
|
- $ref: "#/components/parameters/spaceId"
|
|
3262
3523
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3269,13 +3530,16 @@ paths:
|
|
|
3269
3530
|
/spaces/{spaceId}/commenters:
|
|
3270
3531
|
get:
|
|
3271
3532
|
operationId: listCommentersInSpace
|
|
3272
|
-
summary: List all users who
|
|
3533
|
+
summary: List all users who have posted comments in a space
|
|
3534
|
+
description: Returns a paginated list of organization members who have posted at least one comment in the space. Use this to identify participants in a space's review or annotation workflow. For the actual comment content, use the space comments endpoint.
|
|
3273
3535
|
x-gitbook-mcp: true
|
|
3274
3536
|
tags:
|
|
3275
3537
|
- space-comments
|
|
3276
3538
|
- critical
|
|
3277
3539
|
security:
|
|
3278
3540
|
- user: []
|
|
3541
|
+
- oauth:
|
|
3542
|
+
- space:read
|
|
3279
3543
|
parameters:
|
|
3280
3544
|
- $ref: "#/components/parameters/spaceId"
|
|
3281
3545
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -3299,13 +3563,16 @@ paths:
|
|
|
3299
3563
|
/spaces/{spaceId}/change-requests/{changeRequestId}/commenters:
|
|
3300
3564
|
get:
|
|
3301
3565
|
operationId: listCommentersInChangeRequest
|
|
3302
|
-
summary: List all users who commented in a
|
|
3566
|
+
summary: List all users who have commented in a change request
|
|
3567
|
+
description: Returns a paginated list of organization members who have posted at least one comment in the change request. Use this to identify who is actively engaged in the review discussion before adding or directing comments.
|
|
3303
3568
|
x-gitbook-mcp: true
|
|
3304
3569
|
tags:
|
|
3305
3570
|
- change-request-comments
|
|
3306
3571
|
- critical
|
|
3307
3572
|
security:
|
|
3308
3573
|
- user: []
|
|
3574
|
+
- oauth:
|
|
3575
|
+
- space:read
|
|
3309
3576
|
parameters:
|
|
3310
3577
|
- $ref: "#/components/parameters/spaceId"
|
|
3311
3578
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -3335,6 +3602,8 @@ paths:
|
|
|
3335
3602
|
- space-permissions
|
|
3336
3603
|
security:
|
|
3337
3604
|
- user: []
|
|
3605
|
+
- oauth:
|
|
3606
|
+
- space:permissions:read
|
|
3338
3607
|
parameters:
|
|
3339
3608
|
- $ref: "#/components/parameters/spaceId"
|
|
3340
3609
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -3363,12 +3632,15 @@ paths:
|
|
|
3363
3632
|
/spaces/{spaceId}/integrations:
|
|
3364
3633
|
get:
|
|
3365
3634
|
operationId: listSpaceIntegrations
|
|
3366
|
-
summary: List integrations enabled
|
|
3635
|
+
summary: List all third-party integrations enabled on a space
|
|
3636
|
+
description: Returns a paginated list of integrations that are currently installed and enabled on the space. Use the query parameter to filter by integration name. Use this to check which integrations are active before interacting with integration-specific features or blocks.
|
|
3367
3637
|
x-gitbook-mcp: true
|
|
3368
3638
|
tags:
|
|
3369
3639
|
- space-integrations
|
|
3370
3640
|
security:
|
|
3371
3641
|
- user: []
|
|
3642
|
+
- oauth:
|
|
3643
|
+
- space:read
|
|
3372
3644
|
parameters:
|
|
3373
3645
|
- $ref: "#/components/parameters/spaceId"
|
|
3374
3646
|
- $ref: "#/components/parameters/integrationSearchQuery"
|
|
@@ -3391,7 +3663,8 @@ paths:
|
|
|
3391
3663
|
/spaces/{spaceId}/integration-blocks:
|
|
3392
3664
|
get:
|
|
3393
3665
|
operationId: listSpaceIntegrationsBlocks
|
|
3394
|
-
summary: List all
|
|
3666
|
+
summary: List all custom content blocks provided by integrations in a space
|
|
3667
|
+
description: Returns all custom block types contributed by integrations installed on the space. Integration blocks are custom content elements (e.g. embedded widgets, code runners) that integrations register for use in pages. Use this to discover what custom block types are available in a given space.
|
|
3395
3668
|
x-gitbook-mcp: true
|
|
3396
3669
|
tags:
|
|
3397
3670
|
- space-integrations
|
|
@@ -3409,12 +3682,15 @@ paths:
|
|
|
3409
3682
|
/spaces/{spaceId}/pdf:
|
|
3410
3683
|
get:
|
|
3411
3684
|
operationId: getSpacePDF
|
|
3412
|
-
summary: Get a URL
|
|
3685
|
+
summary: Get a temporary URL to download a space or page as PDF
|
|
3686
|
+
description: Returns a short-lived URL (valid for 1 hour) to download the space's content as a PDF file.
|
|
3413
3687
|
x-gitbook-mcp: true
|
|
3414
3688
|
tags:
|
|
3415
3689
|
- space-content
|
|
3416
3690
|
security:
|
|
3417
3691
|
- user: []
|
|
3692
|
+
- oauth:
|
|
3693
|
+
- space:read
|
|
3418
3694
|
parameters:
|
|
3419
3695
|
- $ref: "#/components/parameters/spaceId"
|
|
3420
3696
|
- in: query
|
|
@@ -3443,7 +3719,8 @@ paths:
|
|
|
3443
3719
|
/spaces/{spaceId}/links:
|
|
3444
3720
|
get:
|
|
3445
3721
|
operationId: listSpaceLinks
|
|
3446
|
-
summary:
|
|
3722
|
+
summary: List all links in a space with their status and location
|
|
3723
|
+
description: Returns a paginated list of all internal and external links found in the space's content. Use this to audit link health across an entire space.
|
|
3447
3724
|
x-gitbook-mcp: true
|
|
3448
3725
|
tags:
|
|
3449
3726
|
- spaces
|
|
@@ -3451,6 +3728,8 @@ paths:
|
|
|
3451
3728
|
- critical
|
|
3452
3729
|
security:
|
|
3453
3730
|
- user: []
|
|
3731
|
+
- oauth:
|
|
3732
|
+
- space:read
|
|
3454
3733
|
parameters:
|
|
3455
3734
|
- $ref: "#/components/parameters/spaceId"
|
|
3456
3735
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -4659,11 +4938,14 @@ paths:
|
|
|
4659
4938
|
get:
|
|
4660
4939
|
operationId: listOrganizationsForAuthenticatedUser
|
|
4661
4940
|
summary: Get the list of organizations for the currently authenticated user
|
|
4941
|
+
x-gitbook-mcp: true
|
|
4662
4942
|
tags:
|
|
4663
4943
|
- organizations
|
|
4664
4944
|
- critical
|
|
4665
4945
|
security:
|
|
4666
4946
|
- user: []
|
|
4947
|
+
- oauth:
|
|
4948
|
+
- organization:read
|
|
4667
4949
|
parameters:
|
|
4668
4950
|
- $ref: "#/components/parameters/listPage"
|
|
4669
4951
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -4687,6 +4969,7 @@ paths:
|
|
|
4687
4969
|
get:
|
|
4688
4970
|
operationId: getOrganizationById
|
|
4689
4971
|
summary: Get an organization by its ID
|
|
4972
|
+
x-gitbook-mcp: true
|
|
4690
4973
|
tags:
|
|
4691
4974
|
- organizations
|
|
4692
4975
|
- critical
|
|
@@ -4705,10 +4988,13 @@ paths:
|
|
|
4705
4988
|
patch:
|
|
4706
4989
|
operationId: updateOrganizationById
|
|
4707
4990
|
summary: Update an organization
|
|
4991
|
+
x-gitbook-mcp: true
|
|
4708
4992
|
tags:
|
|
4709
4993
|
- organizations
|
|
4710
4994
|
security:
|
|
4711
4995
|
- user: []
|
|
4996
|
+
- oauth:
|
|
4997
|
+
- organization:write
|
|
4712
4998
|
parameters:
|
|
4713
4999
|
- $ref: "#/components/parameters/organizationId"
|
|
4714
5000
|
requestBody:
|
|
@@ -4760,34 +5046,16 @@ paths:
|
|
|
4760
5046
|
- organization-members
|
|
4761
5047
|
security:
|
|
4762
5048
|
- user: []
|
|
5049
|
+
- oauth:
|
|
5050
|
+
- organization:members:read
|
|
4763
5051
|
parameters:
|
|
4764
5052
|
- $ref: "#/components/parameters/organizationId"
|
|
4765
5053
|
- $ref: "#/components/parameters/listPage"
|
|
4766
5054
|
- $ref: "#/components/parameters/listLimit"
|
|
4767
5055
|
- $ref: "#/components/parameters/listOrder"
|
|
4768
|
-
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
schema:
|
|
4772
|
-
oneOf:
|
|
4773
|
-
- $ref: "#/components/schemas/MemberRole"
|
|
4774
|
-
- type: string
|
|
4775
|
-
enum:
|
|
4776
|
-
- guest
|
|
4777
|
-
- name: search
|
|
4778
|
-
in: query
|
|
4779
|
-
description: A query to filter the member list (displayName and email)
|
|
4780
|
-
schema:
|
|
4781
|
-
type: string
|
|
4782
|
-
- name: sort
|
|
4783
|
-
in: query
|
|
4784
|
-
description: The property to sort the results by. When sorting by lastSeenAt, only active members will be listed.
|
|
4785
|
-
schema:
|
|
4786
|
-
type: string
|
|
4787
|
-
default: joinedAt
|
|
4788
|
-
enum:
|
|
4789
|
-
- joinedAt
|
|
4790
|
-
- lastSeenAt
|
|
5056
|
+
- $ref: "#/components/parameters/memberRoleFilter"
|
|
5057
|
+
- $ref: "#/components/parameters/memberSearch"
|
|
5058
|
+
- $ref: "#/components/parameters/memberSort"
|
|
4791
5059
|
responses:
|
|
4792
5060
|
"200":
|
|
4793
5061
|
description: OK
|
|
@@ -4813,6 +5081,8 @@ paths:
|
|
|
4813
5081
|
- critical
|
|
4814
5082
|
security:
|
|
4815
5083
|
- user: []
|
|
5084
|
+
- oauth:
|
|
5085
|
+
- organization:members:read
|
|
4816
5086
|
parameters:
|
|
4817
5087
|
- $ref: "#/components/parameters/organizationId"
|
|
4818
5088
|
- $ref: "#/components/parameters/userId"
|
|
@@ -4830,6 +5100,8 @@ paths:
|
|
|
4830
5100
|
- organization-members
|
|
4831
5101
|
security:
|
|
4832
5102
|
- user: []
|
|
5103
|
+
- oauth:
|
|
5104
|
+
- organization:members:write
|
|
4833
5105
|
parameters:
|
|
4834
5106
|
- $ref: "#/components/parameters/organizationId"
|
|
4835
5107
|
- $ref: "#/components/parameters/userId"
|
|
@@ -4856,6 +5128,8 @@ paths:
|
|
|
4856
5128
|
- organization-members
|
|
4857
5129
|
security:
|
|
4858
5130
|
- user: []
|
|
5131
|
+
- oauth:
|
|
5132
|
+
- organization:members:write
|
|
4859
5133
|
parameters:
|
|
4860
5134
|
- $ref: "#/components/parameters/organizationId"
|
|
4861
5135
|
- $ref: "#/components/parameters/userId"
|
|
@@ -4911,6 +5185,8 @@ paths:
|
|
|
4911
5185
|
- organization-members
|
|
4912
5186
|
security:
|
|
4913
5187
|
- user: []
|
|
5188
|
+
- oauth:
|
|
5189
|
+
- organization:members:read
|
|
4914
5190
|
parameters:
|
|
4915
5191
|
- $ref: "#/components/parameters/organizationId"
|
|
4916
5192
|
- $ref: "#/components/parameters/userId"
|
|
@@ -4941,6 +5217,8 @@ paths:
|
|
|
4941
5217
|
- organization-members
|
|
4942
5218
|
security:
|
|
4943
5219
|
- user: []
|
|
5220
|
+
- oauth:
|
|
5221
|
+
- organization:members:read
|
|
4944
5222
|
parameters:
|
|
4945
5223
|
- $ref: "#/components/parameters/organizationId"
|
|
4946
5224
|
- $ref: "#/components/parameters/userId"
|
|
@@ -4983,6 +5261,8 @@ paths:
|
|
|
4983
5261
|
- teams
|
|
4984
5262
|
security:
|
|
4985
5263
|
- user: []
|
|
5264
|
+
- oauth:
|
|
5265
|
+
- organization:members:read
|
|
4986
5266
|
parameters:
|
|
4987
5267
|
- $ref: "#/components/parameters/organizationId"
|
|
4988
5268
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -5020,6 +5300,8 @@ paths:
|
|
|
5020
5300
|
- teams
|
|
5021
5301
|
security:
|
|
5022
5302
|
- user: []
|
|
5303
|
+
- oauth:
|
|
5304
|
+
- organization:members:write
|
|
5023
5305
|
parameters:
|
|
5024
5306
|
- $ref: "#/components/parameters/organizationId"
|
|
5025
5307
|
responses:
|
|
@@ -5053,6 +5335,8 @@ paths:
|
|
|
5053
5335
|
- teams
|
|
5054
5336
|
security:
|
|
5055
5337
|
- user: []
|
|
5338
|
+
- oauth:
|
|
5339
|
+
- organization:members:read
|
|
5056
5340
|
parameters:
|
|
5057
5341
|
- $ref: "#/components/parameters/organizationId"
|
|
5058
5342
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -5070,6 +5354,8 @@ paths:
|
|
|
5070
5354
|
- teams
|
|
5071
5355
|
security:
|
|
5072
5356
|
- user: []
|
|
5357
|
+
- oauth:
|
|
5358
|
+
- organization:members:write
|
|
5073
5359
|
parameters:
|
|
5074
5360
|
- $ref: "#/components/parameters/organizationId"
|
|
5075
5361
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -5098,6 +5384,8 @@ paths:
|
|
|
5098
5384
|
- teams
|
|
5099
5385
|
security:
|
|
5100
5386
|
- user: []
|
|
5387
|
+
- oauth:
|
|
5388
|
+
- organization:members:write
|
|
5101
5389
|
parameters:
|
|
5102
5390
|
- $ref: "#/components/parameters/organizationId"
|
|
5103
5391
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -5116,6 +5404,8 @@ paths:
|
|
|
5116
5404
|
- team-members
|
|
5117
5405
|
security:
|
|
5118
5406
|
- user: []
|
|
5407
|
+
- oauth:
|
|
5408
|
+
- organization:members:write
|
|
5119
5409
|
parameters:
|
|
5120
5410
|
- $ref: "#/components/parameters/organizationId"
|
|
5121
5411
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -5137,6 +5427,8 @@ paths:
|
|
|
5137
5427
|
- team-members
|
|
5138
5428
|
security:
|
|
5139
5429
|
- user: []
|
|
5430
|
+
- oauth:
|
|
5431
|
+
- organization:members:read
|
|
5140
5432
|
parameters:
|
|
5141
5433
|
- $ref: "#/components/parameters/organizationId"
|
|
5142
5434
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -5168,6 +5460,8 @@ paths:
|
|
|
5168
5460
|
- team-members
|
|
5169
5461
|
security:
|
|
5170
5462
|
- user: []
|
|
5463
|
+
- oauth:
|
|
5464
|
+
- organization:members:write
|
|
5171
5465
|
parameters:
|
|
5172
5466
|
- $ref: "#/components/parameters/organizationId"
|
|
5173
5467
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -5192,6 +5486,8 @@ paths:
|
|
|
5192
5486
|
- team-members
|
|
5193
5487
|
security:
|
|
5194
5488
|
- user: []
|
|
5489
|
+
- oauth:
|
|
5490
|
+
- organization:members:write
|
|
5195
5491
|
parameters:
|
|
5196
5492
|
- $ref: "#/components/parameters/organizationId"
|
|
5197
5493
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -5209,6 +5505,8 @@ paths:
|
|
|
5209
5505
|
- organization-invites
|
|
5210
5506
|
security:
|
|
5211
5507
|
- user: []
|
|
5508
|
+
- oauth:
|
|
5509
|
+
- organization:members:write
|
|
5212
5510
|
parameters:
|
|
5213
5511
|
- $ref: "#/components/parameters/organizationId"
|
|
5214
5512
|
responses:
|
|
@@ -5251,6 +5549,8 @@ paths:
|
|
|
5251
5549
|
- organization-invites
|
|
5252
5550
|
security:
|
|
5253
5551
|
- user: []
|
|
5552
|
+
- oauth:
|
|
5553
|
+
- organization:members:write
|
|
5254
5554
|
parameters:
|
|
5255
5555
|
- $ref: "#/components/parameters/organizationId"
|
|
5256
5556
|
- $ref: "#/components/parameters/inviteId"
|
|
@@ -5270,6 +5570,8 @@ paths:
|
|
|
5270
5570
|
- organization-invites
|
|
5271
5571
|
security:
|
|
5272
5572
|
- user: []
|
|
5573
|
+
- oauth:
|
|
5574
|
+
- organization:members:read
|
|
5273
5575
|
parameters:
|
|
5274
5576
|
- $ref: "#/components/parameters/organizationId"
|
|
5275
5577
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -5297,6 +5599,8 @@ paths:
|
|
|
5297
5599
|
- organization-invites
|
|
5298
5600
|
security:
|
|
5299
5601
|
- user: []
|
|
5602
|
+
- oauth:
|
|
5603
|
+
- organization:members:write
|
|
5300
5604
|
parameters:
|
|
5301
5605
|
- $ref: "#/components/parameters/organizationId"
|
|
5302
5606
|
requestBody:
|
|
@@ -5320,6 +5624,8 @@ paths:
|
|
|
5320
5624
|
- organization-invites
|
|
5321
5625
|
security:
|
|
5322
5626
|
- user: []
|
|
5627
|
+
- oauth:
|
|
5628
|
+
- organization:members:read
|
|
5323
5629
|
parameters:
|
|
5324
5630
|
- $ref: "#/components/parameters/organizationId"
|
|
5325
5631
|
- $ref: "#/components/parameters/inviteId"
|
|
@@ -5337,6 +5643,8 @@ paths:
|
|
|
5337
5643
|
- organization-invites
|
|
5338
5644
|
security:
|
|
5339
5645
|
- user: []
|
|
5646
|
+
- oauth:
|
|
5647
|
+
- organization:members:write
|
|
5340
5648
|
parameters:
|
|
5341
5649
|
- $ref: "#/components/parameters/organizationId"
|
|
5342
5650
|
- $ref: "#/components/parameters/inviteId"
|
|
@@ -5374,6 +5682,8 @@ paths:
|
|
|
5374
5682
|
- organizations
|
|
5375
5683
|
security:
|
|
5376
5684
|
- user: []
|
|
5685
|
+
- oauth:
|
|
5686
|
+
- organization:members:write
|
|
5377
5687
|
parameters:
|
|
5378
5688
|
- $ref: "#/components/parameters/organizationId"
|
|
5379
5689
|
- $ref: "#/components/parameters/inviteId"
|
|
@@ -5386,6 +5696,7 @@ paths:
|
|
|
5386
5696
|
post:
|
|
5387
5697
|
operationId: joinOrganization
|
|
5388
5698
|
summary: Join an organization
|
|
5699
|
+
x-gitbook-mcp: true
|
|
5389
5700
|
description: |
|
|
5390
5701
|
Join an organization if the user's verified email domain matches one of the organization's allowed email domains.
|
|
5391
5702
|
This endpoint allows existing users to join organizations they're eligible for based on their email domain.
|
|
@@ -5408,10 +5719,13 @@ paths:
|
|
|
5408
5719
|
get:
|
|
5409
5720
|
operationId: searchOrganizationContent
|
|
5410
5721
|
summary: Search content in an organization
|
|
5722
|
+
x-gitbook-mcp: true
|
|
5411
5723
|
tags:
|
|
5412
5724
|
- organizations
|
|
5413
5725
|
security:
|
|
5414
5726
|
- user: []
|
|
5727
|
+
- oauth:
|
|
5728
|
+
- organization:search
|
|
5415
5729
|
parameters:
|
|
5416
5730
|
- name: query
|
|
5417
5731
|
in: query
|
|
@@ -5441,12 +5755,15 @@ paths:
|
|
|
5441
5755
|
/orgs/{organizationId}/change-requests:
|
|
5442
5756
|
get:
|
|
5443
5757
|
operationId: listChangeRequestsForOrganization
|
|
5444
|
-
summary: List all change requests
|
|
5758
|
+
summary: List all change requests across an entire organization
|
|
5759
|
+
description: Returns a paginated list of change requests across all spaces in the organization. Use this for an organization-wide view of open drafts — for example, to find all change requests needing a specific reviewer's attention. For a single space's change requests, use the space-scoped endpoint instead.
|
|
5445
5760
|
x-gitbook-mcp: true
|
|
5446
5761
|
tags:
|
|
5447
5762
|
- change-requests
|
|
5448
5763
|
security:
|
|
5449
5764
|
- user: []
|
|
5765
|
+
- oauth:
|
|
5766
|
+
- space:read
|
|
5450
5767
|
parameters:
|
|
5451
5768
|
- $ref: "#/components/parameters/listPage"
|
|
5452
5769
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -5530,13 +5847,16 @@ paths:
|
|
|
5530
5847
|
/orgs/{organizationId}/spaces:
|
|
5531
5848
|
get:
|
|
5532
5849
|
operationId: listSpacesInOrganizationById
|
|
5533
|
-
summary: List all spaces
|
|
5850
|
+
summary: List all spaces in an organization
|
|
5851
|
+
description: Returns a paginated list of all spaces belonging to the organization. A space is a collection of documentation pages with its own content tree and revision history. Use this to discover spaces before reading their content, adding them to a site, or performing operations on specific spaces.
|
|
5534
5852
|
x-gitbook-mcp: true
|
|
5535
5853
|
tags:
|
|
5536
5854
|
- spaces
|
|
5537
5855
|
security:
|
|
5538
5856
|
- user: []
|
|
5539
5857
|
- integration-installation: []
|
|
5858
|
+
- oauth:
|
|
5859
|
+
- space:read
|
|
5540
5860
|
parameters:
|
|
5541
5861
|
- $ref: "#/components/parameters/organizationId"
|
|
5542
5862
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -5559,12 +5879,15 @@ paths:
|
|
|
5559
5879
|
$ref: "#/components/schemas/Space"
|
|
5560
5880
|
post:
|
|
5561
5881
|
operationId: createSpace
|
|
5562
|
-
summary: Create a space
|
|
5882
|
+
summary: Create a new documentation space in an organization
|
|
5883
|
+
description: Creates a new space within the organization. A space is the primary container for documentation content, holding pages, files, and revisions. After creation, add the space to a site to make it publicly accessible, or start adding content directly via the space content endpoints.
|
|
5563
5884
|
x-gitbook-mcp: true
|
|
5564
5885
|
tags:
|
|
5565
5886
|
- spaces
|
|
5566
5887
|
security:
|
|
5567
5888
|
- user: []
|
|
5889
|
+
- oauth:
|
|
5890
|
+
- space:write
|
|
5568
5891
|
parameters:
|
|
5569
5892
|
- $ref: "#/components/parameters/organizationId"
|
|
5570
5893
|
requestBody:
|
|
@@ -5960,6 +6283,8 @@ paths:
|
|
|
5960
6283
|
- organization-ask
|
|
5961
6284
|
security:
|
|
5962
6285
|
- user: []
|
|
6286
|
+
- oauth:
|
|
6287
|
+
- organization:ask
|
|
5963
6288
|
parameters:
|
|
5964
6289
|
- $ref: "#/components/parameters/organizationId"
|
|
5965
6290
|
- $ref: "#/components/parameters/documentFormat"
|
|
@@ -5994,6 +6319,8 @@ paths:
|
|
|
5994
6319
|
- $ref: "#/components/parameters/organizationId"
|
|
5995
6320
|
security:
|
|
5996
6321
|
- user: []
|
|
6322
|
+
- oauth:
|
|
6323
|
+
- organization:ask
|
|
5997
6324
|
responses:
|
|
5998
6325
|
"200":
|
|
5999
6326
|
description: OK
|
|
@@ -6011,6 +6338,8 @@ paths:
|
|
|
6011
6338
|
- $ref: "#/components/parameters/organizationId"
|
|
6012
6339
|
security:
|
|
6013
6340
|
- user: []
|
|
6341
|
+
- oauth:
|
|
6342
|
+
- organization:ask
|
|
6014
6343
|
responses:
|
|
6015
6344
|
"200":
|
|
6016
6345
|
description: OK
|
|
@@ -6029,6 +6358,8 @@ paths:
|
|
|
6029
6358
|
- user: []
|
|
6030
6359
|
- integration: []
|
|
6031
6360
|
- integration-installation: []
|
|
6361
|
+
- oauth:
|
|
6362
|
+
- organization:ask
|
|
6032
6363
|
parameters:
|
|
6033
6364
|
- $ref: "#/components/parameters/organizationId"
|
|
6034
6365
|
- name: query
|
|
@@ -6053,6 +6384,7 @@ paths:
|
|
|
6053
6384
|
get:
|
|
6054
6385
|
operationId: listOpenAPISpecs
|
|
6055
6386
|
summary: List all OpenAPI spec
|
|
6387
|
+
x-gitbook-mcp: true
|
|
6056
6388
|
tags:
|
|
6057
6389
|
- openapi
|
|
6058
6390
|
security:
|
|
@@ -6082,6 +6414,7 @@ paths:
|
|
|
6082
6414
|
post:
|
|
6083
6415
|
operationId: createOpenAPISpec
|
|
6084
6416
|
summary: Create an OpenAPI spec
|
|
6417
|
+
x-gitbook-mcp: true
|
|
6085
6418
|
tags:
|
|
6086
6419
|
- openapi
|
|
6087
6420
|
security:
|
|
@@ -6117,6 +6450,7 @@ paths:
|
|
|
6117
6450
|
get:
|
|
6118
6451
|
operationId: getOpenAPISpecBySlug
|
|
6119
6452
|
summary: Get an OpenAPI spec by its slug
|
|
6453
|
+
x-gitbook-mcp: true
|
|
6120
6454
|
tags:
|
|
6121
6455
|
- openapi
|
|
6122
6456
|
security:
|
|
@@ -6139,6 +6473,7 @@ paths:
|
|
|
6139
6473
|
put:
|
|
6140
6474
|
operationId: createOrUpdateOpenAPISpecBySlug
|
|
6141
6475
|
summary: Create or update an OpenAPI spec
|
|
6476
|
+
x-gitbook-mcp: true
|
|
6142
6477
|
tags:
|
|
6143
6478
|
- openapi
|
|
6144
6479
|
security:
|
|
@@ -6177,6 +6512,7 @@ paths:
|
|
|
6177
6512
|
patch:
|
|
6178
6513
|
operationId: updateOpenAPISpecBySlug
|
|
6179
6514
|
summary: Update OpenAPI spec visibility
|
|
6515
|
+
x-gitbook-mcp: true
|
|
6180
6516
|
tags:
|
|
6181
6517
|
- openapi
|
|
6182
6518
|
security:
|
|
@@ -6230,6 +6566,7 @@ paths:
|
|
|
6230
6566
|
get:
|
|
6231
6567
|
operationId: listOpenAPISpecVersions
|
|
6232
6568
|
summary: List all OpenAPI spec versions
|
|
6569
|
+
x-gitbook-mcp: true
|
|
6233
6570
|
tags:
|
|
6234
6571
|
- openapi-versions
|
|
6235
6572
|
security:
|
|
@@ -6264,6 +6601,7 @@ paths:
|
|
|
6264
6601
|
get:
|
|
6265
6602
|
operationId: getLatestOpenAPISpecVersion
|
|
6266
6603
|
summary: Get the latest OpenAPI spec version
|
|
6604
|
+
x-gitbook-mcp: true
|
|
6267
6605
|
tags:
|
|
6268
6606
|
- openapi-versions
|
|
6269
6607
|
security:
|
|
@@ -6287,6 +6625,7 @@ paths:
|
|
|
6287
6625
|
get:
|
|
6288
6626
|
operationId: getLatestOpenAPISpecVersionContent
|
|
6289
6627
|
summary: Get the latest OpenAPI spec version content
|
|
6628
|
+
x-gitbook-mcp: true
|
|
6290
6629
|
tags:
|
|
6291
6630
|
- openapi-versions
|
|
6292
6631
|
security:
|
|
@@ -6310,6 +6649,7 @@ paths:
|
|
|
6310
6649
|
get:
|
|
6311
6650
|
operationId: getOpenAPISpecVersionById
|
|
6312
6651
|
summary: Get an OpenAPI spec version by its ID
|
|
6652
|
+
x-gitbook-mcp: true
|
|
6313
6653
|
tags:
|
|
6314
6654
|
- openapi-versions
|
|
6315
6655
|
security:
|
|
@@ -6334,6 +6674,7 @@ paths:
|
|
|
6334
6674
|
get:
|
|
6335
6675
|
operationId: getOpenAPISpecVersionContentById
|
|
6336
6676
|
summary: Get an OpenAPI spec version content by its ID
|
|
6677
|
+
x-gitbook-mcp: true
|
|
6337
6678
|
tags:
|
|
6338
6679
|
- openapi-versions
|
|
6339
6680
|
security:
|
|
@@ -6358,6 +6699,7 @@ paths:
|
|
|
6358
6699
|
get:
|
|
6359
6700
|
operationId: getOrganizationAgentInstructions
|
|
6360
6701
|
summary: Get Docs agent instructions for an organization
|
|
6702
|
+
x-gitbook-mcp: true
|
|
6361
6703
|
tags:
|
|
6362
6704
|
- organizations
|
|
6363
6705
|
- agents
|
|
@@ -6375,6 +6717,7 @@ paths:
|
|
|
6375
6717
|
put:
|
|
6376
6718
|
operationId: updateOrganizationAgentInstructions
|
|
6377
6719
|
summary: Update Docs agent instructions for an organization
|
|
6720
|
+
x-gitbook-mcp: true
|
|
6378
6721
|
tags:
|
|
6379
6722
|
- organizations
|
|
6380
6723
|
- agents
|
|
@@ -6830,6 +7173,8 @@ paths:
|
|
|
6830
7173
|
- imports
|
|
6831
7174
|
security:
|
|
6832
7175
|
- user: []
|
|
7176
|
+
- oauth:
|
|
7177
|
+
- space:write
|
|
6833
7178
|
parameters:
|
|
6834
7179
|
- $ref: "#/components/parameters/organizationId"
|
|
6835
7180
|
requestBody:
|
|
@@ -6886,13 +7231,16 @@ paths:
|
|
|
6886
7231
|
/orgs/{organizationId}/sites:
|
|
6887
7232
|
get:
|
|
6888
7233
|
operationId: listSites
|
|
6889
|
-
summary: List all sites
|
|
7234
|
+
summary: List all documentation sites in an organization
|
|
7235
|
+
description: Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure.
|
|
6890
7236
|
x-gitbook-mcp: true
|
|
6891
7237
|
tags:
|
|
6892
7238
|
- sites
|
|
6893
7239
|
- critical
|
|
6894
7240
|
security:
|
|
6895
7241
|
- user: []
|
|
7242
|
+
- oauth:
|
|
7243
|
+
- site:read
|
|
6896
7244
|
parameters:
|
|
6897
7245
|
- $ref: "#/components/parameters/organizationId"
|
|
6898
7246
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -6941,12 +7289,15 @@ paths:
|
|
|
6941
7289
|
$ref: "#/components/schemas/Site"
|
|
6942
7290
|
post:
|
|
6943
7291
|
operationId: createSite
|
|
6944
|
-
summary: Create a site
|
|
7292
|
+
summary: Create a new documentation site in an organization
|
|
7293
|
+
description: Creates a new documentation site within the organization. Optionally links one or more existing spaces as content sources at creation time. The site is created in an unpublished state; call the publish endpoint separately to make it publicly accessible.
|
|
6945
7294
|
x-gitbook-mcp: true
|
|
6946
7295
|
tags:
|
|
6947
7296
|
- sites
|
|
6948
7297
|
security:
|
|
6949
7298
|
- user: []
|
|
7299
|
+
- oauth:
|
|
7300
|
+
- site:write
|
|
6950
7301
|
parameters:
|
|
6951
7302
|
- $ref: "#/components/parameters/organizationId"
|
|
6952
7303
|
requestBody:
|
|
@@ -6956,7 +7307,10 @@ paths:
|
|
|
6956
7307
|
type: object
|
|
6957
7308
|
properties:
|
|
6958
7309
|
type:
|
|
6959
|
-
description:
|
|
7310
|
+
description: |-
|
|
7311
|
+
The type of the site. Defaults to:
|
|
7312
|
+
- Sponsored for community organizations
|
|
7313
|
+
- Ultimate for all other organizations
|
|
6960
7314
|
$ref: "#/components/schemas/SiteType"
|
|
6961
7315
|
title:
|
|
6962
7316
|
$ref: "#/components/schemas/SiteTitle"
|
|
@@ -6982,7 +7336,8 @@ paths:
|
|
|
6982
7336
|
/orgs/{organizationId}/sites/{siteId}:
|
|
6983
7337
|
get:
|
|
6984
7338
|
operationId: getSiteById
|
|
6985
|
-
summary: Get a site by its ID
|
|
7339
|
+
summary: Get a documentation site by its ID
|
|
7340
|
+
description: Retrieves full details for a single documentation site. Use this to inspect a specific site's metadata before reading or modifying its settings, structure, or content.
|
|
6986
7341
|
x-gitbook-mcp: true
|
|
6987
7342
|
tags:
|
|
6988
7343
|
- sites
|
|
@@ -7001,12 +7356,15 @@ paths:
|
|
|
7001
7356
|
$ref: "#/components/responses/NotFoundError"
|
|
7002
7357
|
patch:
|
|
7003
7358
|
operationId: updateSiteById
|
|
7004
|
-
summary: Update a site
|
|
7359
|
+
summary: Update the properties of a documentation site
|
|
7360
|
+
description: Updates a documentation site's configuration. Use this to rename a site, change its access level, or point it at a reverse-proxy path such as https://company.com/docs.
|
|
7005
7361
|
x-gitbook-mcp: true
|
|
7006
7362
|
tags:
|
|
7007
7363
|
- sites
|
|
7008
7364
|
security:
|
|
7009
7365
|
- user: []
|
|
7366
|
+
- oauth:
|
|
7367
|
+
- site:write
|
|
7010
7368
|
parameters:
|
|
7011
7369
|
- $ref: "#/components/parameters/organizationId"
|
|
7012
7370
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7042,6 +7400,12 @@ paths:
|
|
|
7042
7400
|
oneOf:
|
|
7043
7401
|
- $ref: "#/components/schemas/SiteProxyOrigin"
|
|
7044
7402
|
- type: "null"
|
|
7403
|
+
styleguide:
|
|
7404
|
+
description: |
|
|
7405
|
+
Attach an existing styleguide to the site by the ID of the styleguide space, or `null` to detach the current one. The space must be a styleguide owned by the same organization.
|
|
7406
|
+
oneOf:
|
|
7407
|
+
- type: string
|
|
7408
|
+
- type: "null"
|
|
7045
7409
|
responses:
|
|
7046
7410
|
"200":
|
|
7047
7411
|
description: OK
|
|
@@ -7056,6 +7420,8 @@ paths:
|
|
|
7056
7420
|
- sites
|
|
7057
7421
|
security:
|
|
7058
7422
|
- user: []
|
|
7423
|
+
- oauth:
|
|
7424
|
+
- site:write
|
|
7059
7425
|
parameters:
|
|
7060
7426
|
- $ref: "#/components/parameters/organizationId"
|
|
7061
7427
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7098,7 +7464,8 @@ paths:
|
|
|
7098
7464
|
/orgs/{organizationId}/sites/{siteId}/adaptive-schema:
|
|
7099
7465
|
get:
|
|
7100
7466
|
operationId: getSiteAdaptiveSchema
|
|
7101
|
-
summary: Get the JSON schema
|
|
7467
|
+
summary: Get the visitor attributes JSON schema for an adaptive content site
|
|
7468
|
+
description: Returns the JSON schema that defines the visitor attributes expected by an adaptive content site. Adaptive content uses these attributes (e.g., user role, plan tier) to conditionally show or hide content sections. Use this to understand what visitor data must be provided when rendering adaptive content.
|
|
7102
7469
|
x-gitbook-mcp: true
|
|
7103
7470
|
tags:
|
|
7104
7471
|
- sites
|
|
@@ -7106,6 +7473,8 @@ paths:
|
|
|
7106
7473
|
- user: []
|
|
7107
7474
|
- integration: []
|
|
7108
7475
|
- integration-installation: []
|
|
7476
|
+
- oauth:
|
|
7477
|
+
- site:read
|
|
7109
7478
|
parameters:
|
|
7110
7479
|
- $ref: "#/components/parameters/organizationId"
|
|
7111
7480
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7123,7 +7492,8 @@ paths:
|
|
|
7123
7492
|
$ref: "#/components/responses/UnexpectedError"
|
|
7124
7493
|
put:
|
|
7125
7494
|
operationId: updateSiteAdaptiveSchema
|
|
7126
|
-
summary: Update the JSON schema
|
|
7495
|
+
summary: Update the visitor attributes JSON schema for an adaptive content site
|
|
7496
|
+
description: Replaces the JSON schema that defines expected visitor attributes for adaptive content. The schema controls which attributes (e.g., role, subscription tier) can be used in conditional expressions to show or hide content for specific visitors. After updating, existing conditional expressions are evaluated against the new schema.
|
|
7127
7497
|
x-gitbook-mcp: true
|
|
7128
7498
|
tags:
|
|
7129
7499
|
- sites
|
|
@@ -7131,6 +7501,8 @@ paths:
|
|
|
7131
7501
|
- user: []
|
|
7132
7502
|
- integration: []
|
|
7133
7503
|
- integration-installation: []
|
|
7504
|
+
- oauth:
|
|
7505
|
+
- site:write
|
|
7134
7506
|
parameters:
|
|
7135
7507
|
- $ref: "#/components/parameters/organizationId"
|
|
7136
7508
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7160,7 +7532,8 @@ paths:
|
|
|
7160
7532
|
/orgs/{organizationId}/sites/{siteId}/adaptive-schema/template-conditions:
|
|
7161
7533
|
get:
|
|
7162
7534
|
operationId: listSiteAdaptiveTemplateConditions
|
|
7163
|
-
summary: List templates
|
|
7535
|
+
summary: List condition templates for adaptive content expressions in a site
|
|
7536
|
+
description: Returns pre-generated condition templates derived from the site's visitor attributes schema. These templates can be used as building blocks when writing adaptive content expressions to conditionally show or hide content for different visitor types. Use this to discover available conditions before authoring adaptive rules.
|
|
7164
7537
|
x-gitbook-mcp: true
|
|
7165
7538
|
tags:
|
|
7166
7539
|
- sites
|
|
@@ -7184,13 +7557,15 @@ paths:
|
|
|
7184
7557
|
/orgs/{organizationId}/sites/{siteId}/published:
|
|
7185
7558
|
get:
|
|
7186
7559
|
operationId: getPublishedContentSite
|
|
7187
|
-
summary: Get
|
|
7560
|
+
summary: Get the full published profile of a site including structure and customization
|
|
7561
|
+
description: Returns the complete profile needed to render the published experience of a site. Use this when building a site renderer or preview rather than fetching each resource individually.
|
|
7188
7562
|
x-gitbook-mcp: true
|
|
7189
|
-
description: Get the complete profile of a site in an organization to provide the published experience. It includes site, customization, structure, integration scripts etc.
|
|
7190
7563
|
tags:
|
|
7191
7564
|
- sites
|
|
7192
7565
|
security:
|
|
7193
7566
|
- user: []
|
|
7567
|
+
- oauth:
|
|
7568
|
+
- site:read
|
|
7194
7569
|
parameters:
|
|
7195
7570
|
- $ref: "#/components/parameters/organizationId"
|
|
7196
7571
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7208,12 +7583,15 @@ paths:
|
|
|
7208
7583
|
/orgs/{organizationId}/sites/{siteId}/publish:
|
|
7209
7584
|
post:
|
|
7210
7585
|
operationId: publishSite
|
|
7211
|
-
summary: Publish a site
|
|
7586
|
+
summary: Publish a site to make it publicly accessible
|
|
7587
|
+
description: Makes the site publicly accessible at its configured URL by publishing it. If the organization's plan requires an upgrade, the response includes a Stripe checkout session ID instead of the site object. Use unpublish to take the site offline again.
|
|
7212
7588
|
x-gitbook-mcp: true
|
|
7213
7589
|
tags:
|
|
7214
7590
|
- sites
|
|
7215
7591
|
security:
|
|
7216
7592
|
- user: []
|
|
7593
|
+
- oauth:
|
|
7594
|
+
- site:publish
|
|
7217
7595
|
parameters:
|
|
7218
7596
|
- $ref: "#/components/parameters/organizationId"
|
|
7219
7597
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7241,12 +7619,15 @@ paths:
|
|
|
7241
7619
|
/orgs/{organizationId}/sites/{siteId}/unpublish:
|
|
7242
7620
|
post:
|
|
7243
7621
|
operationId: unpublishSite
|
|
7244
|
-
summary:
|
|
7622
|
+
summary: Take a site offline by unpublishing it
|
|
7623
|
+
description: Removes the site from public access by unpublishing it. The site's configuration and content are preserved; use the publish endpoint to make it accessible again. Use this when you need to temporarily hide a site or take it down for maintenance.
|
|
7245
7624
|
x-gitbook-mcp: true
|
|
7246
7625
|
tags:
|
|
7247
7626
|
- sites
|
|
7248
7627
|
security:
|
|
7249
7628
|
- user: []
|
|
7629
|
+
- oauth:
|
|
7630
|
+
- site:publish
|
|
7250
7631
|
parameters:
|
|
7251
7632
|
- $ref: "#/components/parameters/organizationId"
|
|
7252
7633
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7260,12 +7641,15 @@ paths:
|
|
|
7260
7641
|
/orgs/{organizationId}/sites/{siteId}/share-links:
|
|
7261
7642
|
get:
|
|
7262
7643
|
operationId: listSiteShareLinks
|
|
7263
|
-
summary: List all share links
|
|
7644
|
+
summary: List all private share links for a site
|
|
7645
|
+
description: Returns a paginated list of share links configured for the site. Share links grant access to a private site without requiring full authentication. Use this to audit existing share links, check their active status, or find a link ID before updating or revoking it.
|
|
7264
7646
|
x-gitbook-mcp: true
|
|
7265
7647
|
tags:
|
|
7266
7648
|
- site-share-links
|
|
7267
7649
|
security:
|
|
7268
7650
|
- user: []
|
|
7651
|
+
- oauth:
|
|
7652
|
+
- site:auth:read
|
|
7269
7653
|
parameters:
|
|
7270
7654
|
- $ref: "#/components/parameters/organizationId"
|
|
7271
7655
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7294,12 +7678,15 @@ paths:
|
|
|
7294
7678
|
$ref: "#/components/schemas/ShareLink"
|
|
7295
7679
|
post:
|
|
7296
7680
|
operationId: createSiteShareLink
|
|
7297
|
-
summary: Create a share link
|
|
7681
|
+
summary: Create a private share link for a site
|
|
7682
|
+
description: Creates a new named share link that grants access to the private site without requiring full user authentication. Share links are useful for sharing pre-publication content with reviewers or stakeholders. Each link has a unique key and can be activated or deactivated independently.
|
|
7298
7683
|
x-gitbook-mcp: true
|
|
7299
7684
|
tags:
|
|
7300
7685
|
- site-share-links
|
|
7301
7686
|
security:
|
|
7302
7687
|
- user: []
|
|
7688
|
+
- oauth:
|
|
7689
|
+
- site:auth:write
|
|
7303
7690
|
parameters:
|
|
7304
7691
|
- $ref: "#/components/parameters/organizationId"
|
|
7305
7692
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7329,12 +7716,15 @@ paths:
|
|
|
7329
7716
|
/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}:
|
|
7330
7717
|
patch:
|
|
7331
7718
|
operationId: updateSiteShareLinkById
|
|
7332
|
-
summary: Update a share link
|
|
7719
|
+
summary: Update a private share link for a site
|
|
7720
|
+
description: Updates a share link's properties. Use this to temporarily disable a share link without losing its configuration.
|
|
7333
7721
|
x-gitbook-mcp: true
|
|
7334
7722
|
tags:
|
|
7335
7723
|
- site-share-links
|
|
7336
7724
|
security:
|
|
7337
7725
|
- user: []
|
|
7726
|
+
- oauth:
|
|
7727
|
+
- site:auth:write
|
|
7338
7728
|
parameters:
|
|
7339
7729
|
- $ref: "#/components/parameters/organizationId"
|
|
7340
7730
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7365,6 +7755,8 @@ paths:
|
|
|
7365
7755
|
- site-share-links
|
|
7366
7756
|
security:
|
|
7367
7757
|
- user: []
|
|
7758
|
+
- oauth:
|
|
7759
|
+
- site:auth:write
|
|
7368
7760
|
parameters:
|
|
7369
7761
|
- $ref: "#/components/parameters/organizationId"
|
|
7370
7762
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7377,13 +7769,15 @@ paths:
|
|
|
7377
7769
|
/orgs/{organizationId}/sites/{siteId}/structure:
|
|
7378
7770
|
get:
|
|
7379
7771
|
operationId: getSiteStructure
|
|
7380
|
-
summary: Get a site
|
|
7772
|
+
summary: Get the full navigation structure of a site
|
|
7773
|
+
description: Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. Use this to understand how a site's navigation is organized before making structural changes, or to render the full navigation tree of a site.
|
|
7381
7774
|
x-gitbook-mcp: true
|
|
7382
|
-
description: Get the complete structure of a site that includes all its site-sections and site-spaces.
|
|
7383
7775
|
tags:
|
|
7384
7776
|
- site-structure
|
|
7385
7777
|
security:
|
|
7386
7778
|
- user: []
|
|
7779
|
+
- oauth:
|
|
7780
|
+
- site:read
|
|
7387
7781
|
parameters:
|
|
7388
7782
|
- $ref: "#/components/parameters/organizationId"
|
|
7389
7783
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7401,12 +7795,15 @@ paths:
|
|
|
7401
7795
|
/orgs/{organizationId}/sites/{siteId}/structure/sort:
|
|
7402
7796
|
patch:
|
|
7403
7797
|
operationId: sortSiteStructure
|
|
7404
|
-
summary: Move a site space,
|
|
7798
|
+
summary: Move a site space, section, or section group to a new position
|
|
7799
|
+
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.
|
|
7405
7800
|
x-gitbook-mcp: true
|
|
7406
7801
|
tags:
|
|
7407
7802
|
- sites
|
|
7408
7803
|
security:
|
|
7409
7804
|
- user: []
|
|
7805
|
+
- oauth:
|
|
7806
|
+
- site:write
|
|
7410
7807
|
parameters:
|
|
7411
7808
|
- $ref: "#/components/parameters/organizationId"
|
|
7412
7809
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7443,12 +7840,15 @@ paths:
|
|
|
7443
7840
|
/orgs/{organizationId}/sites/{siteId}/publishing/auth:
|
|
7444
7841
|
get:
|
|
7445
7842
|
operationId: getSitePublishingAuthById
|
|
7446
|
-
summary: Get a site
|
|
7843
|
+
summary: Get the published content authentication configuration for a site
|
|
7844
|
+
description: Retrieves the authentication settings that protect a site's published content. Use this to review the current auth method before making changes or troubleshooting access issues.
|
|
7447
7845
|
x-gitbook-mcp: true
|
|
7448
7846
|
tags:
|
|
7449
7847
|
- site-publishing-auth
|
|
7450
7848
|
security:
|
|
7451
7849
|
- user: []
|
|
7850
|
+
- oauth:
|
|
7851
|
+
- site:auth:read
|
|
7452
7852
|
parameters:
|
|
7453
7853
|
- $ref: "#/components/parameters/organizationId"
|
|
7454
7854
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7463,12 +7863,15 @@ paths:
|
|
|
7463
7863
|
$ref: "#/components/responses/BadRequestError"
|
|
7464
7864
|
patch:
|
|
7465
7865
|
operationId: updateSitePublishingAuthById
|
|
7466
|
-
summary: Update a site
|
|
7866
|
+
summary: Update the published content authentication configuration for a site
|
|
7867
|
+
description: Modifies the authentication method used to protect a site's published content. Use this to enable, disable, or change the auth method for a published site.
|
|
7467
7868
|
x-gitbook-mcp: true
|
|
7468
7869
|
tags:
|
|
7469
7870
|
- site-publishing-auth
|
|
7470
7871
|
security:
|
|
7471
7872
|
- user: []
|
|
7873
|
+
- oauth:
|
|
7874
|
+
- site:auth:write
|
|
7472
7875
|
parameters:
|
|
7473
7876
|
- $ref: "#/components/parameters/organizationId"
|
|
7474
7877
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7490,13 +7893,15 @@ paths:
|
|
|
7490
7893
|
/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate:
|
|
7491
7894
|
post:
|
|
7492
7895
|
operationId: regenerateSitePublishingAuthById
|
|
7493
|
-
summary: Regenerate a site
|
|
7896
|
+
summary: Regenerate the private key for a site's published content authentication
|
|
7897
|
+
description: Re-generates the private key used for the site's publishing authentication (e.g., JWT signing key for SSO). Existing tokens signed with the old key will become invalid immediately. Use this to rotate credentials after a security incident or as part of a regular key rotation policy.
|
|
7494
7898
|
x-gitbook-mcp: true
|
|
7495
|
-
description: Regenerate the publishing authentication settings for a site. This will re-generate the private key.
|
|
7496
7899
|
tags:
|
|
7497
7900
|
- site-publishing-auth
|
|
7498
7901
|
security:
|
|
7499
7902
|
- user: []
|
|
7903
|
+
- oauth:
|
|
7904
|
+
- site:auth:write
|
|
7500
7905
|
parameters:
|
|
7501
7906
|
- $ref: "#/components/parameters/organizationId"
|
|
7502
7907
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7512,13 +7917,15 @@ paths:
|
|
|
7512
7917
|
/orgs/{organizationId}/sites/{siteId}/publishing/preview:
|
|
7513
7918
|
get:
|
|
7514
7919
|
operationId: getSitePublishingPreviewById
|
|
7515
|
-
summary:
|
|
7920
|
+
summary: Generate a temporary preview URL for a site's published content
|
|
7921
|
+
description: Generates a time-limited URL (valid for 1 hour) to preview how a site will look when published. Use this to verify changes before making the site publicly accessible.
|
|
7516
7922
|
x-gitbook-mcp: true
|
|
7517
|
-
description: Generate a URL to preview the published content of a site. The URL will be valid for 1 hour.
|
|
7518
7923
|
tags:
|
|
7519
7924
|
- site-preview
|
|
7520
7925
|
security:
|
|
7521
7926
|
- user: []
|
|
7927
|
+
- oauth:
|
|
7928
|
+
- site:read
|
|
7522
7929
|
parameters:
|
|
7523
7930
|
- $ref: "#/components/parameters/organizationId"
|
|
7524
7931
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7560,12 +7967,15 @@ paths:
|
|
|
7560
7967
|
/orgs/{organizationId}/sites/{siteId}/customization:
|
|
7561
7968
|
get:
|
|
7562
7969
|
operationId: getSiteCustomizationById
|
|
7563
|
-
summary: Get
|
|
7970
|
+
summary: Get the branding and visual customization settings for a site
|
|
7971
|
+
description: Retrieves the full customization configuration for a site. Use this before making updates to read the current state, or to audit branding settings.
|
|
7564
7972
|
x-gitbook-mcp: true
|
|
7565
7973
|
tags:
|
|
7566
7974
|
- site-customization
|
|
7567
7975
|
security:
|
|
7568
7976
|
- user: []
|
|
7977
|
+
- oauth:
|
|
7978
|
+
- site:read
|
|
7569
7979
|
parameters:
|
|
7570
7980
|
- $ref: "#/components/parameters/organizationId"
|
|
7571
7981
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7581,12 +7991,15 @@ paths:
|
|
|
7581
7991
|
$ref: "#/components/responses/BadRequestError"
|
|
7582
7992
|
put:
|
|
7583
7993
|
operationId: updateSiteCustomizationById
|
|
7584
|
-
summary: Update
|
|
7994
|
+
summary: Update the branding and visual customization settings for a site
|
|
7995
|
+
description: Replaces the full customization configuration for a site. This is a full replacement — unset fields revert to defaults. Use the GET endpoint first to read the current settings before making targeted changes.
|
|
7585
7996
|
x-gitbook-mcp: true
|
|
7586
7997
|
tags:
|
|
7587
7998
|
- site-customization
|
|
7588
7999
|
security:
|
|
7589
8000
|
- user: []
|
|
8001
|
+
- oauth:
|
|
8002
|
+
- site:write
|
|
7590
8003
|
parameters:
|
|
7591
8004
|
- $ref: "#/components/parameters/organizationId"
|
|
7592
8005
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7608,13 +8021,16 @@ paths:
|
|
|
7608
8021
|
/orgs/{organizationId}/sites/{siteId}/integration-scripts:
|
|
7609
8022
|
get:
|
|
7610
8023
|
operationId: listSiteIntegrationScripts
|
|
7611
|
-
summary: List
|
|
8024
|
+
summary: List custom scripts injected into a site's published pages
|
|
8025
|
+
description: Returns all integration scripts configured to be injected into the published pages of a site, such as analytics trackers, chat widgets, or custom JavaScript. Use this to audit which third-party scripts are active on the site.
|
|
7612
8026
|
x-gitbook-mcp: true
|
|
7613
8027
|
tags:
|
|
7614
8028
|
- integrations
|
|
7615
8029
|
- sites
|
|
7616
8030
|
security:
|
|
7617
8031
|
- user: []
|
|
8032
|
+
- oauth:
|
|
8033
|
+
- site:read
|
|
7618
8034
|
parameters:
|
|
7619
8035
|
- $ref: "#/components/parameters/organizationId"
|
|
7620
8036
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7632,13 +8048,16 @@ paths:
|
|
|
7632
8048
|
/orgs/{organizationId}/sites/{siteId}/integrations:
|
|
7633
8049
|
get:
|
|
7634
8050
|
operationId: listSiteIntegrations
|
|
7635
|
-
summary: List integrations enabled
|
|
8051
|
+
summary: List third-party integrations enabled on a site
|
|
8052
|
+
description: Returns a paginated list of integrations currently enabled on the site. Integrations extend site functionality with third-party services such as analytics, support, or authentication providers. Use this to audit which integrations are active, or to find an integration before updating its settings.
|
|
7636
8053
|
x-gitbook-mcp: true
|
|
7637
8054
|
tags:
|
|
7638
8055
|
- integrations
|
|
7639
8056
|
- sites
|
|
7640
8057
|
security:
|
|
7641
8058
|
- user: []
|
|
8059
|
+
- oauth:
|
|
8060
|
+
- site:read
|
|
7642
8061
|
parameters:
|
|
7643
8062
|
- $ref: "#/components/parameters/organizationId"
|
|
7644
8063
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7662,12 +8081,15 @@ paths:
|
|
|
7662
8081
|
/orgs/{organizationId}/sites/{siteId}/site-spaces:
|
|
7663
8082
|
post:
|
|
7664
8083
|
operationId: addSpaceToSite
|
|
7665
|
-
summary: Add a space to a site
|
|
8084
|
+
summary: Add a space to a site as a content source
|
|
8085
|
+
description: Links an existing space to the site by creating a site space relationship.
|
|
7666
8086
|
x-gitbook-mcp: true
|
|
7667
8087
|
tags:
|
|
7668
8088
|
- site-spaces
|
|
7669
8089
|
security:
|
|
7670
8090
|
- user: []
|
|
8091
|
+
- oauth:
|
|
8092
|
+
- site:write
|
|
7671
8093
|
parameters:
|
|
7672
8094
|
- $ref: "#/components/parameters/organizationId"
|
|
7673
8095
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7704,13 +8126,16 @@ paths:
|
|
|
7704
8126
|
$ref: "#/components/schemas/SiteSpace"
|
|
7705
8127
|
get:
|
|
7706
8128
|
operationId: listSiteSpaces
|
|
7707
|
-
summary: List all
|
|
8129
|
+
summary: List all spaces linked to a site as content sources
|
|
8130
|
+
description: Returns a paginated list of site spaces — the links between a site and its content source spaces. Each site space can be a language variant or content version within a section. Use the default filter to retrieve only the primary site space, or omit it to get all linked spaces including drafts.
|
|
7708
8131
|
x-gitbook-mcp: true
|
|
7709
8132
|
tags:
|
|
7710
8133
|
- site-spaces
|
|
7711
8134
|
- critical
|
|
7712
8135
|
security:
|
|
7713
8136
|
- user: []
|
|
8137
|
+
- oauth:
|
|
8138
|
+
- site:read
|
|
7714
8139
|
parameters:
|
|
7715
8140
|
- $ref: "#/components/parameters/organizationId"
|
|
7716
8141
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7741,12 +8166,15 @@ paths:
|
|
|
7741
8166
|
/orgs/{organizationId}/sites/{siteId}/section-groups:
|
|
7742
8167
|
get:
|
|
7743
8168
|
operationId: listSiteSectionGroups
|
|
7744
|
-
summary: List all site
|
|
8169
|
+
summary: List all section groups in a site's navigation structure
|
|
8170
|
+
description: Returns a paginated list of section groups for the site. Section groups are containers that organize multiple sections into a hierarchical navigation structure. Use this to inspect the current grouping before adding, updating, or reordering items in the site structure.
|
|
7745
8171
|
x-gitbook-mcp: true
|
|
7746
8172
|
tags:
|
|
7747
8173
|
- site-section-groups
|
|
7748
8174
|
security:
|
|
7749
8175
|
- user: []
|
|
8176
|
+
- oauth:
|
|
8177
|
+
- site:read
|
|
7750
8178
|
parameters:
|
|
7751
8179
|
- $ref: "#/components/parameters/organizationId"
|
|
7752
8180
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7770,12 +8198,15 @@ paths:
|
|
|
7770
8198
|
$ref: "#/components/schemas/SiteSectionGroup"
|
|
7771
8199
|
post:
|
|
7772
8200
|
operationId: addSectionGroupToSite
|
|
7773
|
-
summary: Add a section group to a site
|
|
8201
|
+
summary: Add a section group to a site's navigation structure
|
|
8202
|
+
description: Creates a new section group to organize multiple sections under a shared navigation label. Section groups can be nested by providing a parent group ID. Existing sections can be assigned to the group at creation time via their IDs. Create the group in draft mode to stage it before publishing.
|
|
7774
8203
|
x-gitbook-mcp: true
|
|
7775
8204
|
tags:
|
|
7776
8205
|
- site-section-groups
|
|
7777
8206
|
security:
|
|
7778
8207
|
- user: []
|
|
8208
|
+
- oauth:
|
|
8209
|
+
- site:write
|
|
7779
8210
|
parameters:
|
|
7780
8211
|
- $ref: "#/components/parameters/organizationId"
|
|
7781
8212
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7820,12 +8251,15 @@ paths:
|
|
|
7820
8251
|
/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}:
|
|
7821
8252
|
patch:
|
|
7822
8253
|
operationId: updateSiteSectionGroupById
|
|
7823
|
-
summary: Update a site
|
|
8254
|
+
summary: Update a section group in a site's navigation structure
|
|
8255
|
+
description: Updates a section group's properties in the site's navigation structure.
|
|
7824
8256
|
x-gitbook-mcp: true
|
|
7825
8257
|
tags:
|
|
7826
8258
|
- site-section-groups
|
|
7827
8259
|
security:
|
|
7828
8260
|
- user: []
|
|
8261
|
+
- oauth:
|
|
8262
|
+
- site:write
|
|
7829
8263
|
parameters:
|
|
7830
8264
|
- $ref: "#/components/parameters/organizationId"
|
|
7831
8265
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7862,6 +8296,8 @@ paths:
|
|
|
7862
8296
|
- site-section-groups
|
|
7863
8297
|
security:
|
|
7864
8298
|
- user: []
|
|
8299
|
+
- oauth:
|
|
8300
|
+
- site:write
|
|
7865
8301
|
parameters:
|
|
7866
8302
|
- $ref: "#/components/parameters/organizationId"
|
|
7867
8303
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7874,12 +8310,15 @@ paths:
|
|
|
7874
8310
|
/orgs/{organizationId}/sites/{siteId}/sections:
|
|
7875
8311
|
post:
|
|
7876
8312
|
operationId: addSectionToSite
|
|
7877
|
-
summary: Add a section to a site
|
|
8313
|
+
summary: Add a new navigation section to a site backed by a space
|
|
8314
|
+
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.
|
|
7878
8315
|
x-gitbook-mcp: true
|
|
7879
8316
|
tags:
|
|
7880
8317
|
- site-sections
|
|
7881
8318
|
security:
|
|
7882
8319
|
- user: []
|
|
8320
|
+
- oauth:
|
|
8321
|
+
- site:write
|
|
7883
8322
|
parameters:
|
|
7884
8323
|
- $ref: "#/components/parameters/organizationId"
|
|
7885
8324
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7923,12 +8362,15 @@ paths:
|
|
|
7923
8362
|
$ref: "#/components/schemas/SiteSection"
|
|
7924
8363
|
get:
|
|
7925
8364
|
operationId: listSiteSections
|
|
7926
|
-
summary: List all
|
|
8365
|
+
summary: List all navigation sections in a site
|
|
8366
|
+
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.
|
|
7927
8367
|
x-gitbook-mcp: true
|
|
7928
8368
|
tags:
|
|
7929
8369
|
- site-sections
|
|
7930
8370
|
security:
|
|
7931
8371
|
- user: []
|
|
8372
|
+
- oauth:
|
|
8373
|
+
- site:read
|
|
7932
8374
|
parameters:
|
|
7933
8375
|
- $ref: "#/components/parameters/organizationId"
|
|
7934
8376
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7954,12 +8396,15 @@ paths:
|
|
|
7954
8396
|
/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}:
|
|
7955
8397
|
patch:
|
|
7956
8398
|
operationId: updateSiteSectionById
|
|
7957
|
-
summary: Update a
|
|
8399
|
+
summary: Update a navigation section in a site
|
|
8400
|
+
description: Updates a navigation section's configuration in the site structure.
|
|
7958
8401
|
x-gitbook-mcp: true
|
|
7959
8402
|
tags:
|
|
7960
8403
|
- site-sections
|
|
7961
8404
|
security:
|
|
7962
8405
|
- user: []
|
|
8406
|
+
- oauth:
|
|
8407
|
+
- site:write
|
|
7963
8408
|
parameters:
|
|
7964
8409
|
- $ref: "#/components/parameters/organizationId"
|
|
7965
8410
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8017,6 +8462,8 @@ paths:
|
|
|
8017
8462
|
- site-sections
|
|
8018
8463
|
security:
|
|
8019
8464
|
- user: []
|
|
8465
|
+
- oauth:
|
|
8466
|
+
- site:write
|
|
8020
8467
|
parameters:
|
|
8021
8468
|
- $ref: "#/components/parameters/organizationId"
|
|
8022
8469
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8029,12 +8476,15 @@ paths:
|
|
|
8029
8476
|
/orgs/{organizationId}/sites/{siteId}/search:
|
|
8030
8477
|
post:
|
|
8031
8478
|
operationId: searchSiteContent
|
|
8032
|
-
summary:
|
|
8479
|
+
summary: Full-text search across all content in a site
|
|
8480
|
+
description: Performs a full-text search across all published spaces in the site and returns matching pages with relevant excerpts. Use the scope parameter to restrict the search to specific site spaces or sections. Prefer this over the space-level search when you need to search across a multi-section site in one call.
|
|
8033
8481
|
x-gitbook-mcp: true
|
|
8034
8482
|
tags:
|
|
8035
8483
|
- sites
|
|
8036
8484
|
security:
|
|
8037
8485
|
- user: []
|
|
8486
|
+
- oauth:
|
|
8487
|
+
- site:search
|
|
8038
8488
|
parameters:
|
|
8039
8489
|
- $ref: "#/components/parameters/organizationId"
|
|
8040
8490
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8128,6 +8578,8 @@ paths:
|
|
|
8128
8578
|
- site-ask
|
|
8129
8579
|
security:
|
|
8130
8580
|
- user: []
|
|
8581
|
+
- oauth:
|
|
8582
|
+
- site:ask
|
|
8131
8583
|
parameters:
|
|
8132
8584
|
- $ref: "#/components/parameters/organizationId"
|
|
8133
8585
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8177,6 +8629,8 @@ paths:
|
|
|
8177
8629
|
- site-ask
|
|
8178
8630
|
security:
|
|
8179
8631
|
- user: []
|
|
8632
|
+
- oauth:
|
|
8633
|
+
- site:ask
|
|
8180
8634
|
parameters:
|
|
8181
8635
|
- $ref: "#/components/parameters/organizationId"
|
|
8182
8636
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8206,6 +8660,8 @@ paths:
|
|
|
8206
8660
|
- site-context
|
|
8207
8661
|
security:
|
|
8208
8662
|
- user: []
|
|
8663
|
+
- oauth:
|
|
8664
|
+
- site:read
|
|
8209
8665
|
parameters:
|
|
8210
8666
|
- $ref: "#/components/parameters/organizationId"
|
|
8211
8667
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8254,6 +8710,8 @@ paths:
|
|
|
8254
8710
|
- site-context
|
|
8255
8711
|
security:
|
|
8256
8712
|
- user: []
|
|
8713
|
+
- oauth:
|
|
8714
|
+
- site:write
|
|
8257
8715
|
parameters:
|
|
8258
8716
|
- $ref: "#/components/parameters/organizationId"
|
|
8259
8717
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8276,6 +8734,8 @@ paths:
|
|
|
8276
8734
|
- site-context
|
|
8277
8735
|
security:
|
|
8278
8736
|
- user: []
|
|
8737
|
+
- oauth:
|
|
8738
|
+
- site:read
|
|
8279
8739
|
parameters:
|
|
8280
8740
|
- $ref: "#/components/parameters/organizationId"
|
|
8281
8741
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8295,6 +8755,8 @@ paths:
|
|
|
8295
8755
|
- site-context
|
|
8296
8756
|
security:
|
|
8297
8757
|
- user: []
|
|
8758
|
+
- oauth:
|
|
8759
|
+
- site:read
|
|
8298
8760
|
parameters:
|
|
8299
8761
|
- $ref: "#/components/parameters/organizationId"
|
|
8300
8762
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8333,6 +8795,8 @@ paths:
|
|
|
8333
8795
|
- site-context
|
|
8334
8796
|
security:
|
|
8335
8797
|
- user: []
|
|
8798
|
+
- oauth:
|
|
8799
|
+
- site:write
|
|
8336
8800
|
parameters:
|
|
8337
8801
|
- $ref: "#/components/parameters/organizationId"
|
|
8338
8802
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8363,6 +8827,8 @@ paths:
|
|
|
8363
8827
|
- site-context
|
|
8364
8828
|
security:
|
|
8365
8829
|
- user: []
|
|
8830
|
+
- oauth:
|
|
8831
|
+
- site:read
|
|
8366
8832
|
parameters:
|
|
8367
8833
|
- $ref: "#/components/parameters/organizationId"
|
|
8368
8834
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8382,6 +8848,8 @@ paths:
|
|
|
8382
8848
|
- site-context
|
|
8383
8849
|
security:
|
|
8384
8850
|
- user: []
|
|
8851
|
+
- oauth:
|
|
8852
|
+
- site:read
|
|
8385
8853
|
parameters:
|
|
8386
8854
|
- $ref: "#/components/parameters/organizationId"
|
|
8387
8855
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8436,6 +8904,8 @@ paths:
|
|
|
8436
8904
|
- site-context
|
|
8437
8905
|
security:
|
|
8438
8906
|
- user: []
|
|
8907
|
+
- oauth:
|
|
8908
|
+
- site:read
|
|
8439
8909
|
parameters:
|
|
8440
8910
|
- $ref: "#/components/parameters/organizationId"
|
|
8441
8911
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8454,6 +8924,8 @@ paths:
|
|
|
8454
8924
|
- site-context
|
|
8455
8925
|
security:
|
|
8456
8926
|
- user: []
|
|
8927
|
+
- oauth:
|
|
8928
|
+
- site:write
|
|
8457
8929
|
parameters:
|
|
8458
8930
|
- $ref: "#/components/parameters/organizationId"
|
|
8459
8931
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8466,11 +8938,7 @@ paths:
|
|
|
8466
8938
|
type: object
|
|
8467
8939
|
properties:
|
|
8468
8940
|
status:
|
|
8469
|
-
|
|
8470
|
-
enum:
|
|
8471
|
-
- open
|
|
8472
|
-
- done
|
|
8473
|
-
- canceled
|
|
8941
|
+
$ref: "#/components/schemas/SiteFindingStatus"
|
|
8474
8942
|
required:
|
|
8475
8943
|
- status
|
|
8476
8944
|
responses:
|
|
@@ -8488,6 +8956,8 @@ paths:
|
|
|
8488
8956
|
- site-context
|
|
8489
8957
|
security:
|
|
8490
8958
|
- user: []
|
|
8959
|
+
- oauth:
|
|
8960
|
+
- site:read
|
|
8491
8961
|
parameters:
|
|
8492
8962
|
- $ref: "#/components/parameters/listPage"
|
|
8493
8963
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -8517,6 +8987,8 @@ paths:
|
|
|
8517
8987
|
- site-context
|
|
8518
8988
|
security:
|
|
8519
8989
|
- user: []
|
|
8990
|
+
- oauth:
|
|
8991
|
+
- site:write
|
|
8520
8992
|
parameters:
|
|
8521
8993
|
- $ref: "#/components/parameters/organizationId"
|
|
8522
8994
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8532,6 +9004,8 @@ paths:
|
|
|
8532
9004
|
- site-context
|
|
8533
9005
|
security:
|
|
8534
9006
|
- user: []
|
|
9007
|
+
- oauth:
|
|
9008
|
+
- site:read
|
|
8535
9009
|
parameters:
|
|
8536
9010
|
- $ref: "#/components/parameters/listPage"
|
|
8537
9011
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -8562,6 +9036,8 @@ paths:
|
|
|
8562
9036
|
- site-context
|
|
8563
9037
|
security:
|
|
8564
9038
|
- user: []
|
|
9039
|
+
- oauth:
|
|
9040
|
+
- site:read
|
|
8565
9041
|
parameters:
|
|
8566
9042
|
- $ref: "#/components/parameters/listPage"
|
|
8567
9043
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -8592,6 +9068,8 @@ paths:
|
|
|
8592
9068
|
- site-context
|
|
8593
9069
|
security:
|
|
8594
9070
|
- user: []
|
|
9071
|
+
- oauth:
|
|
9072
|
+
- site:read
|
|
8595
9073
|
parameters:
|
|
8596
9074
|
- $ref: "#/components/parameters/listPage"
|
|
8597
9075
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -8622,6 +9100,8 @@ paths:
|
|
|
8622
9100
|
- site-context
|
|
8623
9101
|
security:
|
|
8624
9102
|
- user: []
|
|
9103
|
+
- oauth:
|
|
9104
|
+
- site:read
|
|
8625
9105
|
parameters:
|
|
8626
9106
|
- $ref: "#/components/parameters/organizationId"
|
|
8627
9107
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8650,6 +9130,8 @@ paths:
|
|
|
8650
9130
|
- site-context
|
|
8651
9131
|
security:
|
|
8652
9132
|
- user: []
|
|
9133
|
+
- oauth:
|
|
9134
|
+
- site:write
|
|
8653
9135
|
parameters:
|
|
8654
9136
|
- $ref: "#/components/parameters/organizationId"
|
|
8655
9137
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8664,6 +9146,8 @@ paths:
|
|
|
8664
9146
|
properties:
|
|
8665
9147
|
usageSettings:
|
|
8666
9148
|
$ref: "#/components/schemas/ContextUsageSettings"
|
|
9149
|
+
filter:
|
|
9150
|
+
$ref: "#/components/schemas/ContextConnectionFilter"
|
|
8667
9151
|
responses:
|
|
8668
9152
|
"201":
|
|
8669
9153
|
description: Created connection
|
|
@@ -8679,6 +9163,8 @@ paths:
|
|
|
8679
9163
|
- site-context
|
|
8680
9164
|
security:
|
|
8681
9165
|
- user: []
|
|
9166
|
+
- oauth:
|
|
9167
|
+
- site:read
|
|
8682
9168
|
parameters:
|
|
8683
9169
|
- $ref: "#/components/parameters/organizationId"
|
|
8684
9170
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8697,6 +9183,8 @@ paths:
|
|
|
8697
9183
|
- site-context
|
|
8698
9184
|
security:
|
|
8699
9185
|
- user: []
|
|
9186
|
+
- oauth:
|
|
9187
|
+
- site:write
|
|
8700
9188
|
parameters:
|
|
8701
9189
|
- $ref: "#/components/parameters/organizationId"
|
|
8702
9190
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8714,6 +9202,8 @@ paths:
|
|
|
8714
9202
|
$ref: "#/components/schemas/ContextUsageSettings"
|
|
8715
9203
|
label:
|
|
8716
9204
|
$ref: "#/components/schemas/ContextConnectionLabel"
|
|
9205
|
+
filter:
|
|
9206
|
+
$ref: "#/components/schemas/ContextConnectionFilter"
|
|
8717
9207
|
responses:
|
|
8718
9208
|
"200":
|
|
8719
9209
|
description: OK
|
|
@@ -8728,6 +9218,8 @@ paths:
|
|
|
8728
9218
|
- site-context
|
|
8729
9219
|
security:
|
|
8730
9220
|
- user: []
|
|
9221
|
+
- oauth:
|
|
9222
|
+
- site:write
|
|
8731
9223
|
parameters:
|
|
8732
9224
|
- $ref: "#/components/parameters/organizationId"
|
|
8733
9225
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8745,6 +9237,8 @@ paths:
|
|
|
8745
9237
|
- site-context
|
|
8746
9238
|
security:
|
|
8747
9239
|
- user: []
|
|
9240
|
+
- oauth:
|
|
9241
|
+
- site:write
|
|
8748
9242
|
parameters:
|
|
8749
9243
|
- $ref: "#/components/parameters/organizationId"
|
|
8750
9244
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8763,6 +9257,8 @@ paths:
|
|
|
8763
9257
|
- site-context
|
|
8764
9258
|
security:
|
|
8765
9259
|
- user: []
|
|
9260
|
+
- oauth:
|
|
9261
|
+
- site:read
|
|
8766
9262
|
parameters:
|
|
8767
9263
|
- $ref: "#/components/parameters/organizationId"
|
|
8768
9264
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8798,6 +9294,8 @@ paths:
|
|
|
8798
9294
|
- site-context
|
|
8799
9295
|
security:
|
|
8800
9296
|
- user: []
|
|
9297
|
+
- oauth:
|
|
9298
|
+
- site:read
|
|
8801
9299
|
parameters:
|
|
8802
9300
|
- $ref: "#/components/parameters/organizationId"
|
|
8803
9301
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8816,6 +9314,8 @@ paths:
|
|
|
8816
9314
|
- site-context
|
|
8817
9315
|
security:
|
|
8818
9316
|
- user: []
|
|
9317
|
+
- oauth:
|
|
9318
|
+
- site:write
|
|
8819
9319
|
parameters:
|
|
8820
9320
|
- $ref: "#/components/parameters/organizationId"
|
|
8821
9321
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8846,6 +9346,8 @@ paths:
|
|
|
8846
9346
|
- site-context
|
|
8847
9347
|
security:
|
|
8848
9348
|
- user: []
|
|
9349
|
+
- oauth:
|
|
9350
|
+
- site:write
|
|
8849
9351
|
parameters:
|
|
8850
9352
|
- $ref: "#/components/parameters/organizationId"
|
|
8851
9353
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8858,11 +9360,15 @@ paths:
|
|
|
8858
9360
|
/orgs/{organizationId}/sites/{siteId}/questions:
|
|
8859
9361
|
get:
|
|
8860
9362
|
operationId: listSiteQuestions
|
|
8861
|
-
summary: List
|
|
9363
|
+
summary: List the questions visitors asked a site's Ask AI assistant
|
|
9364
|
+
description: Returns a paginated list of the questions visitors asked a site's Ask AI assistant, each with usage stats. Use it to discover what users are looking for and where the documentation has gaps.
|
|
9365
|
+
x-gitbook-mcp: true
|
|
8862
9366
|
tags:
|
|
8863
9367
|
- site-questions
|
|
8864
9368
|
security:
|
|
8865
9369
|
- user: []
|
|
9370
|
+
- oauth:
|
|
9371
|
+
- site:insights:read
|
|
8866
9372
|
parameters:
|
|
8867
9373
|
- $ref: "#/components/parameters/organizationId"
|
|
8868
9374
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8941,11 +9447,15 @@ paths:
|
|
|
8941
9447
|
/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}:
|
|
8942
9448
|
get:
|
|
8943
9449
|
operationId: getSiteQuestionById
|
|
8944
|
-
summary: Get a
|
|
9450
|
+
summary: Get a single Ask AI question by ID
|
|
9451
|
+
description: Retrieves one question asked to a site's Ask AI assistant, including its canonical text and aggregate stats. Use it to inspect a specific question discovered via listSiteQuestions.
|
|
9452
|
+
x-gitbook-mcp: true
|
|
8945
9453
|
tags:
|
|
8946
9454
|
- site-questions
|
|
8947
9455
|
security:
|
|
8948
9456
|
- user: []
|
|
9457
|
+
- oauth:
|
|
9458
|
+
- site:insights:read
|
|
8949
9459
|
parameters:
|
|
8950
9460
|
- $ref: "#/components/parameters/organizationId"
|
|
8951
9461
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8991,11 +9501,15 @@ paths:
|
|
|
8991
9501
|
/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources:
|
|
8992
9502
|
get:
|
|
8993
9503
|
operationId: listSiteQuestionSources
|
|
8994
|
-
summary: List sources
|
|
9504
|
+
summary: List the documentation sources used to answer a question
|
|
9505
|
+
description: Returns the documentation pages the Ask AI assistant used to answer a given question. Use it to see which content grounded the AI's responses to that question.
|
|
9506
|
+
x-gitbook-mcp: true
|
|
8995
9507
|
tags:
|
|
8996
9508
|
- site-questions
|
|
8997
9509
|
security:
|
|
8998
9510
|
- user: []
|
|
9511
|
+
- oauth:
|
|
9512
|
+
- site:insights:read
|
|
8999
9513
|
parameters:
|
|
9000
9514
|
- $ref: "#/components/parameters/organizationId"
|
|
9001
9515
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9052,11 +9566,15 @@ paths:
|
|
|
9052
9566
|
/orgs/{organizationId}/sites/{siteId}/question-stats:
|
|
9053
9567
|
get:
|
|
9054
9568
|
operationId: getSiteQuestionStats
|
|
9055
|
-
summary: Get question
|
|
9569
|
+
summary: Get aggregate Ask AI question statistics for a site
|
|
9570
|
+
description: Returns aggregate statistics about the questions visitors asked a site's Ask AI assistant over a time range, optionally filtered by topic, relevance, or channel. Use it for a high-level view of AI-assistant usage before drilling into individual questions.
|
|
9571
|
+
x-gitbook-mcp: true
|
|
9056
9572
|
tags:
|
|
9057
9573
|
- site-questions
|
|
9058
9574
|
security:
|
|
9059
9575
|
- user: []
|
|
9576
|
+
- oauth:
|
|
9577
|
+
- site:insights:read
|
|
9060
9578
|
parameters:
|
|
9061
9579
|
- $ref: "#/components/parameters/organizationId"
|
|
9062
9580
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9108,11 +9626,15 @@ paths:
|
|
|
9108
9626
|
/orgs/{organizationId}/sites/{siteId}/answers:
|
|
9109
9627
|
get:
|
|
9110
9628
|
operationId: listSiteQuestionAnswers
|
|
9111
|
-
summary: List
|
|
9629
|
+
summary: List the answers a site's Ask AI assistant generated
|
|
9630
|
+
description: Returns a paginated list of individual Ask AI answers generated for a site. Each is the assistant's response to a specific asked question, with the raw question text, channel, and feedback. Use it to review answer quality and what users asked across the site.
|
|
9631
|
+
x-gitbook-mcp: true
|
|
9112
9632
|
tags:
|
|
9113
9633
|
- site-questions
|
|
9114
9634
|
security:
|
|
9115
9635
|
- user: []
|
|
9636
|
+
- oauth:
|
|
9637
|
+
- site:insights:read
|
|
9116
9638
|
parameters:
|
|
9117
9639
|
- $ref: "#/components/parameters/organizationId"
|
|
9118
9640
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9198,11 +9720,15 @@ paths:
|
|
|
9198
9720
|
/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}:
|
|
9199
9721
|
get:
|
|
9200
9722
|
operationId: getSiteQuestionAnswerById
|
|
9201
|
-
summary: Get a
|
|
9723
|
+
summary: Get a single Ask AI answer by ID
|
|
9724
|
+
description: Retrieves one Ask AI answer, including the question that prompted it, the response, and its feedback. Use it to inspect a specific answer discovered via listSiteQuestionAnswers.
|
|
9725
|
+
x-gitbook-mcp: true
|
|
9202
9726
|
tags:
|
|
9203
9727
|
- site-questions
|
|
9204
9728
|
security:
|
|
9205
9729
|
- user: []
|
|
9730
|
+
- oauth:
|
|
9731
|
+
- site:insights:read
|
|
9206
9732
|
parameters:
|
|
9207
9733
|
- $ref: "#/components/parameters/organizationId"
|
|
9208
9734
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9217,11 +9743,15 @@ paths:
|
|
|
9217
9743
|
/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/thread:
|
|
9218
9744
|
get:
|
|
9219
9745
|
operationId: getSiteQuestionAnswerThreadById
|
|
9220
|
-
summary: Get
|
|
9746
|
+
summary: Get the conversation thread for an Ask AI answer
|
|
9747
|
+
description: "Returns the full conversation thread for a given Ask AI answer: the sequence of follow-up questions and responses in that exchange."
|
|
9748
|
+
x-gitbook-mcp: true
|
|
9221
9749
|
tags:
|
|
9222
9750
|
- site-questions
|
|
9223
9751
|
security:
|
|
9224
9752
|
- user: []
|
|
9753
|
+
- oauth:
|
|
9754
|
+
- site:insights:read
|
|
9225
9755
|
parameters:
|
|
9226
9756
|
- $ref: "#/components/parameters/organizationId"
|
|
9227
9757
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9238,11 +9768,15 @@ paths:
|
|
|
9238
9768
|
/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources:
|
|
9239
9769
|
get:
|
|
9240
9770
|
operationId: listSiteQuestionAnswerSources
|
|
9241
|
-
summary: List the sources for an answer
|
|
9771
|
+
summary: List the documentation sources cited for an answer
|
|
9772
|
+
description: Returns the documentation pages the Ask AI assistant cited to produce a given answer. Use it to see exactly which content grounded that specific answer.
|
|
9773
|
+
x-gitbook-mcp: true
|
|
9242
9774
|
tags:
|
|
9243
9775
|
- site-questions
|
|
9244
9776
|
security:
|
|
9245
9777
|
- user: []
|
|
9778
|
+
- oauth:
|
|
9779
|
+
- site:insights:read
|
|
9246
9780
|
parameters:
|
|
9247
9781
|
- $ref: "#/components/parameters/organizationId"
|
|
9248
9782
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9268,12 +9802,15 @@ paths:
|
|
|
9268
9802
|
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}:
|
|
9269
9803
|
patch:
|
|
9270
9804
|
operationId: updateSiteSpaceById
|
|
9271
|
-
summary: Update a site
|
|
9805
|
+
summary: Update a space linked to a site
|
|
9806
|
+
description: Updates the configuration of a site space. Use this to remap a site space to a different space, hide it from navigation, or promote it from draft to live.
|
|
9272
9807
|
x-gitbook-mcp: true
|
|
9273
9808
|
tags:
|
|
9274
9809
|
- site-spaces
|
|
9275
9810
|
security:
|
|
9276
9811
|
- user: []
|
|
9812
|
+
- oauth:
|
|
9813
|
+
- site:write
|
|
9277
9814
|
parameters:
|
|
9278
9815
|
- $ref: "#/components/parameters/organizationId"
|
|
9279
9816
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9315,6 +9852,8 @@ paths:
|
|
|
9315
9852
|
- site-spaces
|
|
9316
9853
|
security:
|
|
9317
9854
|
- user: []
|
|
9855
|
+
- oauth:
|
|
9856
|
+
- site:write
|
|
9318
9857
|
parameters:
|
|
9319
9858
|
- $ref: "#/components/parameters/organizationId"
|
|
9320
9859
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9327,12 +9866,15 @@ paths:
|
|
|
9327
9866
|
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization:
|
|
9328
9867
|
get:
|
|
9329
9868
|
operationId: getSiteSpaceCustomizationById
|
|
9330
|
-
summary: Get a site space
|
|
9869
|
+
summary: Get the customization overrides for a site space
|
|
9870
|
+
description: Retrieves the customization settings that override the site-level branding for a specific site space, such as a language variant or content version. Returns the effective settings with site-level defaults where no override is set. Use this before applying or removing overrides.
|
|
9331
9871
|
x-gitbook-mcp: true
|
|
9332
9872
|
tags:
|
|
9333
9873
|
- site-customization
|
|
9334
9874
|
security:
|
|
9335
9875
|
- user: []
|
|
9876
|
+
- oauth:
|
|
9877
|
+
- site:read
|
|
9336
9878
|
parameters:
|
|
9337
9879
|
- $ref: "#/components/parameters/organizationId"
|
|
9338
9880
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9349,12 +9891,15 @@ paths:
|
|
|
9349
9891
|
$ref: "#/components/responses/BadRequestError"
|
|
9350
9892
|
patch:
|
|
9351
9893
|
operationId: overrideSiteSpaceCustomizationById
|
|
9352
|
-
summary: Override a site space
|
|
9894
|
+
summary: Override branding and customization settings for a specific site space
|
|
9895
|
+
description: Applies customization overrides to a specific site space, such as a language variant or content version, that take precedence over the site-level settings. Only provided fields are overridden; set a field to null to clear its override and fall back to the site-level value.
|
|
9353
9896
|
x-gitbook-mcp: true
|
|
9354
9897
|
tags:
|
|
9355
9898
|
- site-customization
|
|
9356
9899
|
security:
|
|
9357
9900
|
- user: []
|
|
9901
|
+
- oauth:
|
|
9902
|
+
- site:write
|
|
9358
9903
|
parameters:
|
|
9359
9904
|
- $ref: "#/components/parameters/organizationId"
|
|
9360
9905
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9628,6 +10173,8 @@ paths:
|
|
|
9628
10173
|
- site-customization
|
|
9629
10174
|
security:
|
|
9630
10175
|
- user: []
|
|
10176
|
+
- oauth:
|
|
10177
|
+
- site:write
|
|
9631
10178
|
parameters:
|
|
9632
10179
|
- $ref: "#/components/parameters/organizationId"
|
|
9633
10180
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9648,6 +10195,8 @@ paths:
|
|
|
9648
10195
|
- site-section-groups
|
|
9649
10196
|
security:
|
|
9650
10197
|
- user: []
|
|
10198
|
+
- oauth:
|
|
10199
|
+
- site:write
|
|
9651
10200
|
parameters:
|
|
9652
10201
|
- $ref: "#/components/parameters/organizationId"
|
|
9653
10202
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9683,6 +10232,8 @@ paths:
|
|
|
9683
10232
|
- site-sections
|
|
9684
10233
|
security:
|
|
9685
10234
|
- user: []
|
|
10235
|
+
- oauth:
|
|
10236
|
+
- site:write
|
|
9686
10237
|
parameters:
|
|
9687
10238
|
- $ref: "#/components/parameters/organizationId"
|
|
9688
10239
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9718,6 +10269,8 @@ paths:
|
|
|
9718
10269
|
- site-spaces
|
|
9719
10270
|
security:
|
|
9720
10271
|
- user: []
|
|
10272
|
+
- oauth:
|
|
10273
|
+
- site:write
|
|
9721
10274
|
parameters:
|
|
9722
10275
|
- $ref: "#/components/parameters/organizationId"
|
|
9723
10276
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9752,6 +10305,8 @@ paths:
|
|
|
9752
10305
|
- site-permissions
|
|
9753
10306
|
security:
|
|
9754
10307
|
- user: []
|
|
10308
|
+
- oauth:
|
|
10309
|
+
- site:permissions:write
|
|
9755
10310
|
parameters:
|
|
9756
10311
|
- $ref: "#/components/parameters/organizationId"
|
|
9757
10312
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9775,11 +10330,22 @@ paths:
|
|
|
9775
10330
|
- site-users
|
|
9776
10331
|
security:
|
|
9777
10332
|
- user: []
|
|
10333
|
+
- oauth:
|
|
10334
|
+
- site:permissions:read
|
|
9778
10335
|
parameters:
|
|
9779
10336
|
- $ref: "#/components/parameters/organizationId"
|
|
9780
10337
|
- $ref: "#/components/parameters/siteId"
|
|
9781
10338
|
- $ref: "#/components/parameters/listPage"
|
|
9782
10339
|
- $ref: "#/components/parameters/listLimit"
|
|
10340
|
+
- $ref: "#/components/parameters/listOrder"
|
|
10341
|
+
- $ref: "#/components/parameters/memberRoleFilter"
|
|
10342
|
+
- $ref: "#/components/parameters/memberSearch"
|
|
10343
|
+
- $ref: "#/components/parameters/memberSort"
|
|
10344
|
+
- name: team
|
|
10345
|
+
in: query
|
|
10346
|
+
description: Team identifier. Filter the list to members of a specific team.
|
|
10347
|
+
schema:
|
|
10348
|
+
type: string
|
|
9783
10349
|
responses:
|
|
9784
10350
|
"200":
|
|
9785
10351
|
description: Listing of users who can access the site.
|
|
@@ -9804,6 +10370,8 @@ paths:
|
|
|
9804
10370
|
- site-users
|
|
9805
10371
|
security:
|
|
9806
10372
|
- user: []
|
|
10373
|
+
- oauth:
|
|
10374
|
+
- site:permissions:read
|
|
9807
10375
|
parameters:
|
|
9808
10376
|
- $ref: "#/components/parameters/organizationId"
|
|
9809
10377
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9836,6 +10404,8 @@ paths:
|
|
|
9836
10404
|
- site-users
|
|
9837
10405
|
security:
|
|
9838
10406
|
- user: []
|
|
10407
|
+
- oauth:
|
|
10408
|
+
- site:permissions:write
|
|
9839
10409
|
parameters:
|
|
9840
10410
|
- $ref: "#/components/parameters/organizationId"
|
|
9841
10411
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9862,6 +10432,8 @@ paths:
|
|
|
9862
10432
|
- site-users
|
|
9863
10433
|
security:
|
|
9864
10434
|
- user: []
|
|
10435
|
+
- oauth:
|
|
10436
|
+
- site:permissions:write
|
|
9865
10437
|
parameters:
|
|
9866
10438
|
- $ref: "#/components/parameters/organizationId"
|
|
9867
10439
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9879,6 +10451,8 @@ paths:
|
|
|
9879
10451
|
- site-permissions
|
|
9880
10452
|
security:
|
|
9881
10453
|
- user: []
|
|
10454
|
+
- oauth:
|
|
10455
|
+
- site:permissions:read
|
|
9882
10456
|
parameters:
|
|
9883
10457
|
- $ref: "#/components/parameters/organizationId"
|
|
9884
10458
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9911,6 +10485,8 @@ paths:
|
|
|
9911
10485
|
- site-permissions
|
|
9912
10486
|
security:
|
|
9913
10487
|
- user: []
|
|
10488
|
+
- oauth:
|
|
10489
|
+
- site:permissions:write
|
|
9914
10490
|
parameters:
|
|
9915
10491
|
- $ref: "#/components/parameters/organizationId"
|
|
9916
10492
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9937,6 +10513,8 @@ paths:
|
|
|
9937
10513
|
- site-permissions
|
|
9938
10514
|
security:
|
|
9939
10515
|
- user: []
|
|
10516
|
+
- oauth:
|
|
10517
|
+
- site:permissions:write
|
|
9940
10518
|
parameters:
|
|
9941
10519
|
- $ref: "#/components/parameters/organizationId"
|
|
9942
10520
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9956,6 +10534,8 @@ paths:
|
|
|
9956
10534
|
- site-ai
|
|
9957
10535
|
security:
|
|
9958
10536
|
- user: []
|
|
10537
|
+
- oauth:
|
|
10538
|
+
- site:ask
|
|
9959
10539
|
parameters:
|
|
9960
10540
|
- $ref: "#/components/parameters/organizationId"
|
|
9961
10541
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10005,12 +10585,15 @@ paths:
|
|
|
10005
10585
|
/orgs/{organizationId}/sites/{siteId}/agent-settings:
|
|
10006
10586
|
get:
|
|
10007
10587
|
operationId: getSiteAgentSettingsById
|
|
10008
|
-
summary: Get
|
|
10588
|
+
summary: Get the AI agent configuration for a site
|
|
10589
|
+
description: Retrieves the configuration for the AI built into the GitBook editor that assists authors with drafting and refining content changes. Use this before updating agent settings to understand the current configuration.
|
|
10009
10590
|
x-gitbook-mcp: true
|
|
10010
10591
|
tags:
|
|
10011
10592
|
- site-agent-settings
|
|
10012
10593
|
security:
|
|
10013
10594
|
- user: []
|
|
10595
|
+
- oauth:
|
|
10596
|
+
- site:read
|
|
10014
10597
|
parameters:
|
|
10015
10598
|
- $ref: "#/components/parameters/organizationId"
|
|
10016
10599
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10025,12 +10608,15 @@ paths:
|
|
|
10025
10608
|
$ref: "#/components/responses/BadRequestError"
|
|
10026
10609
|
put:
|
|
10027
10610
|
operationId: updateSiteAgentSettingsById
|
|
10028
|
-
summary: Update
|
|
10611
|
+
summary: Update the AI agent configuration for a site
|
|
10612
|
+
description: Replaces the configuration for the AI built into the GitBook editor that helps authors draft, review, and refine content changes. Use this to customize how the AI behaves when assisting authors working on content for this site.
|
|
10029
10613
|
x-gitbook-mcp: true
|
|
10030
10614
|
tags:
|
|
10031
10615
|
- site-agent-settings
|
|
10032
10616
|
security:
|
|
10033
10617
|
- user: []
|
|
10618
|
+
- oauth:
|
|
10619
|
+
- site:write
|
|
10034
10620
|
parameters:
|
|
10035
10621
|
- $ref: "#/components/parameters/organizationId"
|
|
10036
10622
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10052,42 +10638,36 @@ paths:
|
|
|
10052
10638
|
/orgs/{organizationId}/sites/{siteId}/styleguide:
|
|
10053
10639
|
post:
|
|
10054
10640
|
operationId: createSiteStyleguideById
|
|
10055
|
-
summary: Create or
|
|
10641
|
+
summary: Create or retrieve the styleguide space for a site
|
|
10642
|
+
description: Ensures the site has a dedicated styleguide space and returns it. The styleguide defines writing style and tone guidelines that the AI editor agent references when generating or refining content for the site. If a styleguide already exists, this is idempotent and returns the existing space.
|
|
10056
10643
|
x-gitbook-mcp: true
|
|
10057
|
-
description: |
|
|
10058
|
-
Ensures the site has a site-owned styleguide backing space and returns
|
|
10059
|
-
a reference to it.
|
|
10060
10644
|
tags:
|
|
10061
10645
|
- sites
|
|
10062
10646
|
security:
|
|
10063
10647
|
- user: []
|
|
10648
|
+
- oauth:
|
|
10649
|
+
- site:write
|
|
10064
10650
|
parameters:
|
|
10065
10651
|
- $ref: "#/components/parameters/organizationId"
|
|
10066
10652
|
- $ref: "#/components/parameters/siteId"
|
|
10653
|
+
requestBody:
|
|
10654
|
+
required: false
|
|
10655
|
+
content:
|
|
10656
|
+
application/json:
|
|
10657
|
+
schema:
|
|
10658
|
+
type: object
|
|
10659
|
+
properties:
|
|
10660
|
+
template:
|
|
10661
|
+
type: string
|
|
10662
|
+
description: |
|
|
10663
|
+
Built-in template id to seed the styleguide content with. Omit (or send no body) to create a blank styleguide.
|
|
10067
10664
|
responses:
|
|
10068
10665
|
"200":
|
|
10069
10666
|
description: Styleguide created or already exists.
|
|
10070
10667
|
content:
|
|
10071
10668
|
application/json:
|
|
10072
10669
|
schema:
|
|
10073
|
-
$ref: "#/components/schemas/
|
|
10074
|
-
"404":
|
|
10075
|
-
$ref: "#/components/responses/NotFoundError"
|
|
10076
|
-
delete:
|
|
10077
|
-
operationId: deleteSiteStyleguideById
|
|
10078
|
-
summary: Delete a site's styleguide
|
|
10079
|
-
description: |
|
|
10080
|
-
Clears the site's styleguide reference and soft-deletes the space.
|
|
10081
|
-
tags:
|
|
10082
|
-
- sites
|
|
10083
|
-
security:
|
|
10084
|
-
- user: []
|
|
10085
|
-
parameters:
|
|
10086
|
-
- $ref: "#/components/parameters/organizationId"
|
|
10087
|
-
- $ref: "#/components/parameters/siteId"
|
|
10088
|
-
responses:
|
|
10089
|
-
"204":
|
|
10090
|
-
description: Styleguide deleted.
|
|
10670
|
+
$ref: "#/components/schemas/Space"
|
|
10091
10671
|
"404":
|
|
10092
10672
|
$ref: "#/components/responses/NotFoundError"
|
|
10093
10673
|
/orgs/{organizationId}/sites/{siteId}/insights/events:
|
|
@@ -10118,9 +10698,13 @@ paths:
|
|
|
10118
10698
|
/orgs/{organizationId}/sites/{siteId}/insights/events/aggregate:
|
|
10119
10699
|
post:
|
|
10120
10700
|
operationId: aggregateSiteEvents
|
|
10121
|
-
summary: Query site events
|
|
10701
|
+
summary: Query a site's analytics events
|
|
10702
|
+
description: Runs an aggregation query over a published site's Insights events, grouped and filtered over a time range. Use it to answer analytics questions about how visitors engage with a site's documentation.
|
|
10703
|
+
x-gitbook-mcp: true
|
|
10122
10704
|
security:
|
|
10123
10705
|
- user: []
|
|
10706
|
+
- oauth:
|
|
10707
|
+
- site:insights:read
|
|
10124
10708
|
tags:
|
|
10125
10709
|
- site-insights
|
|
10126
10710
|
parameters:
|
|
@@ -10167,12 +10751,15 @@ paths:
|
|
|
10167
10751
|
/orgs/{organizationId}/sites/{siteId}/ads:
|
|
10168
10752
|
post:
|
|
10169
10753
|
operationId: updateSiteAdsById
|
|
10170
|
-
summary: Update a site
|
|
10754
|
+
summary: Update the advertising settings for a site
|
|
10755
|
+
description: Updates the advertising configuration for a site, including the review status and topic category used to select relevant ads. This controls GitBook's monetization feature for sites opted into the ads program.
|
|
10171
10756
|
x-gitbook-mcp: true
|
|
10172
10757
|
tags:
|
|
10173
10758
|
- site-ads
|
|
10174
10759
|
security:
|
|
10175
10760
|
- user: []
|
|
10761
|
+
- oauth:
|
|
10762
|
+
- site:write
|
|
10176
10763
|
parameters:
|
|
10177
10764
|
- $ref: "#/components/parameters/organizationId"
|
|
10178
10765
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10196,12 +10783,15 @@ paths:
|
|
|
10196
10783
|
/orgs/{organizationId}/sites/{siteId}/redirects:
|
|
10197
10784
|
post:
|
|
10198
10785
|
operationId: createSiteRedirect
|
|
10199
|
-
summary: Create a
|
|
10786
|
+
summary: Create a URL redirect rule for a site
|
|
10787
|
+
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.
|
|
10200
10788
|
x-gitbook-mcp: true
|
|
10201
10789
|
tags:
|
|
10202
10790
|
- site-redirects
|
|
10203
10791
|
security:
|
|
10204
10792
|
- user: []
|
|
10793
|
+
- oauth:
|
|
10794
|
+
- site:write
|
|
10205
10795
|
parameters:
|
|
10206
10796
|
- $ref: "#/components/parameters/organizationId"
|
|
10207
10797
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10236,12 +10826,15 @@ paths:
|
|
|
10236
10826
|
$ref: "#/components/schemas/SiteRedirect"
|
|
10237
10827
|
put:
|
|
10238
10828
|
operationId: bulkUpsertSiteRedirects
|
|
10239
|
-
summary: Create or
|
|
10829
|
+
summary: Create, update, delete, or publish site redirect rules in bulk
|
|
10830
|
+
description: Processes up to 500 redirect operations in a single request. Each redirect in the array is processed independently and the response includes per-item status. Prefer this over individual create/update calls when managing large sets of redirects.
|
|
10240
10831
|
x-gitbook-mcp: true
|
|
10241
10832
|
tags:
|
|
10242
10833
|
- site-redirects
|
|
10243
10834
|
security:
|
|
10244
10835
|
- user: []
|
|
10836
|
+
- oauth:
|
|
10837
|
+
- site:write
|
|
10245
10838
|
parameters:
|
|
10246
10839
|
- $ref: "#/components/parameters/organizationId"
|
|
10247
10840
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10411,12 +11004,15 @@ paths:
|
|
|
10411
11004
|
- results
|
|
10412
11005
|
get:
|
|
10413
11006
|
operationId: listSiteRedirects
|
|
10414
|
-
summary: List all site
|
|
11007
|
+
summary: List all URL redirect rules configured for a site
|
|
11008
|
+
description: Returns a paginated list of redirect rules for the site. Supports filtering by draft status and searching by path. Use this to audit redirects, find a specific rule before updating it, or check whether draft redirects are pending publication.
|
|
10415
11009
|
x-gitbook-mcp: true
|
|
10416
11010
|
tags:
|
|
10417
11011
|
- site-redirects
|
|
10418
11012
|
security:
|
|
10419
11013
|
- user: []
|
|
11014
|
+
- oauth:
|
|
11015
|
+
- site:read
|
|
10420
11016
|
parameters:
|
|
10421
11017
|
- $ref: "#/components/parameters/organizationId"
|
|
10422
11018
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10452,12 +11048,15 @@ paths:
|
|
|
10452
11048
|
/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}:
|
|
10453
11049
|
patch:
|
|
10454
11050
|
operationId: updateSiteRedirectById
|
|
10455
|
-
summary: Update a
|
|
11051
|
+
summary: Update a URL redirect rule for a site
|
|
11052
|
+
description: Updates an existing redirect rule for a site. Only provided fields are updated.
|
|
10456
11053
|
x-gitbook-mcp: true
|
|
10457
11054
|
tags:
|
|
10458
11055
|
- site-redirects
|
|
10459
11056
|
security:
|
|
10460
11057
|
- user: []
|
|
11058
|
+
- oauth:
|
|
11059
|
+
- site:write
|
|
10461
11060
|
parameters:
|
|
10462
11061
|
- $ref: "#/components/parameters/organizationId"
|
|
10463
11062
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10493,6 +11092,8 @@ paths:
|
|
|
10493
11092
|
- site-redirects
|
|
10494
11093
|
security:
|
|
10495
11094
|
- user: []
|
|
11095
|
+
- oauth:
|
|
11096
|
+
- site:write
|
|
10496
11097
|
parameters:
|
|
10497
11098
|
- $ref: "#/components/parameters/organizationId"
|
|
10498
11099
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10505,12 +11106,15 @@ paths:
|
|
|
10505
11106
|
/orgs/{organizationId}/sites/{siteId}/redirect:
|
|
10506
11107
|
get:
|
|
10507
11108
|
operationId: getSiteRedirectBySource
|
|
10508
|
-
summary:
|
|
11109
|
+
summary: Resolve a site redirect rule by its source path
|
|
11110
|
+
description: Looks up a redirect rule by its source URL path and returns both the redirect configuration and the resolved destination URL. Use this to check whether a specific path has a redirect configured, or to resolve where a path currently points before updating or removing the redirect.
|
|
10509
11111
|
x-gitbook-mcp: true
|
|
10510
11112
|
tags:
|
|
10511
11113
|
- site-redirects
|
|
10512
11114
|
security:
|
|
10513
11115
|
- user: []
|
|
11116
|
+
- oauth:
|
|
11117
|
+
- site:read
|
|
10514
11118
|
parameters:
|
|
10515
11119
|
- $ref: "#/components/parameters/organizationId"
|
|
10516
11120
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10542,12 +11146,15 @@ paths:
|
|
|
10542
11146
|
/orgs/{organizationId}/sites/{siteId}/mcp-servers:
|
|
10543
11147
|
get:
|
|
10544
11148
|
operationId: listSiteMcpServers
|
|
10545
|
-
summary: List all MCP servers for a site
|
|
11149
|
+
summary: List all MCP servers configured for a site
|
|
11150
|
+
description: Returns a paginated list of Model Context Protocol (MCP) server configurations attached to the site. MCP servers expose tools and resources that the AI Assistant can call when helping site visitors find information. Use this to audit or manage the AI tool integrations available on a site.
|
|
10546
11151
|
x-gitbook-mcp: true
|
|
10547
11152
|
tags:
|
|
10548
11153
|
- site-mcp-servers
|
|
10549
11154
|
security:
|
|
10550
11155
|
- user: []
|
|
11156
|
+
- oauth:
|
|
11157
|
+
- site:read
|
|
10551
11158
|
parameters:
|
|
10552
11159
|
- $ref: "#/components/parameters/organizationId"
|
|
10553
11160
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10571,12 +11178,15 @@ paths:
|
|
|
10571
11178
|
$ref: "#/components/schemas/SiteMcpServer"
|
|
10572
11179
|
post:
|
|
10573
11180
|
operationId: createSiteMcpServer
|
|
10574
|
-
summary:
|
|
11181
|
+
summary: Add a new MCP server configuration to a site
|
|
11182
|
+
description: Registers a new Model Context Protocol (MCP) server with the site, providing its URL, transport type, request headers, and an optional conditional expression to control visibility per visitor. Once added, the MCP server's tools become available to the AI Assistant when helping visitors of this site.
|
|
10575
11183
|
x-gitbook-mcp: true
|
|
10576
11184
|
tags:
|
|
10577
11185
|
- site-mcp-servers
|
|
10578
11186
|
security:
|
|
10579
11187
|
- user: []
|
|
11188
|
+
- oauth:
|
|
11189
|
+
- site:write
|
|
10580
11190
|
parameters:
|
|
10581
11191
|
- $ref: "#/components/parameters/organizationId"
|
|
10582
11192
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10614,12 +11224,15 @@ paths:
|
|
|
10614
11224
|
/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId}:
|
|
10615
11225
|
get:
|
|
10616
11226
|
operationId: getSiteMcpServerById
|
|
10617
|
-
summary: Get a site
|
|
11227
|
+
summary: Get an MCP server configuration for a site by its ID
|
|
11228
|
+
description: Retrieves the configuration of a specific MCP server registered with the site. Use this to inspect an MCP server's details before updating or removing it.
|
|
10618
11229
|
x-gitbook-mcp: true
|
|
10619
11230
|
tags:
|
|
10620
11231
|
- site-mcp-servers
|
|
10621
11232
|
security:
|
|
10622
11233
|
- user: []
|
|
11234
|
+
- oauth:
|
|
11235
|
+
- site:read
|
|
10623
11236
|
parameters:
|
|
10624
11237
|
- $ref: "#/components/parameters/organizationId"
|
|
10625
11238
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10633,12 +11246,15 @@ paths:
|
|
|
10633
11246
|
$ref: "#/components/schemas/SiteMcpServer"
|
|
10634
11247
|
patch:
|
|
10635
11248
|
operationId: updateSiteMcpServerById
|
|
10636
|
-
summary: Update
|
|
11249
|
+
summary: Update an MCP server configuration for a site
|
|
11250
|
+
description: Modifies an existing MCP server's configuration. Only provided fields are updated; omitting a field leaves it unchanged. Set condition to null to remove it and make the MCP server available to all visitors.
|
|
10637
11251
|
x-gitbook-mcp: true
|
|
10638
11252
|
tags:
|
|
10639
11253
|
- site-mcp-servers
|
|
10640
11254
|
security:
|
|
10641
11255
|
- user: []
|
|
11256
|
+
- oauth:
|
|
11257
|
+
- site:write
|
|
10642
11258
|
parameters:
|
|
10643
11259
|
- $ref: "#/components/parameters/organizationId"
|
|
10644
11260
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10679,6 +11295,8 @@ paths:
|
|
|
10679
11295
|
- site-mcp-servers
|
|
10680
11296
|
security:
|
|
10681
11297
|
- user: []
|
|
11298
|
+
- oauth:
|
|
11299
|
+
- site:write
|
|
10682
11300
|
parameters:
|
|
10683
11301
|
- $ref: "#/components/parameters/organizationId"
|
|
10684
11302
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10691,12 +11309,15 @@ paths:
|
|
|
10691
11309
|
/orgs/{organizationId}/sites/{siteId}/channels:
|
|
10692
11310
|
get:
|
|
10693
11311
|
operationId: listSiteChannels
|
|
10694
|
-
summary: List all
|
|
11312
|
+
summary: List all GitBook Agent channels for a site
|
|
11313
|
+
description: Returns a paginated list of channels configured for the site. Channels are integrations that allow GitBook Agent to operate within external tools your team already uses, bringing documentation assistance directly into existing workflows. Each channel has a role that determines whether the Agent answers questions from the site's documentation or actively collaborates by opening and managing content changes. Use this to inspect or manage the Agent channel integrations for a site.
|
|
10695
11314
|
x-gitbook-mcp: true
|
|
10696
11315
|
tags:
|
|
10697
11316
|
- site-channels
|
|
10698
11317
|
security:
|
|
10699
11318
|
- user: []
|
|
11319
|
+
- oauth:
|
|
11320
|
+
- site:read
|
|
10700
11321
|
parameters:
|
|
10701
11322
|
- $ref: "#/components/parameters/organizationId"
|
|
10702
11323
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10720,12 +11341,15 @@ paths:
|
|
|
10720
11341
|
$ref: "#/components/schemas/SiteChannel"
|
|
10721
11342
|
post:
|
|
10722
11343
|
operationId: createSiteChannel
|
|
10723
|
-
summary: Create a
|
|
11344
|
+
summary: Create a new GitBook Agent channel for a site
|
|
11345
|
+
description: Configures a new channel integration that allows GitBook Agent to operate within an external tool connected to this site. The channel role determines whether the Agent acts as a support assistant — answering questions sourced from the site's documentation — or as a collaborator that can open change requests and sync documentation updates directly from the connected platform.
|
|
10724
11346
|
x-gitbook-mcp: true
|
|
10725
11347
|
tags:
|
|
10726
11348
|
- site-channels
|
|
10727
11349
|
security:
|
|
10728
11350
|
- user: []
|
|
11351
|
+
- oauth:
|
|
11352
|
+
- site:write
|
|
10729
11353
|
parameters:
|
|
10730
11354
|
- $ref: "#/components/parameters/organizationId"
|
|
10731
11355
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10750,12 +11374,15 @@ paths:
|
|
|
10750
11374
|
/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}:
|
|
10751
11375
|
get:
|
|
10752
11376
|
operationId: getSiteChannelById
|
|
10753
|
-
summary: Get a site
|
|
11377
|
+
summary: Get a GitBook Agent channel for a site by its ID
|
|
11378
|
+
description: Retrieves the configuration of a specific GitBook Agent channel integration, including its connected platform type and role. Use this to inspect or verify the channel's setup before updating it.
|
|
10754
11379
|
x-gitbook-mcp: true
|
|
10755
11380
|
tags:
|
|
10756
11381
|
- site-channels
|
|
10757
11382
|
security:
|
|
10758
11383
|
- user: []
|
|
11384
|
+
- oauth:
|
|
11385
|
+
- site:read
|
|
10759
11386
|
parameters:
|
|
10760
11387
|
- $ref: "#/components/parameters/organizationId"
|
|
10761
11388
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10769,12 +11396,15 @@ paths:
|
|
|
10769
11396
|
$ref: "#/components/schemas/SiteChannel"
|
|
10770
11397
|
patch:
|
|
10771
11398
|
operationId: updateSiteChannelById
|
|
10772
|
-
summary: Update a
|
|
11399
|
+
summary: Update a GitBook Agent channel for a site
|
|
11400
|
+
description: Modifies the configuration of a specific GitBook Agent channel integration, including its role. Use this to change whether the Agent answers documentation questions or actively collaborates on content changes through the connected platform.
|
|
10773
11401
|
x-gitbook-mcp: true
|
|
10774
11402
|
tags:
|
|
10775
11403
|
- site-channels
|
|
10776
11404
|
security:
|
|
10777
11405
|
- user: []
|
|
11406
|
+
- oauth:
|
|
11407
|
+
- site:write
|
|
10778
11408
|
parameters:
|
|
10779
11409
|
- $ref: "#/components/parameters/organizationId"
|
|
10780
11410
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10799,11 +11429,13 @@ paths:
|
|
|
10799
11429
|
$ref: "#/components/schemas/SiteChannel"
|
|
10800
11430
|
delete:
|
|
10801
11431
|
operationId: deleteSiteChannelById
|
|
10802
|
-
summary: Delete a
|
|
11432
|
+
summary: Delete a GitBook Agent channel from a site
|
|
10803
11433
|
tags:
|
|
10804
11434
|
- site-channels
|
|
10805
11435
|
security:
|
|
10806
11436
|
- user: []
|
|
11437
|
+
- oauth:
|
|
11438
|
+
- site:write
|
|
10807
11439
|
parameters:
|
|
10808
11440
|
- $ref: "#/components/parameters/organizationId"
|
|
10809
11441
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -11774,6 +12406,33 @@ components:
|
|
|
11774
12406
|
description: The unique id of the organization
|
|
11775
12407
|
schema:
|
|
11776
12408
|
$ref: "#/components/schemas/EntityId"
|
|
12409
|
+
memberRoleFilter:
|
|
12410
|
+
name: role
|
|
12411
|
+
in: query
|
|
12412
|
+
description: The role to filter the list by
|
|
12413
|
+
schema:
|
|
12414
|
+
oneOf:
|
|
12415
|
+
- $ref: "#/components/schemas/MemberRole"
|
|
12416
|
+
- type: string
|
|
12417
|
+
enum:
|
|
12418
|
+
- guest
|
|
12419
|
+
memberSearch:
|
|
12420
|
+
name: search
|
|
12421
|
+
in: query
|
|
12422
|
+
description: A query to filter the list by display name and email
|
|
12423
|
+
schema:
|
|
12424
|
+
type: string
|
|
12425
|
+
memberSort:
|
|
12426
|
+
name: sort
|
|
12427
|
+
in: query
|
|
12428
|
+
description: The property to sort the list by
|
|
12429
|
+
schema:
|
|
12430
|
+
type: string
|
|
12431
|
+
default: joinedAt
|
|
12432
|
+
enum:
|
|
12433
|
+
- joinedAt
|
|
12434
|
+
- lastSeenAt
|
|
12435
|
+
- name
|
|
11777
12436
|
inviteId:
|
|
11778
12437
|
name: inviteId
|
|
11779
12438
|
in: path
|
|
@@ -12435,6 +13094,11 @@ components:
|
|
|
12435
13094
|
$ref: "#/components/schemas/Timestamp"
|
|
12436
13095
|
editMode:
|
|
12437
13096
|
$ref: "#/components/schemas/SpaceEditMode"
|
|
13097
|
+
type:
|
|
13098
|
+
type: string
|
|
13099
|
+
description: Kind of space. Only set to `styleguide` for spaces holding a team's writing styleguide; omitted for regular spaces.
|
|
13100
|
+
enum:
|
|
13101
|
+
- styleguide
|
|
12438
13102
|
mergeRules:
|
|
12439
13103
|
$ref: "#/components/schemas/MergeRulesSpaceConfiguration"
|
|
12440
13104
|
urls:
|
|
@@ -17992,6 +18656,9 @@ components:
|
|
|
17992
18656
|
title:
|
|
17993
18657
|
type: string
|
|
17994
18658
|
description: The title of the conversation, generated from the first message. Absent until generated.
|
|
18659
|
+
shared:
|
|
18660
|
+
type: boolean
|
|
18661
|
+
description: Whether the conversation is shared with everyone who has access to the change request, rather than only its creator. Conversations are shared by default; a private conversation is only ever visible to its creator and stays private for good.
|
|
17995
18662
|
createdAt:
|
|
17996
18663
|
$ref: "#/components/schemas/Timestamp"
|
|
17997
18664
|
updatedAt:
|
|
@@ -17999,6 +18666,7 @@ components:
|
|
|
17999
18666
|
required:
|
|
18000
18667
|
- object
|
|
18001
18668
|
- id
|
|
18669
|
+
- shared
|
|
18002
18670
|
- createdAt
|
|
18003
18671
|
- updatedAt
|
|
18004
18672
|
PostCommentSchema:
|
|
@@ -18191,17 +18859,44 @@ components:
|
|
|
18191
18859
|
example:
|
|
18192
18860
|
operation: delete_page
|
|
18193
18861
|
page: page_id
|
|
18862
|
+
ChangeRequestContentChangeRevertPage:
|
|
18863
|
+
type: object
|
|
18864
|
+
description: Revert a page to the state it had in a given revision. If `revision` is omitted, the page is reverted to the change request's base revision. Without `block`, the whole page is reverted — added pages are removed, deleted pages are restored, and modified pages have their document reset. With `block`, only the listed block-level changes in the page's document are reverted (each block is removed if it was added, restored if it was deleted, or reset if it was modified or moved); other blocks and the page's properties/metadata are left untouched.
|
|
18865
|
+
required:
|
|
18866
|
+
- operation
|
|
18867
|
+
- page
|
|
18868
|
+
properties:
|
|
18869
|
+
operation:
|
|
18870
|
+
type: string
|
|
18871
|
+
enum:
|
|
18872
|
+
- revert_page
|
|
18873
|
+
page:
|
|
18874
|
+
type: string
|
|
18875
|
+
description: ID of the page to revert.
|
|
18876
|
+
revision:
|
|
18877
|
+
type: string
|
|
18878
|
+
description: ID of the revision to revert the page to. If omitted, the change request's base revision is used.
|
|
18879
|
+
block:
|
|
18880
|
+
type: array
|
|
18881
|
+
items:
|
|
18882
|
+
type: string
|
|
18883
|
+
description: Keys of the specific blocks to revert within the page's document, as they appear in the page's document. If omitted, the whole page is reverted.
|
|
18884
|
+
example:
|
|
18885
|
+
operation: revert_page
|
|
18886
|
+
page: page_id
|
|
18194
18887
|
ChangeRequestContentChange:
|
|
18195
18888
|
oneOf:
|
|
18196
18889
|
- $ref: "#/components/schemas/ChangeRequestContentChangeUpdatePage"
|
|
18197
18890
|
- $ref: "#/components/schemas/ChangeRequestContentChangeInsertPage"
|
|
18198
18891
|
- $ref: "#/components/schemas/ChangeRequestContentChangeDeletePage"
|
|
18892
|
+
- $ref: "#/components/schemas/ChangeRequestContentChangeRevertPage"
|
|
18199
18893
|
discriminator:
|
|
18200
18894
|
propertyName: operation
|
|
18201
18895
|
mapping:
|
|
18202
18896
|
update_page: "#/components/schemas/ChangeRequestContentChangeUpdatePage"
|
|
18203
18897
|
insert_page: "#/components/schemas/ChangeRequestContentChangeInsertPage"
|
|
18204
18898
|
delete_page: "#/components/schemas/ChangeRequestContentChangeDeletePage"
|
|
18899
|
+
revert_page: "#/components/schemas/ChangeRequestContentChangeRevertPage"
|
|
18205
18900
|
RevisionPageType:
|
|
18206
18901
|
type: string
|
|
18207
18902
|
enum:
|
|
@@ -20347,6 +21042,35 @@ components:
|
|
|
20347
21042
|
$ref: "#/components/schemas/SitePermissionsModel"
|
|
20348
21043
|
defaultLevel:
|
|
20349
21044
|
$ref: "#/components/schemas/DefaultLevel"
|
|
21045
|
+
permissions:
|
|
21046
|
+
type: object
|
|
21047
|
+
description: The set of permissions for the site.
|
|
21048
|
+
properties:
|
|
21049
|
+
view:
|
|
21050
|
+
type: boolean
|
|
21051
|
+
description: Can the user view the site.
|
|
21052
|
+
access:
|
|
21053
|
+
type: boolean
|
|
21054
|
+
description: Can the user access the site in the application.
|
|
21055
|
+
admin:
|
|
21056
|
+
type: boolean
|
|
21057
|
+
description: Can the user edit the site and manage its settings.
|
|
21058
|
+
installIntegration:
|
|
21059
|
+
type: boolean
|
|
21060
|
+
description: Can the user install integrations on the site.
|
|
21061
|
+
viewAdaptiveSchema:
|
|
21062
|
+
type: boolean
|
|
21063
|
+
description: Can the user view the adaptive schema of the site.
|
|
21064
|
+
editAdaptiveSchema:
|
|
21065
|
+
type: boolean
|
|
21066
|
+
description: Can the user edit the adaptive schema of the site.
|
|
21067
|
+
required:
|
|
21068
|
+
- view
|
|
21069
|
+
- access
|
|
21070
|
+
- admin
|
|
21071
|
+
- installIntegration
|
|
21072
|
+
- viewAdaptiveSchema
|
|
21073
|
+
- editAdaptiveSchema
|
|
20350
21074
|
published:
|
|
20351
21075
|
type: boolean
|
|
20352
21076
|
description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
|
|
@@ -20417,6 +21141,7 @@ components:
|
|
|
20417
21141
|
- visibility
|
|
20418
21142
|
- permissionsModel
|
|
20419
21143
|
- defaultLevel
|
|
21144
|
+
- permissions
|
|
20420
21145
|
- published
|
|
20421
21146
|
- createdAt
|
|
20422
21147
|
- siteSpaces
|
|
@@ -21593,6 +22318,61 @@ components:
|
|
|
21593
22318
|
- sites
|
|
21594
22319
|
- spaces
|
|
21595
22320
|
- deletedSpaces
|
|
22321
|
+
OrganizationStyleguide:
|
|
22322
|
+
type: object
|
|
22323
|
+
description: A styleguide space and all the sites referencing it.
|
|
22324
|
+
properties:
|
|
22325
|
+
space:
|
|
22326
|
+
$ref: "#/components/schemas/Space"
|
|
22327
|
+
sites:
|
|
22328
|
+
type: array
|
|
22329
|
+
description: Sites in the organization that reference this styleguide.
|
|
22330
|
+
items:
|
|
22331
|
+
$ref: "#/components/schemas/Site"
|
|
22332
|
+
required:
|
|
22333
|
+
- space
|
|
22334
|
+
- sites
|
|
22335
|
+
OrganizationStyleguides:
|
|
22336
|
+
type: object
|
|
22337
|
+
properties:
|
|
22338
|
+
styleguides:
|
|
22339
|
+
type: array
|
|
22340
|
+
items:
|
|
22341
|
+
$ref: "#/components/schemas/OrganizationStyleguide"
|
|
22342
|
+
required:
|
|
22343
|
+
- styleguides
|
|
22344
|
+
StyleguideTemplate:
|
|
22345
|
+
type: object
|
|
22346
|
+
description: A built-in styleguide starter template used to seed and preview a styleguide.
|
|
22347
|
+
properties:
|
|
22348
|
+
id:
|
|
22349
|
+
type: string
|
|
22350
|
+
description: Identifier of the template, passed to createSiteStyleguideById to seed a styleguide from it.
|
|
22351
|
+
title:
|
|
22352
|
+
type: string
|
|
22353
|
+
description: Human-readable name of the template.
|
|
22354
|
+
subtitle:
|
|
22355
|
+
type: string
|
|
22356
|
+
description: Short one-line description of the template.
|
|
22357
|
+
emoji:
|
|
22358
|
+
type: string
|
|
22359
|
+
description: Emoji illustrating the template.
|
|
22360
|
+
markdown:
|
|
22361
|
+
type: string
|
|
22362
|
+
description: Markdown content of the template, rendered as a preview.
|
|
22363
|
+
required:
|
|
22364
|
+
- id
|
|
22365
|
+
- title
|
|
22366
|
+
- markdown
|
|
22367
|
+
StyleguideTemplates:
|
|
22368
|
+
type: object
|
|
22369
|
+
properties:
|
|
22370
|
+
templates:
|
|
22371
|
+
type: array
|
|
22372
|
+
items:
|
|
22373
|
+
$ref: "#/components/schemas/StyleguideTemplate"
|
|
22374
|
+
required:
|
|
22375
|
+
- templates
|
|
21596
22376
|
MemberContentPermission:
|
|
21597
22377
|
type: object
|
|
21598
22378
|
description: Permission of a member in a content.
|
|
@@ -24110,9 +24890,11 @@ components:
|
|
|
24110
24890
|
Ordered list of the page actions enabled in the page menu. This is the source of truth for
|
|
24111
24891
|
which actions are enabled and in which order: the position defines the display order, the
|
|
24112
24892
|
first action is the default one, surfaced as the main button on the page, and actions not
|
|
24113
|
-
present in the list are disabled.
|
|
24114
|
-
|
|
24115
|
-
|
|
24893
|
+
present in the list are disabled. An empty list turns the page menu off entirely: no action
|
|
24894
|
+
is shown, not even the `assistant`. On a non-empty list the `assistant` action follows the
|
|
24895
|
+
`ai.mode` setting rather than its own presence: it is kept (prepended by default if missing,
|
|
24896
|
+
otherwise keeping its position) when the assistant is enabled and absent when it is disabled.
|
|
24897
|
+
When the menu is off, the assistant stays reachable from the header via `ai.mode`.
|
|
24116
24898
|
items:
|
|
24117
24899
|
$ref: "#/components/schemas/CustomizationPageActionType"
|
|
24118
24900
|
required:
|
|
@@ -24504,6 +25286,8 @@ components:
|
|
|
24504
25286
|
- builtin:github-issues
|
|
24505
25287
|
- builtin:intercom
|
|
24506
25288
|
- builtin:zendesk
|
|
25289
|
+
- builtin:pylon
|
|
25290
|
+
- builtin:linear
|
|
24507
25291
|
ContextRecordTitle:
|
|
24508
25292
|
type: string
|
|
24509
25293
|
description: Title for the context record
|
|
@@ -24669,8 +25453,14 @@ components:
|
|
|
24669
25453
|
- urls
|
|
24670
25454
|
SiteFindingStatus:
|
|
24671
25455
|
type: string
|
|
24672
|
-
description:
|
|
25456
|
+
description: |
|
|
25457
|
+
Status of a site finding.
|
|
25458
|
+
- `candidate` is a finding that has been raised but not yet confirmed. Typically these are not shown to users.
|
|
25459
|
+
- `open` is a finding that has been surfaced to users and is still under investigation.
|
|
25460
|
+
- `done` is a finding that has been resolved and is no longer under investigation.
|
|
25461
|
+
- `canceled` is a finding that has been canceled and is no longer under investigation.
|
|
24673
25462
|
enum:
|
|
25463
|
+
- candidate
|
|
24674
25464
|
- open
|
|
24675
25465
|
- done
|
|
24676
25466
|
- canceled
|
|
@@ -24959,6 +25749,11 @@ components:
|
|
|
24959
25749
|
description: Optional label for the connection
|
|
24960
25750
|
minLength: 0
|
|
24961
25751
|
maxLength: 128
|
|
25752
|
+
ContextConnectionFilter:
|
|
25753
|
+
type: string
|
|
25754
|
+
description: "Optional filter used to restrict which items are ingested from the source. Its meaning depends on the connector: it can be a tag, label, or an expression. When empty or omitted, all resolved items are ingested."
|
|
25755
|
+
minLength: 0
|
|
25756
|
+
maxLength: 1024
|
|
24962
25757
|
ContextConnectionStatus:
|
|
24963
25758
|
type: string
|
|
24964
25759
|
enum:
|
|
@@ -25144,6 +25939,40 @@ components:
|
|
|
25144
25939
|
required:
|
|
25145
25940
|
- connector
|
|
25146
25941
|
- setupSettings
|
|
25942
|
+
- type: object
|
|
25943
|
+
properties:
|
|
25944
|
+
connector:
|
|
25945
|
+
type: string
|
|
25946
|
+
enum:
|
|
25947
|
+
- builtin:pylon
|
|
25948
|
+
setupSettings:
|
|
25949
|
+
type: object
|
|
25950
|
+
properties:
|
|
25951
|
+
token:
|
|
25952
|
+
type: string
|
|
25953
|
+
minLength: 1
|
|
25954
|
+
required:
|
|
25955
|
+
- token
|
|
25956
|
+
required:
|
|
25957
|
+
- connector
|
|
25958
|
+
- setupSettings
|
|
25959
|
+
- type: object
|
|
25960
|
+
properties:
|
|
25961
|
+
connector:
|
|
25962
|
+
type: string
|
|
25963
|
+
enum:
|
|
25964
|
+
- builtin:linear
|
|
25965
|
+
setupSettings:
|
|
25966
|
+
type: object
|
|
25967
|
+
properties:
|
|
25968
|
+
token:
|
|
25969
|
+
type: string
|
|
25970
|
+
minLength: 1
|
|
25971
|
+
required:
|
|
25972
|
+
- token
|
|
25973
|
+
required:
|
|
25974
|
+
- connector
|
|
25975
|
+
- setupSettings
|
|
25147
25976
|
ContextConnection:
|
|
25148
25977
|
allOf:
|
|
25149
25978
|
- type: object
|
|
@@ -25161,6 +25990,8 @@ components:
|
|
|
25161
25990
|
$ref: "#/components/schemas/Timestamp"
|
|
25162
25991
|
label:
|
|
25163
25992
|
$ref: "#/components/schemas/ContextConnectionLabel"
|
|
25993
|
+
filter:
|
|
25994
|
+
$ref: "#/components/schemas/ContextConnectionFilter"
|
|
25164
25995
|
status:
|
|
25165
25996
|
$ref: "#/components/schemas/ContextConnectionStatus"
|
|
25166
25997
|
records:
|
|
@@ -26585,10 +27416,17 @@ components:
|
|
|
26585
27416
|
$ref: "#/components/schemas/User"
|
|
26586
27417
|
origin:
|
|
26587
27418
|
$ref: "#/components/schemas/UserSitePermissionOrigin"
|
|
27419
|
+
disabled:
|
|
27420
|
+
type: boolean
|
|
27421
|
+
description: Whether the user is disabled
|
|
27422
|
+
lastSeenAt:
|
|
27423
|
+
description: Date at which the user was last seen
|
|
27424
|
+
$ref: "#/components/schemas/Timestamp"
|
|
26588
27425
|
required:
|
|
26589
27426
|
- permission
|
|
26590
27427
|
- user
|
|
26591
27428
|
- origin
|
|
27429
|
+
- disabled
|
|
26592
27430
|
UserSitePermissionOverride:
|
|
26593
27431
|
type: object
|
|
26594
27432
|
description: Permission override of a user in a site.
|
|
@@ -27281,6 +28119,30 @@ components:
|
|
|
27281
28119
|
required:
|
|
27282
28120
|
- type
|
|
27283
28121
|
- feedback
|
|
28122
|
+
SiteInsightsEventAgentFeedback:
|
|
28123
|
+
allOf:
|
|
28124
|
+
- $ref: "#/components/schemas/SiteInsightsEventBase"
|
|
28125
|
+
- type: object
|
|
28126
|
+
properties:
|
|
28127
|
+
type:
|
|
28128
|
+
type: string
|
|
28129
|
+
enum:
|
|
28130
|
+
- agent_feedback
|
|
28131
|
+
feedback:
|
|
28132
|
+
type: object
|
|
28133
|
+
properties:
|
|
28134
|
+
content:
|
|
28135
|
+
type: string
|
|
28136
|
+
minLength: 1
|
|
28137
|
+
maxLength: 2048
|
|
28138
|
+
category:
|
|
28139
|
+
$ref: "#/components/schemas/SiteFindingType"
|
|
28140
|
+
required:
|
|
28141
|
+
- content
|
|
28142
|
+
- category
|
|
28143
|
+
required:
|
|
28144
|
+
- type
|
|
28145
|
+
- feedback
|
|
27284
28146
|
SiteInsightsEventAskQuestion:
|
|
27285
28147
|
allOf:
|
|
27286
28148
|
- $ref: "#/components/schemas/SiteInsightsEventBase"
|
|
@@ -27293,6 +28155,9 @@ components:
|
|
|
27293
28155
|
query:
|
|
27294
28156
|
type: string
|
|
27295
28157
|
description: Question being asked.
|
|
28158
|
+
goal:
|
|
28159
|
+
type: string
|
|
28160
|
+
description: The end goal the calling agent is trying to accomplish on behalf of the user, when provided alongside the question. Used to measure the goal→completion lifecycle per agent.
|
|
27296
28161
|
required:
|
|
27297
28162
|
- type
|
|
27298
28163
|
- query
|
|
@@ -27508,6 +28373,7 @@ components:
|
|
|
27508
28373
|
- $ref: "#/components/schemas/SiteInsightsEventSearchOpenResult"
|
|
27509
28374
|
- $ref: "#/components/schemas/SiteInsightsEventPagePostFeedback"
|
|
27510
28375
|
- $ref: "#/components/schemas/SiteInsightsEventPagePostFeedbackComment"
|
|
28376
|
+
- $ref: "#/components/schemas/SiteInsightsEventAgentFeedback"
|
|
27511
28377
|
- $ref: "#/components/schemas/SiteInsightsEventAskQuestion"
|
|
27512
28378
|
- $ref: "#/components/schemas/SiteInsightsEventAskView"
|
|
27513
28379
|
- $ref: "#/components/schemas/SiteInsightsEventAskRateResponse"
|
|
@@ -27900,6 +28766,7 @@ components:
|
|
|
27900
28766
|
- search_open_result
|
|
27901
28767
|
- page_post_feedback
|
|
27902
28768
|
- page_post_feedback_comment
|
|
28769
|
+
- agent_feedback
|
|
27903
28770
|
- ask_question
|
|
27904
28771
|
- ask_view
|
|
27905
28772
|
- ask_rate_response
|
|
@@ -29348,8 +30215,6 @@ components:
|
|
|
29348
30215
|
type: boolean
|
|
29349
30216
|
reason:
|
|
29350
30217
|
$ref: "#/components/schemas/BlockReason"
|
|
29351
|
-
blockPaidOrg:
|
|
29352
|
-
type: boolean
|
|
29353
30218
|
required:
|
|
29354
30219
|
- block
|
|
29355
30220
|
UserImpersonationInfo:
|