@gitbook/api 0.185.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 +558 -395
- package/dist/constants.d.ts +4 -3
- package/dist/index.cjs +14 -20
- package/dist/index.js +12 -18
- package/package.json +1 -1
- package/spec/openapi.json +2419 -333
- package/spec/openapi.yaml +1441 -287
package/spec/openapi.yaml
CHANGED
|
@@ -524,6 +524,8 @@ paths:
|
|
|
524
524
|
- critical
|
|
525
525
|
security:
|
|
526
526
|
- user: []
|
|
527
|
+
- oauth:
|
|
528
|
+
- user:read
|
|
527
529
|
description: |
|
|
528
530
|
Returns details about the user associated with the authentication provided in the request's authorization header.
|
|
529
531
|
responses:
|
|
@@ -616,7 +618,9 @@ paths:
|
|
|
616
618
|
/spaces/{spaceId}:
|
|
617
619
|
get:
|
|
618
620
|
operationId: getSpaceById
|
|
619
|
-
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.
|
|
623
|
+
x-gitbook-mcp: true
|
|
620
624
|
tags:
|
|
621
625
|
- spaces
|
|
622
626
|
- critical
|
|
@@ -624,6 +628,8 @@ paths:
|
|
|
624
628
|
- user: []
|
|
625
629
|
- integration: []
|
|
626
630
|
- integration-installation: []
|
|
631
|
+
- oauth:
|
|
632
|
+
- space:read
|
|
627
633
|
parameters:
|
|
628
634
|
- $ref: "#/components/parameters/spaceId"
|
|
629
635
|
- $ref: "#/components/parameters/siteShareKey"
|
|
@@ -636,11 +642,15 @@ paths:
|
|
|
636
642
|
$ref: "#/components/schemas/Space"
|
|
637
643
|
patch:
|
|
638
644
|
operationId: updateSpaceById
|
|
639
|
-
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.
|
|
647
|
+
x-gitbook-mcp: true
|
|
640
648
|
tags:
|
|
641
649
|
- spaces
|
|
642
650
|
security:
|
|
643
651
|
- user: []
|
|
652
|
+
- oauth:
|
|
653
|
+
- space:write
|
|
644
654
|
parameters:
|
|
645
655
|
- $ref: "#/components/parameters/spaceId"
|
|
646
656
|
requestBody:
|
|
@@ -698,6 +708,8 @@ paths:
|
|
|
698
708
|
- spaces
|
|
699
709
|
security:
|
|
700
710
|
- user: []
|
|
711
|
+
- oauth:
|
|
712
|
+
- space:write
|
|
701
713
|
parameters:
|
|
702
714
|
- $ref: "#/components/parameters/spaceId"
|
|
703
715
|
responses:
|
|
@@ -708,11 +720,15 @@ paths:
|
|
|
708
720
|
/spaces/{spaceId}/duplicate:
|
|
709
721
|
post:
|
|
710
722
|
operationId: duplicateSpace
|
|
711
|
-
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.
|
|
725
|
+
x-gitbook-mcp: true
|
|
712
726
|
tags:
|
|
713
727
|
- spaces
|
|
714
728
|
security:
|
|
715
729
|
- user: []
|
|
730
|
+
- oauth:
|
|
731
|
+
- space:write
|
|
716
732
|
parameters:
|
|
717
733
|
- $ref: "#/components/parameters/spaceId"
|
|
718
734
|
responses:
|
|
@@ -730,12 +746,15 @@ paths:
|
|
|
730
746
|
/spaces/{spaceId}/restore:
|
|
731
747
|
post:
|
|
732
748
|
operationId: restoreSpace
|
|
733
|
-
summary: Restore a deleted space
|
|
734
|
-
description: Only spaces deleted
|
|
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.
|
|
751
|
+
x-gitbook-mcp: true
|
|
735
752
|
tags:
|
|
736
753
|
- spaces
|
|
737
754
|
security:
|
|
738
755
|
- user: []
|
|
756
|
+
- oauth:
|
|
757
|
+
- space:write
|
|
739
758
|
parameters:
|
|
740
759
|
- $ref: "#/components/parameters/spaceId"
|
|
741
760
|
responses:
|
|
@@ -748,11 +767,15 @@ paths:
|
|
|
748
767
|
/spaces/{spaceId}/move:
|
|
749
768
|
post:
|
|
750
769
|
operationId: moveSpace
|
|
751
|
-
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.
|
|
772
|
+
x-gitbook-mcp: true
|
|
752
773
|
tags:
|
|
753
774
|
- spaces
|
|
754
775
|
security:
|
|
755
776
|
- user: []
|
|
777
|
+
- oauth:
|
|
778
|
+
- space:write
|
|
756
779
|
parameters:
|
|
757
780
|
- $ref: "#/components/parameters/spaceId"
|
|
758
781
|
requestBody:
|
|
@@ -790,11 +813,15 @@ paths:
|
|
|
790
813
|
/spaces/{spaceId}/embed:
|
|
791
814
|
get:
|
|
792
815
|
operationId: getEmbedByUrlInSpace
|
|
793
|
-
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.
|
|
818
|
+
x-gitbook-mcp: true
|
|
794
819
|
tags:
|
|
795
820
|
- space-embeds
|
|
796
821
|
security:
|
|
797
822
|
- user: []
|
|
823
|
+
- oauth:
|
|
824
|
+
- space:read
|
|
798
825
|
parameters:
|
|
799
826
|
- $ref: "#/components/parameters/spaceId"
|
|
800
827
|
- name: url
|
|
@@ -813,11 +840,15 @@ paths:
|
|
|
813
840
|
/spaces/{spaceId}/search:
|
|
814
841
|
get:
|
|
815
842
|
operationId: searchSpaceContent
|
|
816
|
-
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.
|
|
845
|
+
x-gitbook-mcp: true
|
|
817
846
|
tags:
|
|
818
847
|
- space-content
|
|
819
848
|
security:
|
|
820
849
|
- user: []
|
|
850
|
+
- oauth:
|
|
851
|
+
- space:read
|
|
821
852
|
parameters:
|
|
822
853
|
- name: query
|
|
823
854
|
in: query
|
|
@@ -847,13 +878,17 @@ paths:
|
|
|
847
878
|
/spaces/{spaceId}/git/import:
|
|
848
879
|
post:
|
|
849
880
|
operationId: importGitRepository
|
|
850
|
-
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.
|
|
883
|
+
x-gitbook-mcp: true
|
|
851
884
|
tags:
|
|
852
885
|
- space-git
|
|
853
886
|
security:
|
|
854
887
|
- user: []
|
|
855
888
|
- integration: []
|
|
856
889
|
- integration-installation: []
|
|
890
|
+
- oauth:
|
|
891
|
+
- space:write
|
|
857
892
|
parameters:
|
|
858
893
|
- $ref: "#/components/parameters/spaceId"
|
|
859
894
|
responses:
|
|
@@ -868,13 +903,17 @@ paths:
|
|
|
868
903
|
/spaces/{spaceId}/git/export:
|
|
869
904
|
post:
|
|
870
905
|
operationId: exportToGitRepository
|
|
871
|
-
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.
|
|
908
|
+
x-gitbook-mcp: true
|
|
872
909
|
tags:
|
|
873
910
|
- space-git
|
|
874
911
|
security:
|
|
875
912
|
- user: []
|
|
876
913
|
- integration: []
|
|
877
914
|
- integration-installation: []
|
|
915
|
+
- oauth:
|
|
916
|
+
- space:write
|
|
878
917
|
parameters:
|
|
879
918
|
- $ref: "#/components/parameters/spaceId"
|
|
880
919
|
responses:
|
|
@@ -889,12 +928,15 @@ paths:
|
|
|
889
928
|
/spaces/{spaceId}/git/info:
|
|
890
929
|
get:
|
|
891
930
|
operationId: getSpaceGitInfo
|
|
892
|
-
summary: Get
|
|
893
|
-
description:
|
|
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.
|
|
933
|
+
x-gitbook-mcp: true
|
|
894
934
|
tags:
|
|
895
935
|
- space-git
|
|
896
936
|
security:
|
|
897
937
|
- user: []
|
|
938
|
+
- oauth:
|
|
939
|
+
- space:read
|
|
898
940
|
parameters:
|
|
899
941
|
- $ref: "#/components/parameters/spaceId"
|
|
900
942
|
responses:
|
|
@@ -930,6 +972,8 @@ paths:
|
|
|
930
972
|
- space-permissions
|
|
931
973
|
security:
|
|
932
974
|
- user: []
|
|
975
|
+
- oauth:
|
|
976
|
+
- space:permissions:write
|
|
933
977
|
parameters:
|
|
934
978
|
- $ref: "#/components/parameters/spaceId"
|
|
935
979
|
responses:
|
|
@@ -952,6 +996,8 @@ paths:
|
|
|
952
996
|
- space-permissions
|
|
953
997
|
security:
|
|
954
998
|
- user: []
|
|
999
|
+
- oauth:
|
|
1000
|
+
- space:permissions:write
|
|
955
1001
|
parameters:
|
|
956
1002
|
- $ref: "#/components/parameters/spaceId"
|
|
957
1003
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -977,6 +1023,8 @@ paths:
|
|
|
977
1023
|
- space-permissions
|
|
978
1024
|
security:
|
|
979
1025
|
- user: []
|
|
1026
|
+
- oauth:
|
|
1027
|
+
- space:permissions:write
|
|
980
1028
|
parameters:
|
|
981
1029
|
- $ref: "#/components/parameters/spaceId"
|
|
982
1030
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -996,6 +1044,8 @@ paths:
|
|
|
996
1044
|
- space-permissions
|
|
997
1045
|
security:
|
|
998
1046
|
- user: []
|
|
1047
|
+
- oauth:
|
|
1048
|
+
- space:permissions:read
|
|
999
1049
|
parameters:
|
|
1000
1050
|
- $ref: "#/components/parameters/spaceId"
|
|
1001
1051
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -1027,6 +1077,8 @@ paths:
|
|
|
1027
1077
|
- space-permissions
|
|
1028
1078
|
security:
|
|
1029
1079
|
- user: []
|
|
1080
|
+
- oauth:
|
|
1081
|
+
- space:permissions:write
|
|
1030
1082
|
parameters:
|
|
1031
1083
|
- $ref: "#/components/parameters/spaceId"
|
|
1032
1084
|
- $ref: "#/components/parameters/userId"
|
|
@@ -1052,6 +1104,8 @@ paths:
|
|
|
1052
1104
|
- space-permissions
|
|
1053
1105
|
security:
|
|
1054
1106
|
- user: []
|
|
1107
|
+
- oauth:
|
|
1108
|
+
- space:permissions:write
|
|
1055
1109
|
parameters:
|
|
1056
1110
|
- $ref: "#/components/parameters/spaceId"
|
|
1057
1111
|
- $ref: "#/components/parameters/userId"
|
|
@@ -1068,6 +1122,8 @@ paths:
|
|
|
1068
1122
|
- space-permissions
|
|
1069
1123
|
security:
|
|
1070
1124
|
- user: []
|
|
1125
|
+
- oauth:
|
|
1126
|
+
- space:permissions:read
|
|
1071
1127
|
parameters:
|
|
1072
1128
|
- $ref: "#/components/parameters/spaceId"
|
|
1073
1129
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -1103,13 +1159,17 @@ paths:
|
|
|
1103
1159
|
/spaces/{spaceId}/content:
|
|
1104
1160
|
get:
|
|
1105
1161
|
operationId: getCurrentRevision
|
|
1106
|
-
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.
|
|
1164
|
+
x-gitbook-mcp: true
|
|
1107
1165
|
tags:
|
|
1108
1166
|
- space-content
|
|
1109
1167
|
security:
|
|
1110
1168
|
- user: []
|
|
1111
1169
|
- integration: []
|
|
1112
1170
|
- integration-installation: []
|
|
1171
|
+
- oauth:
|
|
1172
|
+
- space:read
|
|
1113
1173
|
parameters:
|
|
1114
1174
|
- $ref: "#/components/parameters/spaceId"
|
|
1115
1175
|
- $ref: "#/components/parameters/revisionMetadata"
|
|
@@ -1124,11 +1184,15 @@ paths:
|
|
|
1124
1184
|
/spaces/{spaceId}/content/template:
|
|
1125
1185
|
post:
|
|
1126
1186
|
operationId: applyTemplateToSpace
|
|
1127
|
-
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.
|
|
1189
|
+
x-gitbook-mcp: true
|
|
1128
1190
|
tags:
|
|
1129
1191
|
- space-content
|
|
1130
1192
|
security:
|
|
1131
1193
|
- user: []
|
|
1194
|
+
- oauth:
|
|
1195
|
+
- space:write
|
|
1132
1196
|
parameters:
|
|
1133
1197
|
- $ref: "#/components/parameters/spaceId"
|
|
1134
1198
|
responses:
|
|
@@ -1149,11 +1213,15 @@ paths:
|
|
|
1149
1213
|
/spaces/{spaceId}/content/pages:
|
|
1150
1214
|
get:
|
|
1151
1215
|
operationId: listPages
|
|
1152
|
-
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.
|
|
1218
|
+
x-gitbook-mcp: true
|
|
1153
1219
|
tags:
|
|
1154
1220
|
- space-content
|
|
1155
1221
|
security:
|
|
1156
1222
|
- user: []
|
|
1223
|
+
- oauth:
|
|
1224
|
+
- space:read
|
|
1157
1225
|
parameters:
|
|
1158
1226
|
- $ref: "#/components/parameters/spaceId"
|
|
1159
1227
|
- $ref: "#/components/parameters/revisionMetadata"
|
|
@@ -1175,11 +1243,15 @@ paths:
|
|
|
1175
1243
|
/spaces/{spaceId}/content/files:
|
|
1176
1244
|
get:
|
|
1177
1245
|
operationId: listFiles
|
|
1178
|
-
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.
|
|
1248
|
+
x-gitbook-mcp: true
|
|
1179
1249
|
tags:
|
|
1180
1250
|
- space-content
|
|
1181
1251
|
security:
|
|
1182
1252
|
- user: []
|
|
1253
|
+
- oauth:
|
|
1254
|
+
- space:read
|
|
1183
1255
|
parameters:
|
|
1184
1256
|
- $ref: "#/components/parameters/spaceId"
|
|
1185
1257
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -1205,11 +1277,15 @@ paths:
|
|
|
1205
1277
|
/spaces/{spaceId}/content/files/{fileId}:
|
|
1206
1278
|
get:
|
|
1207
1279
|
operationId: getFileById
|
|
1208
|
-
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.
|
|
1282
|
+
x-gitbook-mcp: true
|
|
1209
1283
|
tags:
|
|
1210
1284
|
- space-content
|
|
1211
1285
|
security:
|
|
1212
1286
|
- user: []
|
|
1287
|
+
- oauth:
|
|
1288
|
+
- space:read
|
|
1213
1289
|
parameters:
|
|
1214
1290
|
- $ref: "#/components/parameters/spaceId"
|
|
1215
1291
|
- $ref: "#/components/parameters/fileId"
|
|
@@ -1225,11 +1301,15 @@ paths:
|
|
|
1225
1301
|
/spaces/{spaceId}/content/files/{fileId}/backlinks:
|
|
1226
1302
|
get:
|
|
1227
1303
|
operationId: listSpaceFileBacklinks
|
|
1228
|
-
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.
|
|
1306
|
+
x-gitbook-mcp: true
|
|
1229
1307
|
tags:
|
|
1230
1308
|
- space-content
|
|
1231
1309
|
security:
|
|
1232
1310
|
- user: []
|
|
1311
|
+
- oauth:
|
|
1312
|
+
- space:read
|
|
1233
1313
|
parameters:
|
|
1234
1314
|
- $ref: "#/components/parameters/spaceId"
|
|
1235
1315
|
- $ref: "#/components/parameters/fileId"
|
|
@@ -1254,11 +1334,15 @@ paths:
|
|
|
1254
1334
|
/spaces/{spaceId}/content/page/{pageId}:
|
|
1255
1335
|
get:
|
|
1256
1336
|
operationId: getPageById
|
|
1257
|
-
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.
|
|
1339
|
+
x-gitbook-mcp: true
|
|
1258
1340
|
tags:
|
|
1259
1341
|
- space-content
|
|
1260
1342
|
security:
|
|
1261
1343
|
- user: []
|
|
1344
|
+
- oauth:
|
|
1345
|
+
- space:read
|
|
1262
1346
|
parameters:
|
|
1263
1347
|
- $ref: "#/components/parameters/spaceId"
|
|
1264
1348
|
- $ref: "#/components/parameters/pageId"
|
|
@@ -1278,13 +1362,17 @@ paths:
|
|
|
1278
1362
|
/spaces/{spaceId}/content/page/{pageId}/links:
|
|
1279
1363
|
get:
|
|
1280
1364
|
operationId: listPageLinksInSpace
|
|
1281
|
-
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.
|
|
1367
|
+
x-gitbook-mcp: true
|
|
1282
1368
|
tags:
|
|
1283
1369
|
- space-content
|
|
1284
1370
|
- links
|
|
1285
1371
|
- critical
|
|
1286
1372
|
security:
|
|
1287
1373
|
- user: []
|
|
1374
|
+
- oauth:
|
|
1375
|
+
- space:read
|
|
1288
1376
|
parameters:
|
|
1289
1377
|
- $ref: "#/components/parameters/spaceId"
|
|
1290
1378
|
- $ref: "#/components/parameters/pageId"
|
|
@@ -1316,11 +1404,15 @@ paths:
|
|
|
1316
1404
|
/spaces/{spaceId}/content/page/{pageId}/backlinks:
|
|
1317
1405
|
get:
|
|
1318
1406
|
operationId: listSpacePageBacklinks
|
|
1319
|
-
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.
|
|
1409
|
+
x-gitbook-mcp: true
|
|
1320
1410
|
tags:
|
|
1321
1411
|
- space-content
|
|
1322
1412
|
security:
|
|
1323
1413
|
- user: []
|
|
1414
|
+
- oauth:
|
|
1415
|
+
- space:read
|
|
1324
1416
|
parameters:
|
|
1325
1417
|
- $ref: "#/components/parameters/spaceId"
|
|
1326
1418
|
- $ref: "#/components/parameters/pageId"
|
|
@@ -1345,11 +1437,15 @@ paths:
|
|
|
1345
1437
|
/spaces/{spaceId}/content/page/{pageId}/meta-links:
|
|
1346
1438
|
get:
|
|
1347
1439
|
operationId: listSpacePageMetaLinks
|
|
1348
|
-
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.
|
|
1442
|
+
x-gitbook-mcp: true
|
|
1349
1443
|
tags:
|
|
1350
1444
|
- space-content
|
|
1351
1445
|
security:
|
|
1352
1446
|
- user: []
|
|
1447
|
+
- oauth:
|
|
1448
|
+
- space:read
|
|
1353
1449
|
parameters:
|
|
1354
1450
|
- $ref: "#/components/parameters/spaceId"
|
|
1355
1451
|
- $ref: "#/components/parameters/pageId"
|
|
@@ -1363,11 +1459,15 @@ paths:
|
|
|
1363
1459
|
/spaces/{spaceId}/content/path/{pagePath}:
|
|
1364
1460
|
get:
|
|
1365
1461
|
operationId: getPageByPath
|
|
1366
|
-
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.
|
|
1464
|
+
x-gitbook-mcp: true
|
|
1367
1465
|
tags:
|
|
1368
1466
|
- space-content
|
|
1369
1467
|
security:
|
|
1370
1468
|
- user: []
|
|
1469
|
+
- oauth:
|
|
1470
|
+
- space:read
|
|
1371
1471
|
parameters:
|
|
1372
1472
|
- $ref: "#/components/parameters/spaceId"
|
|
1373
1473
|
- $ref: "#/components/parameters/pagePath"
|
|
@@ -1389,11 +1489,15 @@ paths:
|
|
|
1389
1489
|
/spaces/{spaceId}/content/reusable-contents/{reusableContentId}:
|
|
1390
1490
|
get:
|
|
1391
1491
|
operationId: getReusableContentById
|
|
1392
|
-
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.
|
|
1494
|
+
x-gitbook-mcp: true
|
|
1393
1495
|
tags:
|
|
1394
1496
|
- space-content
|
|
1395
1497
|
security:
|
|
1396
1498
|
- user: []
|
|
1499
|
+
- oauth:
|
|
1500
|
+
- space:read
|
|
1397
1501
|
parameters:
|
|
1398
1502
|
- $ref: "#/components/parameters/spaceId"
|
|
1399
1503
|
- $ref: "#/components/parameters/reusableContentId"
|
|
@@ -1409,11 +1513,15 @@ paths:
|
|
|
1409
1513
|
/spaces/{spaceId}/content/computed/document:
|
|
1410
1514
|
post:
|
|
1411
1515
|
operationId: getComputedDocument
|
|
1412
|
-
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.
|
|
1518
|
+
x-gitbook-mcp: true
|
|
1413
1519
|
tags:
|
|
1414
1520
|
- space-content
|
|
1415
1521
|
security:
|
|
1416
1522
|
- user: []
|
|
1523
|
+
- oauth:
|
|
1524
|
+
- space:read
|
|
1417
1525
|
parameters:
|
|
1418
1526
|
- $ref: "#/components/parameters/spaceId"
|
|
1419
1527
|
- $ref: "#/components/parameters/documentSchema"
|
|
@@ -1442,11 +1550,15 @@ paths:
|
|
|
1442
1550
|
/spaces/{spaceId}/content/computed/revision:
|
|
1443
1551
|
post:
|
|
1444
1552
|
operationId: getComputedRevision
|
|
1445
|
-
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.
|
|
1555
|
+
x-gitbook-mcp: true
|
|
1446
1556
|
tags:
|
|
1447
1557
|
- space-content
|
|
1448
1558
|
security:
|
|
1449
1559
|
- user: []
|
|
1560
|
+
- oauth:
|
|
1561
|
+
- space:read
|
|
1450
1562
|
parameters:
|
|
1451
1563
|
- $ref: "#/components/parameters/spaceId"
|
|
1452
1564
|
requestBody:
|
|
@@ -1491,11 +1603,15 @@ paths:
|
|
|
1491
1603
|
/spaces/{spaceId}/documents/{documentId}:
|
|
1492
1604
|
get:
|
|
1493
1605
|
operationId: getDocumentById
|
|
1494
|
-
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.
|
|
1608
|
+
x-gitbook-mcp: true
|
|
1495
1609
|
tags:
|
|
1496
1610
|
- space-content
|
|
1497
1611
|
security:
|
|
1498
1612
|
- user: []
|
|
1613
|
+
- oauth:
|
|
1614
|
+
- space:read
|
|
1499
1615
|
parameters:
|
|
1500
1616
|
- $ref: "#/components/parameters/spaceId"
|
|
1501
1617
|
- name: documentId
|
|
@@ -1515,11 +1631,15 @@ paths:
|
|
|
1515
1631
|
/spaces/{spaceId}/change-requests:
|
|
1516
1632
|
post:
|
|
1517
1633
|
operationId: createChangeRequest
|
|
1518
|
-
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.
|
|
1636
|
+
x-gitbook-mcp: true
|
|
1519
1637
|
tags:
|
|
1520
1638
|
- change-requests
|
|
1521
1639
|
security:
|
|
1522
1640
|
- user: []
|
|
1641
|
+
- oauth:
|
|
1642
|
+
- space:write
|
|
1523
1643
|
parameters:
|
|
1524
1644
|
- $ref: "#/components/parameters/spaceId"
|
|
1525
1645
|
responses:
|
|
@@ -1527,7 +1647,7 @@ paths:
|
|
|
1527
1647
|
description: Change Request Created
|
|
1528
1648
|
headers:
|
|
1529
1649
|
Location:
|
|
1530
|
-
description: API URL for the newly created change
|
|
1650
|
+
description: API URL for the newly created change request
|
|
1531
1651
|
schema:
|
|
1532
1652
|
type: string
|
|
1533
1653
|
content:
|
|
@@ -1543,18 +1663,22 @@ paths:
|
|
|
1543
1663
|
properties:
|
|
1544
1664
|
subject:
|
|
1545
1665
|
type: string
|
|
1546
|
-
description: Subject of the change
|
|
1666
|
+
description: Subject of the change request
|
|
1547
1667
|
template:
|
|
1548
1668
|
$ref: "#/components/schemas/ApplySpaceTemplate"
|
|
1549
1669
|
description: Template to apply to the change request
|
|
1550
1670
|
additionalProperties: true
|
|
1551
1671
|
get:
|
|
1552
1672
|
operationId: listChangeRequestsForSpace
|
|
1553
|
-
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.
|
|
1675
|
+
x-gitbook-mcp: true
|
|
1554
1676
|
tags:
|
|
1555
1677
|
- change-requests
|
|
1556
1678
|
security:
|
|
1557
1679
|
- user: []
|
|
1680
|
+
- oauth:
|
|
1681
|
+
- space:read
|
|
1558
1682
|
parameters:
|
|
1559
1683
|
- $ref: "#/components/parameters/listPage"
|
|
1560
1684
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -1615,10 +1739,14 @@ paths:
|
|
|
1615
1739
|
get:
|
|
1616
1740
|
operationId: getChangeRequestById
|
|
1617
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.
|
|
1743
|
+
x-gitbook-mcp: true
|
|
1618
1744
|
tags:
|
|
1619
1745
|
- change-requests
|
|
1620
1746
|
security:
|
|
1621
1747
|
- user: []
|
|
1748
|
+
- oauth:
|
|
1749
|
+
- space:read
|
|
1622
1750
|
parameters:
|
|
1623
1751
|
- $ref: "#/components/parameters/spaceId"
|
|
1624
1752
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1634,11 +1762,15 @@ paths:
|
|
|
1634
1762
|
$ref: "#/components/responses/NotFoundError"
|
|
1635
1763
|
patch:
|
|
1636
1764
|
operationId: updateChangeRequestById
|
|
1637
|
-
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.
|
|
1767
|
+
x-gitbook-mcp: true
|
|
1638
1768
|
tags:
|
|
1639
1769
|
- change-requests
|
|
1640
1770
|
security:
|
|
1641
1771
|
- user: []
|
|
1772
|
+
- oauth:
|
|
1773
|
+
- space:write
|
|
1642
1774
|
parameters:
|
|
1643
1775
|
- $ref: "#/components/parameters/spaceId"
|
|
1644
1776
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1671,11 +1803,15 @@ paths:
|
|
|
1671
1803
|
/spaces/{spaceId}/change-requests/{changeRequestId}/merge:
|
|
1672
1804
|
post:
|
|
1673
1805
|
operationId: mergeChangeRequest
|
|
1674
|
-
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.
|
|
1808
|
+
x-gitbook-mcp: true
|
|
1675
1809
|
tags:
|
|
1676
1810
|
- change-requests
|
|
1677
1811
|
security:
|
|
1678
1812
|
- user: []
|
|
1813
|
+
- oauth:
|
|
1814
|
+
- change-request:merge
|
|
1679
1815
|
parameters:
|
|
1680
1816
|
- $ref: "#/components/parameters/spaceId"
|
|
1681
1817
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1701,11 +1837,15 @@ paths:
|
|
|
1701
1837
|
/spaces/{spaceId}/change-requests/{changeRequestId}/update:
|
|
1702
1838
|
post:
|
|
1703
1839
|
operationId: updateChangeRequest
|
|
1704
|
-
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.
|
|
1842
|
+
x-gitbook-mcp: true
|
|
1705
1843
|
tags:
|
|
1706
1844
|
- change-requests
|
|
1707
1845
|
security:
|
|
1708
1846
|
- user: []
|
|
1847
|
+
- oauth:
|
|
1848
|
+
- space:write
|
|
1709
1849
|
parameters:
|
|
1710
1850
|
- $ref: "#/components/parameters/spaceId"
|
|
1711
1851
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1731,11 +1871,15 @@ paths:
|
|
|
1731
1871
|
/spaces/{spaceId}/change-requests/{changeRequestId}/reviews:
|
|
1732
1872
|
get:
|
|
1733
1873
|
operationId: getReviewsByChangeRequestId
|
|
1734
|
-
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.
|
|
1876
|
+
x-gitbook-mcp: true
|
|
1735
1877
|
tags:
|
|
1736
1878
|
- change-requests-reviews
|
|
1737
1879
|
security:
|
|
1738
1880
|
- user: []
|
|
1881
|
+
- oauth:
|
|
1882
|
+
- space:read
|
|
1739
1883
|
parameters:
|
|
1740
1884
|
- $ref: "#/components/parameters/spaceId"
|
|
1741
1885
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1768,11 +1912,15 @@ paths:
|
|
|
1768
1912
|
$ref: "#/components/responses/NotFoundError"
|
|
1769
1913
|
post:
|
|
1770
1914
|
operationId: submitChangeRequestReview
|
|
1771
|
-
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.
|
|
1917
|
+
x-gitbook-mcp: true
|
|
1772
1918
|
tags:
|
|
1773
1919
|
- change-requests-reviews
|
|
1774
1920
|
security:
|
|
1775
1921
|
- user: []
|
|
1922
|
+
- oauth:
|
|
1923
|
+
- space:write
|
|
1776
1924
|
parameters:
|
|
1777
1925
|
- $ref: "#/components/parameters/spaceId"
|
|
1778
1926
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1806,11 +1954,15 @@ paths:
|
|
|
1806
1954
|
/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/{reviewId}:
|
|
1807
1955
|
get:
|
|
1808
1956
|
operationId: getChangeRequestReviewById
|
|
1809
|
-
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.
|
|
1959
|
+
x-gitbook-mcp: true
|
|
1810
1960
|
tags:
|
|
1811
1961
|
- change-requests-reviews
|
|
1812
1962
|
security:
|
|
1813
1963
|
- user: []
|
|
1964
|
+
- oauth:
|
|
1965
|
+
- space:read
|
|
1814
1966
|
parameters:
|
|
1815
1967
|
- $ref: "#/components/parameters/spaceId"
|
|
1816
1968
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1829,11 +1981,15 @@ paths:
|
|
|
1829
1981
|
/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers:
|
|
1830
1982
|
get:
|
|
1831
1983
|
operationId: getRequestedReviewersByChangeRequestId
|
|
1832
|
-
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.
|
|
1986
|
+
x-gitbook-mcp: true
|
|
1833
1987
|
tags:
|
|
1834
1988
|
- change-request-reviewers
|
|
1835
1989
|
security:
|
|
1836
1990
|
- user: []
|
|
1991
|
+
- oauth:
|
|
1992
|
+
- space:read
|
|
1837
1993
|
parameters:
|
|
1838
1994
|
- $ref: "#/components/parameters/spaceId"
|
|
1839
1995
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1857,11 +2013,15 @@ paths:
|
|
|
1857
2013
|
$ref: "#/components/schemas/ChangeRequestRequestedReviewer"
|
|
1858
2014
|
post:
|
|
1859
2015
|
operationId: requestReviewersForChangeRequest
|
|
1860
|
-
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.
|
|
2018
|
+
x-gitbook-mcp: true
|
|
1861
2019
|
tags:
|
|
1862
2020
|
- change-request-reviewers
|
|
1863
2021
|
security:
|
|
1864
2022
|
- user: []
|
|
2023
|
+
- oauth:
|
|
2024
|
+
- space:write
|
|
1865
2025
|
parameters:
|
|
1866
2026
|
- $ref: "#/components/parameters/spaceId"
|
|
1867
2027
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1906,6 +2066,8 @@ paths:
|
|
|
1906
2066
|
- change-request-reviewers
|
|
1907
2067
|
security:
|
|
1908
2068
|
- user: []
|
|
2069
|
+
- oauth:
|
|
2070
|
+
- space:write
|
|
1909
2071
|
parameters:
|
|
1910
2072
|
- $ref: "#/components/parameters/spaceId"
|
|
1911
2073
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1918,11 +2080,15 @@ paths:
|
|
|
1918
2080
|
/spaces/{spaceId}/change-requests/{changeRequestId}/conversations:
|
|
1919
2081
|
get:
|
|
1920
2082
|
operationId: listChangeRequestConversations
|
|
1921
|
-
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.
|
|
2085
|
+
x-gitbook-mcp: true
|
|
1922
2086
|
tags:
|
|
1923
2087
|
- change-request-conversations
|
|
1924
2088
|
security:
|
|
1925
2089
|
- user: []
|
|
2090
|
+
- oauth:
|
|
2091
|
+
- space:read
|
|
1926
2092
|
parameters:
|
|
1927
2093
|
- $ref: "#/components/parameters/spaceId"
|
|
1928
2094
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1947,11 +2113,15 @@ paths:
|
|
|
1947
2113
|
/spaces/{spaceId}/change-requests/{changeRequestId}/conversations/{conversationId}:
|
|
1948
2114
|
patch:
|
|
1949
2115
|
operationId: updateChangeRequestConversation
|
|
1950
|
-
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.
|
|
2118
|
+
x-gitbook-mcp: true
|
|
1951
2119
|
tags:
|
|
1952
2120
|
- change-request-conversations
|
|
1953
2121
|
security:
|
|
1954
2122
|
- user: []
|
|
2123
|
+
- oauth:
|
|
2124
|
+
- space:write
|
|
1955
2125
|
parameters:
|
|
1956
2126
|
- $ref: "#/components/parameters/spaceId"
|
|
1957
2127
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -1962,12 +2132,12 @@ paths:
|
|
|
1962
2132
|
application/json:
|
|
1963
2133
|
schema:
|
|
1964
2134
|
type: object
|
|
2135
|
+
required:
|
|
2136
|
+
- title
|
|
1965
2137
|
properties:
|
|
1966
2138
|
title:
|
|
1967
2139
|
type: string
|
|
1968
2140
|
description: The new title of the conversation.
|
|
1969
|
-
required:
|
|
1970
|
-
- title
|
|
1971
2141
|
responses:
|
|
1972
2142
|
"200":
|
|
1973
2143
|
description: The updated conversation.
|
|
@@ -1992,13 +2162,17 @@ paths:
|
|
|
1992
2162
|
/spaces/{spaceId}/change-requests/{changeRequestId}/links:
|
|
1993
2163
|
get:
|
|
1994
2164
|
operationId: listChangeRequestLinks
|
|
1995
|
-
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.
|
|
2167
|
+
x-gitbook-mcp: true
|
|
1996
2168
|
tags:
|
|
1997
2169
|
- change-requests-links
|
|
1998
2170
|
- links
|
|
1999
2171
|
- critical
|
|
2000
2172
|
security:
|
|
2001
2173
|
- user: []
|
|
2174
|
+
- oauth:
|
|
2175
|
+
- space:read
|
|
2002
2176
|
parameters:
|
|
2003
2177
|
- $ref: "#/components/parameters/spaceId"
|
|
2004
2178
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2042,11 +2216,15 @@ paths:
|
|
|
2042
2216
|
/spaces/{spaceId}/change-requests/{changeRequestId}/comments:
|
|
2043
2217
|
get:
|
|
2044
2218
|
operationId: listCommentsInChangeRequest
|
|
2045
|
-
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.
|
|
2221
|
+
x-gitbook-mcp: true
|
|
2046
2222
|
tags:
|
|
2047
2223
|
- change-request-comments
|
|
2048
2224
|
security:
|
|
2049
2225
|
- user: []
|
|
2226
|
+
- oauth:
|
|
2227
|
+
- space:read
|
|
2050
2228
|
parameters:
|
|
2051
2229
|
- $ref: "#/components/parameters/spaceId"
|
|
2052
2230
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2075,11 +2253,15 @@ paths:
|
|
|
2075
2253
|
$ref: "#/components/schemas/Comment"
|
|
2076
2254
|
post:
|
|
2077
2255
|
operationId: postCommentInChangeRequest
|
|
2078
|
-
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.
|
|
2258
|
+
x-gitbook-mcp: true
|
|
2079
2259
|
tags:
|
|
2080
2260
|
- change-request-comments
|
|
2081
2261
|
security:
|
|
2082
2262
|
- user: []
|
|
2263
|
+
- oauth:
|
|
2264
|
+
- space:write
|
|
2083
2265
|
parameters:
|
|
2084
2266
|
- $ref: "#/components/parameters/spaceId"
|
|
2085
2267
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2099,11 +2281,15 @@ paths:
|
|
|
2099
2281
|
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}:
|
|
2100
2282
|
get:
|
|
2101
2283
|
operationId: getCommentInChangeRequest
|
|
2102
|
-
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.
|
|
2286
|
+
x-gitbook-mcp: true
|
|
2103
2287
|
tags:
|
|
2104
2288
|
- change-request-comments
|
|
2105
2289
|
security:
|
|
2106
2290
|
- user: []
|
|
2291
|
+
- oauth:
|
|
2292
|
+
- space:read
|
|
2107
2293
|
parameters:
|
|
2108
2294
|
- $ref: "#/components/parameters/spaceId"
|
|
2109
2295
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2123,6 +2309,8 @@ paths:
|
|
|
2123
2309
|
- change-request-comments
|
|
2124
2310
|
security:
|
|
2125
2311
|
- user: []
|
|
2312
|
+
- oauth:
|
|
2313
|
+
- space:write
|
|
2126
2314
|
parameters:
|
|
2127
2315
|
- $ref: "#/components/parameters/spaceId"
|
|
2128
2316
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2134,11 +2322,15 @@ paths:
|
|
|
2134
2322
|
description: The comment has been deleted.
|
|
2135
2323
|
put:
|
|
2136
2324
|
operationId: updateCommentInChangeRequest
|
|
2137
|
-
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.
|
|
2327
|
+
x-gitbook-mcp: true
|
|
2138
2328
|
tags:
|
|
2139
2329
|
- change-request-comments
|
|
2140
2330
|
security:
|
|
2141
2331
|
- user: []
|
|
2332
|
+
- oauth:
|
|
2333
|
+
- space:write
|
|
2142
2334
|
parameters:
|
|
2143
2335
|
- $ref: "#/components/parameters/spaceId"
|
|
2144
2336
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2159,11 +2351,15 @@ paths:
|
|
|
2159
2351
|
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies:
|
|
2160
2352
|
get:
|
|
2161
2353
|
operationId: listCommentRepliesInChangeRequest
|
|
2162
|
-
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.
|
|
2356
|
+
x-gitbook-mcp: true
|
|
2163
2357
|
tags:
|
|
2164
2358
|
- change-request-comments
|
|
2165
2359
|
security:
|
|
2166
2360
|
- user: []
|
|
2361
|
+
- oauth:
|
|
2362
|
+
- space:read
|
|
2167
2363
|
parameters:
|
|
2168
2364
|
- $ref: "#/components/parameters/spaceId"
|
|
2169
2365
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2189,11 +2385,15 @@ paths:
|
|
|
2189
2385
|
$ref: "#/components/schemas/CommentReply"
|
|
2190
2386
|
post:
|
|
2191
2387
|
operationId: postCommentReplyInChangeRequest
|
|
2192
|
-
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.
|
|
2390
|
+
x-gitbook-mcp: true
|
|
2193
2391
|
tags:
|
|
2194
2392
|
- change-request-comments
|
|
2195
2393
|
security:
|
|
2196
2394
|
- user: []
|
|
2395
|
+
- oauth:
|
|
2396
|
+
- space:write
|
|
2197
2397
|
parameters:
|
|
2198
2398
|
- $ref: "#/components/parameters/spaceId"
|
|
2199
2399
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2215,11 +2415,15 @@ paths:
|
|
|
2215
2415
|
/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}:
|
|
2216
2416
|
get:
|
|
2217
2417
|
operationId: getCommentReplyInChangeRequest
|
|
2218
|
-
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.
|
|
2420
|
+
x-gitbook-mcp: true
|
|
2219
2421
|
tags:
|
|
2220
2422
|
- change-request-comments
|
|
2221
2423
|
security:
|
|
2222
2424
|
- user: []
|
|
2425
|
+
- oauth:
|
|
2426
|
+
- space:read
|
|
2223
2427
|
parameters:
|
|
2224
2428
|
- $ref: "#/components/parameters/spaceId"
|
|
2225
2429
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2235,11 +2439,15 @@ paths:
|
|
|
2235
2439
|
$ref: "#/components/schemas/CommentReply"
|
|
2236
2440
|
put:
|
|
2237
2441
|
operationId: updateCommentReplyInChangeRequest
|
|
2238
|
-
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.
|
|
2444
|
+
x-gitbook-mcp: true
|
|
2239
2445
|
tags:
|
|
2240
2446
|
- change-request-comments
|
|
2241
2447
|
security:
|
|
2242
2448
|
- user: []
|
|
2449
|
+
- oauth:
|
|
2450
|
+
- space:write
|
|
2243
2451
|
parameters:
|
|
2244
2452
|
- $ref: "#/components/parameters/spaceId"
|
|
2245
2453
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2265,6 +2473,8 @@ paths:
|
|
|
2265
2473
|
- change-request-comments
|
|
2266
2474
|
security:
|
|
2267
2475
|
- user: []
|
|
2476
|
+
- oauth:
|
|
2477
|
+
- space:write
|
|
2268
2478
|
parameters:
|
|
2269
2479
|
- $ref: "#/components/parameters/spaceId"
|
|
2270
2480
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2278,11 +2488,15 @@ paths:
|
|
|
2278
2488
|
/spaces/{spaceId}/change-requests/{changeRequestId}/contributors:
|
|
2279
2489
|
get:
|
|
2280
2490
|
operationId: getContributorsByChangeRequestId
|
|
2281
|
-
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.
|
|
2493
|
+
x-gitbook-mcp: true
|
|
2282
2494
|
tags:
|
|
2283
2495
|
- change-request-contributors
|
|
2284
2496
|
security:
|
|
2285
2497
|
- user: []
|
|
2498
|
+
- oauth:
|
|
2499
|
+
- space:read
|
|
2286
2500
|
parameters:
|
|
2287
2501
|
- $ref: "#/components/parameters/spaceId"
|
|
2288
2502
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2308,11 +2522,15 @@ paths:
|
|
|
2308
2522
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content:
|
|
2309
2523
|
get:
|
|
2310
2524
|
operationId: getRevisionOfChangeRequestById
|
|
2311
|
-
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.
|
|
2527
|
+
x-gitbook-mcp: true
|
|
2312
2528
|
tags:
|
|
2313
2529
|
- change-request-content
|
|
2314
2530
|
security:
|
|
2315
2531
|
- user: []
|
|
2532
|
+
- oauth:
|
|
2533
|
+
- space:read
|
|
2316
2534
|
parameters:
|
|
2317
2535
|
- $ref: "#/components/parameters/spaceId"
|
|
2318
2536
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2327,14 +2545,15 @@ paths:
|
|
|
2327
2545
|
$ref: "#/components/schemas/Revision"
|
|
2328
2546
|
post:
|
|
2329
2547
|
operationId: updateChangeRequestContent
|
|
2330
|
-
summary:
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
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.
|
|
2550
|
+
x-gitbook-mcp: true
|
|
2334
2551
|
tags:
|
|
2335
2552
|
- change-request-content
|
|
2336
2553
|
security:
|
|
2337
2554
|
- user: []
|
|
2555
|
+
- oauth:
|
|
2556
|
+
- space:write
|
|
2338
2557
|
parameters:
|
|
2339
2558
|
- $ref: "#/components/parameters/spaceId"
|
|
2340
2559
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2366,11 +2585,15 @@ paths:
|
|
|
2366
2585
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages:
|
|
2367
2586
|
get:
|
|
2368
2587
|
operationId: listPagesInChangeRequest
|
|
2369
|
-
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.
|
|
2590
|
+
x-gitbook-mcp: true
|
|
2370
2591
|
tags:
|
|
2371
2592
|
- change-request-content
|
|
2372
2593
|
security:
|
|
2373
2594
|
- user: []
|
|
2595
|
+
- oauth:
|
|
2596
|
+
- space:read
|
|
2374
2597
|
parameters:
|
|
2375
2598
|
- $ref: "#/components/parameters/spaceId"
|
|
2376
2599
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2393,11 +2616,15 @@ paths:
|
|
|
2393
2616
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/files:
|
|
2394
2617
|
get:
|
|
2395
2618
|
operationId: listFilesInChangeRequestById
|
|
2396
|
-
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.
|
|
2621
|
+
x-gitbook-mcp: true
|
|
2397
2622
|
tags:
|
|
2398
2623
|
- change-request-content
|
|
2399
2624
|
security:
|
|
2400
2625
|
- user: []
|
|
2626
|
+
- oauth:
|
|
2627
|
+
- space:read
|
|
2401
2628
|
parameters:
|
|
2402
2629
|
- $ref: "#/components/parameters/spaceId"
|
|
2403
2630
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2424,11 +2651,15 @@ paths:
|
|
|
2424
2651
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}:
|
|
2425
2652
|
get:
|
|
2426
2653
|
operationId: getFileInChangeRequestById
|
|
2427
|
-
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.
|
|
2656
|
+
x-gitbook-mcp: true
|
|
2428
2657
|
tags:
|
|
2429
2658
|
- change-request-content
|
|
2430
2659
|
security:
|
|
2431
2660
|
- user: []
|
|
2661
|
+
- oauth:
|
|
2662
|
+
- space:read
|
|
2432
2663
|
parameters:
|
|
2433
2664
|
- $ref: "#/components/parameters/spaceId"
|
|
2434
2665
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2445,11 +2676,15 @@ paths:
|
|
|
2445
2676
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks:
|
|
2446
2677
|
get:
|
|
2447
2678
|
operationId: listChangeRequestFileBacklinks
|
|
2448
|
-
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.
|
|
2681
|
+
x-gitbook-mcp: true
|
|
2449
2682
|
tags:
|
|
2450
2683
|
- change-request-content
|
|
2451
2684
|
security:
|
|
2452
2685
|
- user: []
|
|
2686
|
+
- oauth:
|
|
2687
|
+
- space:read
|
|
2453
2688
|
parameters:
|
|
2454
2689
|
- $ref: "#/components/parameters/spaceId"
|
|
2455
2690
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2475,11 +2710,15 @@ paths:
|
|
|
2475
2710
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}:
|
|
2476
2711
|
get:
|
|
2477
2712
|
operationId: getPageInChangeRequestById
|
|
2478
|
-
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.
|
|
2715
|
+
x-gitbook-mcp: true
|
|
2479
2716
|
tags:
|
|
2480
2717
|
- change-request-content
|
|
2481
2718
|
security:
|
|
2482
2719
|
- user: []
|
|
2720
|
+
- oauth:
|
|
2721
|
+
- space:read
|
|
2483
2722
|
parameters:
|
|
2484
2723
|
- $ref: "#/components/parameters/spaceId"
|
|
2485
2724
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2500,12 +2739,16 @@ paths:
|
|
|
2500
2739
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links:
|
|
2501
2740
|
get:
|
|
2502
2741
|
operationId: listPageLinksInChangeRequest
|
|
2503
|
-
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.
|
|
2744
|
+
x-gitbook-mcp: true
|
|
2504
2745
|
tags:
|
|
2505
2746
|
- change-request-content
|
|
2506
2747
|
- critical
|
|
2507
2748
|
security:
|
|
2508
2749
|
- user: []
|
|
2750
|
+
- oauth:
|
|
2751
|
+
- space:read
|
|
2509
2752
|
parameters:
|
|
2510
2753
|
- $ref: "#/components/parameters/spaceId"
|
|
2511
2754
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2534,11 +2777,15 @@ paths:
|
|
|
2534
2777
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/backlinks:
|
|
2535
2778
|
get:
|
|
2536
2779
|
operationId: listChangeRequestPageBacklinks
|
|
2537
|
-
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.
|
|
2782
|
+
x-gitbook-mcp: true
|
|
2538
2783
|
tags:
|
|
2539
2784
|
- change-request-content
|
|
2540
2785
|
security:
|
|
2541
2786
|
- user: []
|
|
2787
|
+
- oauth:
|
|
2788
|
+
- space:read
|
|
2542
2789
|
parameters:
|
|
2543
2790
|
- $ref: "#/components/parameters/spaceId"
|
|
2544
2791
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2564,11 +2811,15 @@ paths:
|
|
|
2564
2811
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links:
|
|
2565
2812
|
get:
|
|
2566
2813
|
operationId: listChangeRequestPageMetaLinks
|
|
2567
|
-
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.
|
|
2816
|
+
x-gitbook-mcp: true
|
|
2568
2817
|
tags:
|
|
2569
2818
|
- change-request-content
|
|
2570
2819
|
security:
|
|
2571
2820
|
- user: []
|
|
2821
|
+
- oauth:
|
|
2822
|
+
- space:read
|
|
2572
2823
|
parameters:
|
|
2573
2824
|
- $ref: "#/components/parameters/spaceId"
|
|
2574
2825
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2583,11 +2834,15 @@ paths:
|
|
|
2583
2834
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}:
|
|
2584
2835
|
get:
|
|
2585
2836
|
operationId: getReusableContentInChangeRequestById
|
|
2586
|
-
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.
|
|
2839
|
+
x-gitbook-mcp: true
|
|
2587
2840
|
tags:
|
|
2588
2841
|
- change-request-content
|
|
2589
2842
|
security:
|
|
2590
2843
|
- user: []
|
|
2844
|
+
- oauth:
|
|
2845
|
+
- space:read
|
|
2591
2846
|
parameters:
|
|
2592
2847
|
- $ref: "#/components/parameters/spaceId"
|
|
2593
2848
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2604,12 +2859,15 @@ paths:
|
|
|
2604
2859
|
/spaces/{spaceId}/change-requests/{changeRequestId}/changes:
|
|
2605
2860
|
get:
|
|
2606
2861
|
operationId: getChangeRequestChanges
|
|
2607
|
-
summary:
|
|
2608
|
-
description:
|
|
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.
|
|
2864
|
+
x-gitbook-mcp: true
|
|
2609
2865
|
tags:
|
|
2610
2866
|
- change-request-content
|
|
2611
2867
|
security:
|
|
2612
2868
|
- user: []
|
|
2869
|
+
- oauth:
|
|
2870
|
+
- space:read
|
|
2613
2871
|
parameters:
|
|
2614
2872
|
- $ref: "#/components/parameters/spaceId"
|
|
2615
2873
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2632,11 +2890,15 @@ paths:
|
|
|
2632
2890
|
/spaces/{spaceId}/change-requests/{changeRequestId}/pdf:
|
|
2633
2891
|
get:
|
|
2634
2892
|
operationId: getChangeRequestPDF
|
|
2635
|
-
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.
|
|
2895
|
+
x-gitbook-mcp: true
|
|
2636
2896
|
tags:
|
|
2637
2897
|
- change-requests
|
|
2638
2898
|
security:
|
|
2639
2899
|
- user: []
|
|
2900
|
+
- oauth:
|
|
2901
|
+
- space:read
|
|
2640
2902
|
parameters:
|
|
2641
2903
|
- $ref: "#/components/parameters/spaceId"
|
|
2642
2904
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2666,13 +2928,17 @@ paths:
|
|
|
2666
2928
|
/spaces/{spaceId}/revisions/{revisionId}:
|
|
2667
2929
|
get:
|
|
2668
2930
|
operationId: getRevisionById
|
|
2669
|
-
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.
|
|
2933
|
+
x-gitbook-mcp: true
|
|
2670
2934
|
tags:
|
|
2671
2935
|
- space-content
|
|
2672
2936
|
security:
|
|
2673
2937
|
- user: []
|
|
2674
2938
|
- integration: []
|
|
2675
2939
|
- integration-installation: []
|
|
2940
|
+
- oauth:
|
|
2941
|
+
- space:read
|
|
2676
2942
|
parameters:
|
|
2677
2943
|
- $ref: "#/components/parameters/spaceId"
|
|
2678
2944
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2688,14 +2954,17 @@ paths:
|
|
|
2688
2954
|
/spaces/{spaceId}/revisions/{revisionId}/changes:
|
|
2689
2955
|
get:
|
|
2690
2956
|
operationId: getRevisionSemanticChanges
|
|
2691
|
-
summary: Get
|
|
2692
|
-
description:
|
|
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.
|
|
2959
|
+
x-gitbook-mcp: true
|
|
2693
2960
|
tags:
|
|
2694
2961
|
- space-content
|
|
2695
2962
|
security:
|
|
2696
2963
|
- user: []
|
|
2697
2964
|
- integration: []
|
|
2698
2965
|
- integration-installation: []
|
|
2966
|
+
- oauth:
|
|
2967
|
+
- space:read
|
|
2699
2968
|
parameters:
|
|
2700
2969
|
- $ref: "#/components/parameters/spaceId"
|
|
2701
2970
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2716,12 +2985,16 @@ paths:
|
|
|
2716
2985
|
$ref: "#/components/schemas/RevisionSemanticChanges"
|
|
2717
2986
|
/spaces/{spaceId}/revisions/{revisionId}/pages:
|
|
2718
2987
|
get:
|
|
2719
|
-
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.
|
|
2990
|
+
x-gitbook-mcp: true
|
|
2720
2991
|
operationId: listPagesInRevisionById
|
|
2721
2992
|
tags:
|
|
2722
2993
|
- space-content
|
|
2723
2994
|
security:
|
|
2724
2995
|
- user: []
|
|
2996
|
+
- oauth:
|
|
2997
|
+
- space:read
|
|
2725
2998
|
parameters:
|
|
2726
2999
|
- $ref: "#/components/parameters/spaceId"
|
|
2727
3000
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2743,12 +3016,16 @@ paths:
|
|
|
2743
3016
|
- pages
|
|
2744
3017
|
/spaces/{spaceId}/revisions/{revisionId}/files:
|
|
2745
3018
|
get:
|
|
2746
|
-
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.
|
|
3021
|
+
x-gitbook-mcp: true
|
|
2747
3022
|
operationId: listFilesInRevisionById
|
|
2748
3023
|
tags:
|
|
2749
3024
|
- space-content
|
|
2750
3025
|
security:
|
|
2751
3026
|
- user: []
|
|
3027
|
+
- oauth:
|
|
3028
|
+
- space:read
|
|
2752
3029
|
parameters:
|
|
2753
3030
|
- $ref: "#/components/parameters/spaceId"
|
|
2754
3031
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2774,12 +3051,16 @@ paths:
|
|
|
2774
3051
|
$ref: "#/components/schemas/RevisionFile"
|
|
2775
3052
|
/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}:
|
|
2776
3053
|
get:
|
|
2777
|
-
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.
|
|
3056
|
+
x-gitbook-mcp: true
|
|
2778
3057
|
operationId: getFileInRevisionById
|
|
2779
3058
|
tags:
|
|
2780
3059
|
- space-content
|
|
2781
3060
|
security:
|
|
2782
3061
|
- user: []
|
|
3062
|
+
- oauth:
|
|
3063
|
+
- space:read
|
|
2783
3064
|
parameters:
|
|
2784
3065
|
- $ref: "#/components/parameters/spaceId"
|
|
2785
3066
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2796,13 +3077,17 @@ paths:
|
|
|
2796
3077
|
/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}:
|
|
2797
3078
|
get:
|
|
2798
3079
|
operationId: getPageInRevisionById
|
|
2799
|
-
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.
|
|
3082
|
+
x-gitbook-mcp: true
|
|
2800
3083
|
tags:
|
|
2801
3084
|
- space-content
|
|
2802
3085
|
security:
|
|
2803
3086
|
- user: []
|
|
2804
3087
|
- integration: []
|
|
2805
3088
|
- integration-installation: []
|
|
3089
|
+
- oauth:
|
|
3090
|
+
- space:read
|
|
2806
3091
|
parameters:
|
|
2807
3092
|
- $ref: "#/components/parameters/spaceId"
|
|
2808
3093
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2823,11 +3108,15 @@ paths:
|
|
|
2823
3108
|
/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/document:
|
|
2824
3109
|
get:
|
|
2825
3110
|
operationId: getPageDocumentInRevisionById
|
|
2826
|
-
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.
|
|
3113
|
+
x-gitbook-mcp: true
|
|
2827
3114
|
tags:
|
|
2828
3115
|
- space-content
|
|
2829
3116
|
security:
|
|
2830
3117
|
- user: []
|
|
3118
|
+
- oauth:
|
|
3119
|
+
- space:read
|
|
2831
3120
|
parameters:
|
|
2832
3121
|
- $ref: "#/components/parameters/spaceId"
|
|
2833
3122
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2844,11 +3133,15 @@ paths:
|
|
|
2844
3133
|
/spaces/{spaceId}/revisions/{revisionId}/path/{pagePath}:
|
|
2845
3134
|
get:
|
|
2846
3135
|
operationId: getPageInRevisionByPath
|
|
2847
|
-
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.
|
|
3138
|
+
x-gitbook-mcp: true
|
|
2848
3139
|
tags:
|
|
2849
3140
|
- space-content
|
|
2850
3141
|
security:
|
|
2851
3142
|
- user: []
|
|
3143
|
+
- oauth:
|
|
3144
|
+
- space:read
|
|
2852
3145
|
parameters:
|
|
2853
3146
|
- $ref: "#/components/parameters/spaceId"
|
|
2854
3147
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2871,11 +3164,15 @@ paths:
|
|
|
2871
3164
|
/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/meta-links:
|
|
2872
3165
|
get:
|
|
2873
3166
|
operationId: listRevisionPageMetaLinks
|
|
2874
|
-
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.
|
|
3169
|
+
x-gitbook-mcp: true
|
|
2875
3170
|
tags:
|
|
2876
3171
|
- space-content
|
|
2877
3172
|
security:
|
|
2878
3173
|
- user: []
|
|
3174
|
+
- oauth:
|
|
3175
|
+
- space:read
|
|
2879
3176
|
parameters:
|
|
2880
3177
|
- $ref: "#/components/parameters/spaceId"
|
|
2881
3178
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2890,11 +3187,15 @@ paths:
|
|
|
2890
3187
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}:
|
|
2891
3188
|
get:
|
|
2892
3189
|
operationId: getPageInChangeRequestByPath
|
|
2893
|
-
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.
|
|
3192
|
+
x-gitbook-mcp: true
|
|
2894
3193
|
tags:
|
|
2895
3194
|
- change-request-content
|
|
2896
3195
|
security:
|
|
2897
3196
|
- user: []
|
|
3197
|
+
- oauth:
|
|
3198
|
+
- space:read
|
|
2898
3199
|
parameters:
|
|
2899
3200
|
- $ref: "#/components/parameters/spaceId"
|
|
2900
3201
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -2917,11 +3218,15 @@ paths:
|
|
|
2917
3218
|
/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}:
|
|
2918
3219
|
get:
|
|
2919
3220
|
operationId: getReusableContentInRevisionById
|
|
2920
|
-
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.
|
|
3223
|
+
x-gitbook-mcp: true
|
|
2921
3224
|
tags:
|
|
2922
3225
|
- space-content
|
|
2923
3226
|
security:
|
|
2924
3227
|
- user: []
|
|
3228
|
+
- oauth:
|
|
3229
|
+
- space:read
|
|
2925
3230
|
parameters:
|
|
2926
3231
|
- $ref: "#/components/parameters/spaceId"
|
|
2927
3232
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2938,11 +3243,15 @@ paths:
|
|
|
2938
3243
|
/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}/document:
|
|
2939
3244
|
get:
|
|
2940
3245
|
operationId: getReusableContentDocumentInRevisionById
|
|
2941
|
-
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.
|
|
3248
|
+
x-gitbook-mcp: true
|
|
2942
3249
|
tags:
|
|
2943
3250
|
- space-content
|
|
2944
3251
|
security:
|
|
2945
3252
|
- user: []
|
|
3253
|
+
- oauth:
|
|
3254
|
+
- space:read
|
|
2946
3255
|
parameters:
|
|
2947
3256
|
- $ref: "#/components/parameters/spaceId"
|
|
2948
3257
|
- $ref: "#/components/parameters/revisionId"
|
|
@@ -2959,12 +3268,16 @@ paths:
|
|
|
2959
3268
|
/spaces/{spaceId}/comments:
|
|
2960
3269
|
get:
|
|
2961
3270
|
operationId: listCommentsInSpace
|
|
2962
|
-
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.
|
|
3273
|
+
x-gitbook-mcp: true
|
|
2963
3274
|
tags:
|
|
2964
3275
|
- space-comments
|
|
2965
3276
|
- critical
|
|
2966
3277
|
security:
|
|
2967
3278
|
- user: []
|
|
3279
|
+
- oauth:
|
|
3280
|
+
- space:read
|
|
2968
3281
|
parameters:
|
|
2969
3282
|
- $ref: "#/components/parameters/spaceId"
|
|
2970
3283
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -2992,11 +3305,15 @@ paths:
|
|
|
2992
3305
|
$ref: "#/components/schemas/Comment"
|
|
2993
3306
|
post:
|
|
2994
3307
|
operationId: postCommentInSpace
|
|
2995
|
-
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.
|
|
3310
|
+
x-gitbook-mcp: true
|
|
2996
3311
|
tags:
|
|
2997
3312
|
- space-comments
|
|
2998
3313
|
security:
|
|
2999
3314
|
- user: []
|
|
3315
|
+
- oauth:
|
|
3316
|
+
- space:write
|
|
3000
3317
|
parameters:
|
|
3001
3318
|
- $ref: "#/components/parameters/spaceId"
|
|
3002
3319
|
requestBody:
|
|
@@ -3015,11 +3332,15 @@ paths:
|
|
|
3015
3332
|
/spaces/{spaceId}/comments/{commentId}:
|
|
3016
3333
|
get:
|
|
3017
3334
|
operationId: getCommentInSpace
|
|
3018
|
-
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.
|
|
3337
|
+
x-gitbook-mcp: true
|
|
3019
3338
|
tags:
|
|
3020
3339
|
- space-comments
|
|
3021
3340
|
security:
|
|
3022
3341
|
- user: []
|
|
3342
|
+
- oauth:
|
|
3343
|
+
- space:read
|
|
3023
3344
|
parameters:
|
|
3024
3345
|
- $ref: "#/components/parameters/spaceId"
|
|
3025
3346
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3038,6 +3359,8 @@ paths:
|
|
|
3038
3359
|
- space-comments
|
|
3039
3360
|
security:
|
|
3040
3361
|
- user: []
|
|
3362
|
+
- oauth:
|
|
3363
|
+
- space:write
|
|
3041
3364
|
parameters:
|
|
3042
3365
|
- $ref: "#/components/parameters/spaceId"
|
|
3043
3366
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3048,11 +3371,15 @@ paths:
|
|
|
3048
3371
|
description: The comment has been deleted.
|
|
3049
3372
|
put:
|
|
3050
3373
|
operationId: updateCommentInSpace
|
|
3051
|
-
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.
|
|
3376
|
+
x-gitbook-mcp: true
|
|
3052
3377
|
tags:
|
|
3053
3378
|
- space-comments
|
|
3054
3379
|
security:
|
|
3055
3380
|
- user: []
|
|
3381
|
+
- oauth:
|
|
3382
|
+
- space:write
|
|
3056
3383
|
parameters:
|
|
3057
3384
|
- $ref: "#/components/parameters/spaceId"
|
|
3058
3385
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3072,11 +3399,15 @@ paths:
|
|
|
3072
3399
|
/spaces/{spaceId}/comments/{commentId}/replies:
|
|
3073
3400
|
get:
|
|
3074
3401
|
operationId: listCommentRepliesInSpace
|
|
3075
|
-
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.
|
|
3404
|
+
x-gitbook-mcp: true
|
|
3076
3405
|
tags:
|
|
3077
3406
|
- space-comment
|
|
3078
3407
|
security:
|
|
3079
3408
|
- user: []
|
|
3409
|
+
- oauth:
|
|
3410
|
+
- space:read
|
|
3080
3411
|
parameters:
|
|
3081
3412
|
- $ref: "#/components/parameters/spaceId"
|
|
3082
3413
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3101,11 +3432,15 @@ paths:
|
|
|
3101
3432
|
$ref: "#/components/schemas/CommentReply"
|
|
3102
3433
|
post:
|
|
3103
3434
|
operationId: postCommentReplyInSpace
|
|
3104
|
-
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.
|
|
3437
|
+
x-gitbook-mcp: true
|
|
3105
3438
|
tags:
|
|
3106
3439
|
- space-comments
|
|
3107
3440
|
security:
|
|
3108
3441
|
- user: []
|
|
3442
|
+
- oauth:
|
|
3443
|
+
- space:write
|
|
3109
3444
|
parameters:
|
|
3110
3445
|
- $ref: "#/components/parameters/spaceId"
|
|
3111
3446
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3125,11 +3460,15 @@ paths:
|
|
|
3125
3460
|
/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}:
|
|
3126
3461
|
get:
|
|
3127
3462
|
operationId: getCommentReplyInSpace
|
|
3128
|
-
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.
|
|
3465
|
+
x-gitbook-mcp: true
|
|
3129
3466
|
tags:
|
|
3130
3467
|
- space-comments
|
|
3131
3468
|
security:
|
|
3132
3469
|
- user: []
|
|
3470
|
+
- oauth:
|
|
3471
|
+
- space:read
|
|
3133
3472
|
parameters:
|
|
3134
3473
|
- $ref: "#/components/parameters/spaceId"
|
|
3135
3474
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3144,11 +3483,15 @@ paths:
|
|
|
3144
3483
|
$ref: "#/components/schemas/CommentReply"
|
|
3145
3484
|
put:
|
|
3146
3485
|
operationId: updateCommentReplyInSpace
|
|
3147
|
-
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.
|
|
3488
|
+
x-gitbook-mcp: true
|
|
3148
3489
|
tags:
|
|
3149
3490
|
- space-comments
|
|
3150
3491
|
security:
|
|
3151
3492
|
- user: []
|
|
3493
|
+
- oauth:
|
|
3494
|
+
- space:write
|
|
3152
3495
|
parameters:
|
|
3153
3496
|
- $ref: "#/components/parameters/spaceId"
|
|
3154
3497
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3173,6 +3516,8 @@ paths:
|
|
|
3173
3516
|
- space-comments
|
|
3174
3517
|
security:
|
|
3175
3518
|
- user: []
|
|
3519
|
+
- oauth:
|
|
3520
|
+
- space:write
|
|
3176
3521
|
parameters:
|
|
3177
3522
|
- $ref: "#/components/parameters/spaceId"
|
|
3178
3523
|
- $ref: "#/components/parameters/commentId"
|
|
@@ -3185,12 +3530,16 @@ paths:
|
|
|
3185
3530
|
/spaces/{spaceId}/commenters:
|
|
3186
3531
|
get:
|
|
3187
3532
|
operationId: listCommentersInSpace
|
|
3188
|
-
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.
|
|
3535
|
+
x-gitbook-mcp: true
|
|
3189
3536
|
tags:
|
|
3190
3537
|
- space-comments
|
|
3191
3538
|
- critical
|
|
3192
3539
|
security:
|
|
3193
3540
|
- user: []
|
|
3541
|
+
- oauth:
|
|
3542
|
+
- space:read
|
|
3194
3543
|
parameters:
|
|
3195
3544
|
- $ref: "#/components/parameters/spaceId"
|
|
3196
3545
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -3214,12 +3563,16 @@ paths:
|
|
|
3214
3563
|
/spaces/{spaceId}/change-requests/{changeRequestId}/commenters:
|
|
3215
3564
|
get:
|
|
3216
3565
|
operationId: listCommentersInChangeRequest
|
|
3217
|
-
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.
|
|
3568
|
+
x-gitbook-mcp: true
|
|
3218
3569
|
tags:
|
|
3219
3570
|
- change-request-comments
|
|
3220
3571
|
- critical
|
|
3221
3572
|
security:
|
|
3222
3573
|
- user: []
|
|
3574
|
+
- oauth:
|
|
3575
|
+
- space:read
|
|
3223
3576
|
parameters:
|
|
3224
3577
|
- $ref: "#/components/parameters/spaceId"
|
|
3225
3578
|
- $ref: "#/components/parameters/changeRequestId"
|
|
@@ -3249,6 +3602,8 @@ paths:
|
|
|
3249
3602
|
- space-permissions
|
|
3250
3603
|
security:
|
|
3251
3604
|
- user: []
|
|
3605
|
+
- oauth:
|
|
3606
|
+
- space:permissions:read
|
|
3252
3607
|
parameters:
|
|
3253
3608
|
- $ref: "#/components/parameters/spaceId"
|
|
3254
3609
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -3277,11 +3632,15 @@ paths:
|
|
|
3277
3632
|
/spaces/{spaceId}/integrations:
|
|
3278
3633
|
get:
|
|
3279
3634
|
operationId: listSpaceIntegrations
|
|
3280
|
-
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.
|
|
3637
|
+
x-gitbook-mcp: true
|
|
3281
3638
|
tags:
|
|
3282
3639
|
- space-integrations
|
|
3283
3640
|
security:
|
|
3284
3641
|
- user: []
|
|
3642
|
+
- oauth:
|
|
3643
|
+
- space:read
|
|
3285
3644
|
parameters:
|
|
3286
3645
|
- $ref: "#/components/parameters/spaceId"
|
|
3287
3646
|
- $ref: "#/components/parameters/integrationSearchQuery"
|
|
@@ -3304,7 +3663,9 @@ paths:
|
|
|
3304
3663
|
/spaces/{spaceId}/integration-blocks:
|
|
3305
3664
|
get:
|
|
3306
3665
|
operationId: listSpaceIntegrationsBlocks
|
|
3307
|
-
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.
|
|
3668
|
+
x-gitbook-mcp: true
|
|
3308
3669
|
tags:
|
|
3309
3670
|
- space-integrations
|
|
3310
3671
|
parameters:
|
|
@@ -3321,11 +3682,15 @@ paths:
|
|
|
3321
3682
|
/spaces/{spaceId}/pdf:
|
|
3322
3683
|
get:
|
|
3323
3684
|
operationId: getSpacePDF
|
|
3324
|
-
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.
|
|
3687
|
+
x-gitbook-mcp: true
|
|
3325
3688
|
tags:
|
|
3326
3689
|
- space-content
|
|
3327
3690
|
security:
|
|
3328
3691
|
- user: []
|
|
3692
|
+
- oauth:
|
|
3693
|
+
- space:read
|
|
3329
3694
|
parameters:
|
|
3330
3695
|
- $ref: "#/components/parameters/spaceId"
|
|
3331
3696
|
- in: query
|
|
@@ -3354,13 +3719,17 @@ paths:
|
|
|
3354
3719
|
/spaces/{spaceId}/links:
|
|
3355
3720
|
get:
|
|
3356
3721
|
operationId: listSpaceLinks
|
|
3357
|
-
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.
|
|
3724
|
+
x-gitbook-mcp: true
|
|
3358
3725
|
tags:
|
|
3359
3726
|
- spaces
|
|
3360
3727
|
- links
|
|
3361
3728
|
- critical
|
|
3362
3729
|
security:
|
|
3363
3730
|
- user: []
|
|
3731
|
+
- oauth:
|
|
3732
|
+
- space:read
|
|
3364
3733
|
parameters:
|
|
3365
3734
|
- $ref: "#/components/parameters/spaceId"
|
|
3366
3735
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -3399,6 +3768,8 @@ paths:
|
|
|
3399
3768
|
- collections
|
|
3400
3769
|
security:
|
|
3401
3770
|
- user: []
|
|
3771
|
+
- oauth:
|
|
3772
|
+
- space:read
|
|
3402
3773
|
parameters:
|
|
3403
3774
|
- $ref: "#/components/parameters/collectionId"
|
|
3404
3775
|
responses:
|
|
@@ -3415,6 +3786,8 @@ paths:
|
|
|
3415
3786
|
- collections
|
|
3416
3787
|
security:
|
|
3417
3788
|
- user: []
|
|
3789
|
+
- oauth:
|
|
3790
|
+
- space:write
|
|
3418
3791
|
parameters:
|
|
3419
3792
|
- $ref: "#/components/parameters/collectionId"
|
|
3420
3793
|
requestBody:
|
|
@@ -3444,6 +3817,8 @@ paths:
|
|
|
3444
3817
|
- collections
|
|
3445
3818
|
security:
|
|
3446
3819
|
- user: []
|
|
3820
|
+
- oauth:
|
|
3821
|
+
- space:write
|
|
3447
3822
|
parameters:
|
|
3448
3823
|
- $ref: "#/components/parameters/collectionId"
|
|
3449
3824
|
responses:
|
|
@@ -3459,6 +3834,8 @@ paths:
|
|
|
3459
3834
|
- collections
|
|
3460
3835
|
security:
|
|
3461
3836
|
- user: []
|
|
3837
|
+
- oauth:
|
|
3838
|
+
- space:read
|
|
3462
3839
|
parameters:
|
|
3463
3840
|
- $ref: "#/components/parameters/collectionId"
|
|
3464
3841
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -3487,6 +3864,8 @@ paths:
|
|
|
3487
3864
|
- collections
|
|
3488
3865
|
security:
|
|
3489
3866
|
- user: []
|
|
3867
|
+
- oauth:
|
|
3868
|
+
- space:write
|
|
3490
3869
|
parameters:
|
|
3491
3870
|
- $ref: "#/components/parameters/collectionId"
|
|
3492
3871
|
requestBody:
|
|
@@ -3529,6 +3908,8 @@ paths:
|
|
|
3529
3908
|
- collections
|
|
3530
3909
|
security:
|
|
3531
3910
|
- user: []
|
|
3911
|
+
- oauth:
|
|
3912
|
+
- space:write
|
|
3532
3913
|
parameters:
|
|
3533
3914
|
- $ref: "#/components/parameters/collectionId"
|
|
3534
3915
|
requestBody:
|
|
@@ -3567,6 +3948,8 @@ paths:
|
|
|
3567
3948
|
- collection-permissions
|
|
3568
3949
|
security:
|
|
3569
3950
|
- user: []
|
|
3951
|
+
- oauth:
|
|
3952
|
+
- space:permissions:write
|
|
3570
3953
|
parameters:
|
|
3571
3954
|
- $ref: "#/components/parameters/collectionId"
|
|
3572
3955
|
responses:
|
|
@@ -3589,6 +3972,8 @@ paths:
|
|
|
3589
3972
|
- collection-permissions
|
|
3590
3973
|
security:
|
|
3591
3974
|
- user: []
|
|
3975
|
+
- oauth:
|
|
3976
|
+
- space:permissions:read
|
|
3592
3977
|
parameters:
|
|
3593
3978
|
- $ref: "#/components/parameters/collectionId"
|
|
3594
3979
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -3626,6 +4011,8 @@ paths:
|
|
|
3626
4011
|
- collection-permissions
|
|
3627
4012
|
security:
|
|
3628
4013
|
- user: []
|
|
4014
|
+
- oauth:
|
|
4015
|
+
- space:permissions:write
|
|
3629
4016
|
parameters:
|
|
3630
4017
|
- $ref: "#/components/parameters/collectionId"
|
|
3631
4018
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -3651,6 +4038,8 @@ paths:
|
|
|
3651
4038
|
- collection-permissions
|
|
3652
4039
|
security:
|
|
3653
4040
|
- user: []
|
|
4041
|
+
- oauth:
|
|
4042
|
+
- space:permissions:write
|
|
3654
4043
|
parameters:
|
|
3655
4044
|
- $ref: "#/components/parameters/collectionId"
|
|
3656
4045
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -3667,6 +4056,8 @@ paths:
|
|
|
3667
4056
|
- collection-permissions
|
|
3668
4057
|
security:
|
|
3669
4058
|
- user: []
|
|
4059
|
+
- oauth:
|
|
4060
|
+
- space:permissions:read
|
|
3670
4061
|
parameters:
|
|
3671
4062
|
- $ref: "#/components/parameters/collectionId"
|
|
3672
4063
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -3698,6 +4089,8 @@ paths:
|
|
|
3698
4089
|
- collection-permissions
|
|
3699
4090
|
security:
|
|
3700
4091
|
- user: []
|
|
4092
|
+
- oauth:
|
|
4093
|
+
- space:permissions:write
|
|
3701
4094
|
parameters:
|
|
3702
4095
|
- $ref: "#/components/parameters/collectionId"
|
|
3703
4096
|
- $ref: "#/components/parameters/userId"
|
|
@@ -3723,6 +4116,8 @@ paths:
|
|
|
3723
4116
|
- collection-permissions
|
|
3724
4117
|
security:
|
|
3725
4118
|
- user: []
|
|
4119
|
+
- oauth:
|
|
4120
|
+
- space:permissions:write
|
|
3726
4121
|
parameters:
|
|
3727
4122
|
- $ref: "#/components/parameters/collectionId"
|
|
3728
4123
|
- $ref: "#/components/parameters/userId"
|
|
@@ -3739,6 +4134,8 @@ paths:
|
|
|
3739
4134
|
- space-permissions
|
|
3740
4135
|
security:
|
|
3741
4136
|
- user: []
|
|
4137
|
+
- oauth:
|
|
4138
|
+
- space:permissions:read
|
|
3742
4139
|
parameters:
|
|
3743
4140
|
- $ref: "#/components/parameters/collectionId"
|
|
3744
4141
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -4541,11 +4938,14 @@ paths:
|
|
|
4541
4938
|
get:
|
|
4542
4939
|
operationId: listOrganizationsForAuthenticatedUser
|
|
4543
4940
|
summary: Get the list of organizations for the currently authenticated user
|
|
4941
|
+
x-gitbook-mcp: true
|
|
4544
4942
|
tags:
|
|
4545
4943
|
- organizations
|
|
4546
4944
|
- critical
|
|
4547
4945
|
security:
|
|
4548
4946
|
- user: []
|
|
4947
|
+
- oauth:
|
|
4948
|
+
- organization:read
|
|
4549
4949
|
parameters:
|
|
4550
4950
|
- $ref: "#/components/parameters/listPage"
|
|
4551
4951
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -4569,6 +4969,7 @@ paths:
|
|
|
4569
4969
|
get:
|
|
4570
4970
|
operationId: getOrganizationById
|
|
4571
4971
|
summary: Get an organization by its ID
|
|
4972
|
+
x-gitbook-mcp: true
|
|
4572
4973
|
tags:
|
|
4573
4974
|
- organizations
|
|
4574
4975
|
- critical
|
|
@@ -4587,10 +4988,13 @@ paths:
|
|
|
4587
4988
|
patch:
|
|
4588
4989
|
operationId: updateOrganizationById
|
|
4589
4990
|
summary: Update an organization
|
|
4991
|
+
x-gitbook-mcp: true
|
|
4590
4992
|
tags:
|
|
4591
4993
|
- organizations
|
|
4592
4994
|
security:
|
|
4593
4995
|
- user: []
|
|
4996
|
+
- oauth:
|
|
4997
|
+
- organization:write
|
|
4594
4998
|
parameters:
|
|
4595
4999
|
- $ref: "#/components/parameters/organizationId"
|
|
4596
5000
|
requestBody:
|
|
@@ -4642,34 +5046,16 @@ paths:
|
|
|
4642
5046
|
- organization-members
|
|
4643
5047
|
security:
|
|
4644
5048
|
- user: []
|
|
5049
|
+
- oauth:
|
|
5050
|
+
- organization:members:read
|
|
4645
5051
|
parameters:
|
|
4646
5052
|
- $ref: "#/components/parameters/organizationId"
|
|
4647
5053
|
- $ref: "#/components/parameters/listPage"
|
|
4648
5054
|
- $ref: "#/components/parameters/listLimit"
|
|
4649
5055
|
- $ref: "#/components/parameters/listOrder"
|
|
4650
|
-
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
schema:
|
|
4654
|
-
oneOf:
|
|
4655
|
-
- $ref: "#/components/schemas/MemberRole"
|
|
4656
|
-
- type: string
|
|
4657
|
-
enum:
|
|
4658
|
-
- guest
|
|
4659
|
-
- name: search
|
|
4660
|
-
in: query
|
|
4661
|
-
description: A query to filter the member list (displayName and email)
|
|
4662
|
-
schema:
|
|
4663
|
-
type: string
|
|
4664
|
-
- name: sort
|
|
4665
|
-
in: query
|
|
4666
|
-
description: The property to sort the results by. When sorting by lastSeenAt, only active members will be listed.
|
|
4667
|
-
schema:
|
|
4668
|
-
type: string
|
|
4669
|
-
default: joinedAt
|
|
4670
|
-
enum:
|
|
4671
|
-
- joinedAt
|
|
4672
|
-
- lastSeenAt
|
|
5056
|
+
- $ref: "#/components/parameters/memberRoleFilter"
|
|
5057
|
+
- $ref: "#/components/parameters/memberSearch"
|
|
5058
|
+
- $ref: "#/components/parameters/memberSort"
|
|
4673
5059
|
responses:
|
|
4674
5060
|
"200":
|
|
4675
5061
|
description: OK
|
|
@@ -4695,6 +5081,8 @@ paths:
|
|
|
4695
5081
|
- critical
|
|
4696
5082
|
security:
|
|
4697
5083
|
- user: []
|
|
5084
|
+
- oauth:
|
|
5085
|
+
- organization:members:read
|
|
4698
5086
|
parameters:
|
|
4699
5087
|
- $ref: "#/components/parameters/organizationId"
|
|
4700
5088
|
- $ref: "#/components/parameters/userId"
|
|
@@ -4712,6 +5100,8 @@ paths:
|
|
|
4712
5100
|
- organization-members
|
|
4713
5101
|
security:
|
|
4714
5102
|
- user: []
|
|
5103
|
+
- oauth:
|
|
5104
|
+
- organization:members:write
|
|
4715
5105
|
parameters:
|
|
4716
5106
|
- $ref: "#/components/parameters/organizationId"
|
|
4717
5107
|
- $ref: "#/components/parameters/userId"
|
|
@@ -4738,6 +5128,8 @@ paths:
|
|
|
4738
5128
|
- organization-members
|
|
4739
5129
|
security:
|
|
4740
5130
|
- user: []
|
|
5131
|
+
- oauth:
|
|
5132
|
+
- organization:members:write
|
|
4741
5133
|
parameters:
|
|
4742
5134
|
- $ref: "#/components/parameters/organizationId"
|
|
4743
5135
|
- $ref: "#/components/parameters/userId"
|
|
@@ -4793,6 +5185,8 @@ paths:
|
|
|
4793
5185
|
- organization-members
|
|
4794
5186
|
security:
|
|
4795
5187
|
- user: []
|
|
5188
|
+
- oauth:
|
|
5189
|
+
- organization:members:read
|
|
4796
5190
|
parameters:
|
|
4797
5191
|
- $ref: "#/components/parameters/organizationId"
|
|
4798
5192
|
- $ref: "#/components/parameters/userId"
|
|
@@ -4823,6 +5217,8 @@ paths:
|
|
|
4823
5217
|
- organization-members
|
|
4824
5218
|
security:
|
|
4825
5219
|
- user: []
|
|
5220
|
+
- oauth:
|
|
5221
|
+
- organization:members:read
|
|
4826
5222
|
parameters:
|
|
4827
5223
|
- $ref: "#/components/parameters/organizationId"
|
|
4828
5224
|
- $ref: "#/components/parameters/userId"
|
|
@@ -4865,6 +5261,8 @@ paths:
|
|
|
4865
5261
|
- teams
|
|
4866
5262
|
security:
|
|
4867
5263
|
- user: []
|
|
5264
|
+
- oauth:
|
|
5265
|
+
- organization:members:read
|
|
4868
5266
|
parameters:
|
|
4869
5267
|
- $ref: "#/components/parameters/organizationId"
|
|
4870
5268
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -4902,6 +5300,8 @@ paths:
|
|
|
4902
5300
|
- teams
|
|
4903
5301
|
security:
|
|
4904
5302
|
- user: []
|
|
5303
|
+
- oauth:
|
|
5304
|
+
- organization:members:write
|
|
4905
5305
|
parameters:
|
|
4906
5306
|
- $ref: "#/components/parameters/organizationId"
|
|
4907
5307
|
responses:
|
|
@@ -4935,6 +5335,8 @@ paths:
|
|
|
4935
5335
|
- teams
|
|
4936
5336
|
security:
|
|
4937
5337
|
- user: []
|
|
5338
|
+
- oauth:
|
|
5339
|
+
- organization:members:read
|
|
4938
5340
|
parameters:
|
|
4939
5341
|
- $ref: "#/components/parameters/organizationId"
|
|
4940
5342
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -4952,6 +5354,8 @@ paths:
|
|
|
4952
5354
|
- teams
|
|
4953
5355
|
security:
|
|
4954
5356
|
- user: []
|
|
5357
|
+
- oauth:
|
|
5358
|
+
- organization:members:write
|
|
4955
5359
|
parameters:
|
|
4956
5360
|
- $ref: "#/components/parameters/organizationId"
|
|
4957
5361
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -4980,6 +5384,8 @@ paths:
|
|
|
4980
5384
|
- teams
|
|
4981
5385
|
security:
|
|
4982
5386
|
- user: []
|
|
5387
|
+
- oauth:
|
|
5388
|
+
- organization:members:write
|
|
4983
5389
|
parameters:
|
|
4984
5390
|
- $ref: "#/components/parameters/organizationId"
|
|
4985
5391
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -4998,6 +5404,8 @@ paths:
|
|
|
4998
5404
|
- team-members
|
|
4999
5405
|
security:
|
|
5000
5406
|
- user: []
|
|
5407
|
+
- oauth:
|
|
5408
|
+
- organization:members:write
|
|
5001
5409
|
parameters:
|
|
5002
5410
|
- $ref: "#/components/parameters/organizationId"
|
|
5003
5411
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -5019,6 +5427,8 @@ paths:
|
|
|
5019
5427
|
- team-members
|
|
5020
5428
|
security:
|
|
5021
5429
|
- user: []
|
|
5430
|
+
- oauth:
|
|
5431
|
+
- organization:members:read
|
|
5022
5432
|
parameters:
|
|
5023
5433
|
- $ref: "#/components/parameters/organizationId"
|
|
5024
5434
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -5050,6 +5460,8 @@ paths:
|
|
|
5050
5460
|
- team-members
|
|
5051
5461
|
security:
|
|
5052
5462
|
- user: []
|
|
5463
|
+
- oauth:
|
|
5464
|
+
- organization:members:write
|
|
5053
5465
|
parameters:
|
|
5054
5466
|
- $ref: "#/components/parameters/organizationId"
|
|
5055
5467
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -5074,6 +5486,8 @@ paths:
|
|
|
5074
5486
|
- team-members
|
|
5075
5487
|
security:
|
|
5076
5488
|
- user: []
|
|
5489
|
+
- oauth:
|
|
5490
|
+
- organization:members:write
|
|
5077
5491
|
parameters:
|
|
5078
5492
|
- $ref: "#/components/parameters/organizationId"
|
|
5079
5493
|
- $ref: "#/components/parameters/teamId"
|
|
@@ -5091,6 +5505,8 @@ paths:
|
|
|
5091
5505
|
- organization-invites
|
|
5092
5506
|
security:
|
|
5093
5507
|
- user: []
|
|
5508
|
+
- oauth:
|
|
5509
|
+
- organization:members:write
|
|
5094
5510
|
parameters:
|
|
5095
5511
|
- $ref: "#/components/parameters/organizationId"
|
|
5096
5512
|
responses:
|
|
@@ -5133,6 +5549,8 @@ paths:
|
|
|
5133
5549
|
- organization-invites
|
|
5134
5550
|
security:
|
|
5135
5551
|
- user: []
|
|
5552
|
+
- oauth:
|
|
5553
|
+
- organization:members:write
|
|
5136
5554
|
parameters:
|
|
5137
5555
|
- $ref: "#/components/parameters/organizationId"
|
|
5138
5556
|
- $ref: "#/components/parameters/inviteId"
|
|
@@ -5152,6 +5570,8 @@ paths:
|
|
|
5152
5570
|
- organization-invites
|
|
5153
5571
|
security:
|
|
5154
5572
|
- user: []
|
|
5573
|
+
- oauth:
|
|
5574
|
+
- organization:members:read
|
|
5155
5575
|
parameters:
|
|
5156
5576
|
- $ref: "#/components/parameters/organizationId"
|
|
5157
5577
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -5179,6 +5599,8 @@ paths:
|
|
|
5179
5599
|
- organization-invites
|
|
5180
5600
|
security:
|
|
5181
5601
|
- user: []
|
|
5602
|
+
- oauth:
|
|
5603
|
+
- organization:members:write
|
|
5182
5604
|
parameters:
|
|
5183
5605
|
- $ref: "#/components/parameters/organizationId"
|
|
5184
5606
|
requestBody:
|
|
@@ -5202,6 +5624,8 @@ paths:
|
|
|
5202
5624
|
- organization-invites
|
|
5203
5625
|
security:
|
|
5204
5626
|
- user: []
|
|
5627
|
+
- oauth:
|
|
5628
|
+
- organization:members:read
|
|
5205
5629
|
parameters:
|
|
5206
5630
|
- $ref: "#/components/parameters/organizationId"
|
|
5207
5631
|
- $ref: "#/components/parameters/inviteId"
|
|
@@ -5219,6 +5643,8 @@ paths:
|
|
|
5219
5643
|
- organization-invites
|
|
5220
5644
|
security:
|
|
5221
5645
|
- user: []
|
|
5646
|
+
- oauth:
|
|
5647
|
+
- organization:members:write
|
|
5222
5648
|
parameters:
|
|
5223
5649
|
- $ref: "#/components/parameters/organizationId"
|
|
5224
5650
|
- $ref: "#/components/parameters/inviteId"
|
|
@@ -5256,6 +5682,8 @@ paths:
|
|
|
5256
5682
|
- organizations
|
|
5257
5683
|
security:
|
|
5258
5684
|
- user: []
|
|
5685
|
+
- oauth:
|
|
5686
|
+
- organization:members:write
|
|
5259
5687
|
parameters:
|
|
5260
5688
|
- $ref: "#/components/parameters/organizationId"
|
|
5261
5689
|
- $ref: "#/components/parameters/inviteId"
|
|
@@ -5268,6 +5696,7 @@ paths:
|
|
|
5268
5696
|
post:
|
|
5269
5697
|
operationId: joinOrganization
|
|
5270
5698
|
summary: Join an organization
|
|
5699
|
+
x-gitbook-mcp: true
|
|
5271
5700
|
description: |
|
|
5272
5701
|
Join an organization if the user's verified email domain matches one of the organization's allowed email domains.
|
|
5273
5702
|
This endpoint allows existing users to join organizations they're eligible for based on their email domain.
|
|
@@ -5290,10 +5719,13 @@ paths:
|
|
|
5290
5719
|
get:
|
|
5291
5720
|
operationId: searchOrganizationContent
|
|
5292
5721
|
summary: Search content in an organization
|
|
5722
|
+
x-gitbook-mcp: true
|
|
5293
5723
|
tags:
|
|
5294
5724
|
- organizations
|
|
5295
5725
|
security:
|
|
5296
5726
|
- user: []
|
|
5727
|
+
- oauth:
|
|
5728
|
+
- organization:search
|
|
5297
5729
|
parameters:
|
|
5298
5730
|
- name: query
|
|
5299
5731
|
in: query
|
|
@@ -5323,11 +5755,15 @@ paths:
|
|
|
5323
5755
|
/orgs/{organizationId}/change-requests:
|
|
5324
5756
|
get:
|
|
5325
5757
|
operationId: listChangeRequestsForOrganization
|
|
5326
|
-
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.
|
|
5760
|
+
x-gitbook-mcp: true
|
|
5327
5761
|
tags:
|
|
5328
5762
|
- change-requests
|
|
5329
5763
|
security:
|
|
5330
5764
|
- user: []
|
|
5765
|
+
- oauth:
|
|
5766
|
+
- space:read
|
|
5331
5767
|
parameters:
|
|
5332
5768
|
- $ref: "#/components/parameters/listPage"
|
|
5333
5769
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -5411,12 +5847,16 @@ paths:
|
|
|
5411
5847
|
/orgs/{organizationId}/spaces:
|
|
5412
5848
|
get:
|
|
5413
5849
|
operationId: listSpacesInOrganizationById
|
|
5414
|
-
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.
|
|
5852
|
+
x-gitbook-mcp: true
|
|
5415
5853
|
tags:
|
|
5416
5854
|
- spaces
|
|
5417
5855
|
security:
|
|
5418
5856
|
- user: []
|
|
5419
5857
|
- integration-installation: []
|
|
5858
|
+
- oauth:
|
|
5859
|
+
- space:read
|
|
5420
5860
|
parameters:
|
|
5421
5861
|
- $ref: "#/components/parameters/organizationId"
|
|
5422
5862
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -5439,11 +5879,15 @@ paths:
|
|
|
5439
5879
|
$ref: "#/components/schemas/Space"
|
|
5440
5880
|
post:
|
|
5441
5881
|
operationId: createSpace
|
|
5442
|
-
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.
|
|
5884
|
+
x-gitbook-mcp: true
|
|
5443
5885
|
tags:
|
|
5444
5886
|
- spaces
|
|
5445
5887
|
security:
|
|
5446
5888
|
- user: []
|
|
5889
|
+
- oauth:
|
|
5890
|
+
- space:write
|
|
5447
5891
|
parameters:
|
|
5448
5892
|
- $ref: "#/components/parameters/organizationId"
|
|
5449
5893
|
requestBody:
|
|
@@ -5471,6 +5915,8 @@ paths:
|
|
|
5471
5915
|
- collections
|
|
5472
5916
|
security:
|
|
5473
5917
|
- user: []
|
|
5918
|
+
- oauth:
|
|
5919
|
+
- space:read
|
|
5474
5920
|
parameters:
|
|
5475
5921
|
- $ref: "#/components/parameters/organizationId"
|
|
5476
5922
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -5504,6 +5950,8 @@ paths:
|
|
|
5504
5950
|
- collections
|
|
5505
5951
|
security:
|
|
5506
5952
|
- user: []
|
|
5953
|
+
- oauth:
|
|
5954
|
+
- space:write
|
|
5507
5955
|
parameters:
|
|
5508
5956
|
- $ref: "#/components/parameters/organizationId"
|
|
5509
5957
|
requestBody:
|
|
@@ -5835,6 +6283,8 @@ paths:
|
|
|
5835
6283
|
- organization-ask
|
|
5836
6284
|
security:
|
|
5837
6285
|
- user: []
|
|
6286
|
+
- oauth:
|
|
6287
|
+
- organization:ask
|
|
5838
6288
|
parameters:
|
|
5839
6289
|
- $ref: "#/components/parameters/organizationId"
|
|
5840
6290
|
- $ref: "#/components/parameters/documentFormat"
|
|
@@ -5869,6 +6319,8 @@ paths:
|
|
|
5869
6319
|
- $ref: "#/components/parameters/organizationId"
|
|
5870
6320
|
security:
|
|
5871
6321
|
- user: []
|
|
6322
|
+
- oauth:
|
|
6323
|
+
- organization:ask
|
|
5872
6324
|
responses:
|
|
5873
6325
|
"200":
|
|
5874
6326
|
description: OK
|
|
@@ -5886,6 +6338,8 @@ paths:
|
|
|
5886
6338
|
- $ref: "#/components/parameters/organizationId"
|
|
5887
6339
|
security:
|
|
5888
6340
|
- user: []
|
|
6341
|
+
- oauth:
|
|
6342
|
+
- organization:ask
|
|
5889
6343
|
responses:
|
|
5890
6344
|
"200":
|
|
5891
6345
|
description: OK
|
|
@@ -5904,6 +6358,8 @@ paths:
|
|
|
5904
6358
|
- user: []
|
|
5905
6359
|
- integration: []
|
|
5906
6360
|
- integration-installation: []
|
|
6361
|
+
- oauth:
|
|
6362
|
+
- organization:ask
|
|
5907
6363
|
parameters:
|
|
5908
6364
|
- $ref: "#/components/parameters/organizationId"
|
|
5909
6365
|
- name: query
|
|
@@ -5928,10 +6384,13 @@ paths:
|
|
|
5928
6384
|
get:
|
|
5929
6385
|
operationId: listOpenAPISpecs
|
|
5930
6386
|
summary: List all OpenAPI spec
|
|
6387
|
+
x-gitbook-mcp: true
|
|
5931
6388
|
tags:
|
|
5932
6389
|
- openapi
|
|
5933
6390
|
security:
|
|
5934
6391
|
- user: []
|
|
6392
|
+
- oauth:
|
|
6393
|
+
- openapi:read
|
|
5935
6394
|
parameters:
|
|
5936
6395
|
- $ref: "#/components/parameters/organizationId"
|
|
5937
6396
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -5955,10 +6414,13 @@ paths:
|
|
|
5955
6414
|
post:
|
|
5956
6415
|
operationId: createOpenAPISpec
|
|
5957
6416
|
summary: Create an OpenAPI spec
|
|
6417
|
+
x-gitbook-mcp: true
|
|
5958
6418
|
tags:
|
|
5959
6419
|
- openapi
|
|
5960
6420
|
security:
|
|
5961
6421
|
- user: []
|
|
6422
|
+
- oauth:
|
|
6423
|
+
- openapi:write
|
|
5962
6424
|
parameters:
|
|
5963
6425
|
- $ref: "#/components/parameters/organizationId"
|
|
5964
6426
|
requestBody:
|
|
@@ -5988,10 +6450,13 @@ paths:
|
|
|
5988
6450
|
get:
|
|
5989
6451
|
operationId: getOpenAPISpecBySlug
|
|
5990
6452
|
summary: Get an OpenAPI spec by its slug
|
|
6453
|
+
x-gitbook-mcp: true
|
|
5991
6454
|
tags:
|
|
5992
6455
|
- openapi
|
|
5993
6456
|
security:
|
|
5994
6457
|
- user: []
|
|
6458
|
+
- oauth:
|
|
6459
|
+
- openapi:read
|
|
5995
6460
|
parameters:
|
|
5996
6461
|
- $ref: "#/components/parameters/organizationId"
|
|
5997
6462
|
- $ref: "#/components/parameters/openapiSpecSlug"
|
|
@@ -6008,10 +6473,13 @@ paths:
|
|
|
6008
6473
|
put:
|
|
6009
6474
|
operationId: createOrUpdateOpenAPISpecBySlug
|
|
6010
6475
|
summary: Create or update an OpenAPI spec
|
|
6476
|
+
x-gitbook-mcp: true
|
|
6011
6477
|
tags:
|
|
6012
6478
|
- openapi
|
|
6013
6479
|
security:
|
|
6014
6480
|
- user: []
|
|
6481
|
+
- oauth:
|
|
6482
|
+
- openapi:write
|
|
6015
6483
|
parameters:
|
|
6016
6484
|
- $ref: "#/components/parameters/organizationId"
|
|
6017
6485
|
- $ref: "#/components/parameters/openapiSpecSlug"
|
|
@@ -6044,10 +6512,13 @@ paths:
|
|
|
6044
6512
|
patch:
|
|
6045
6513
|
operationId: updateOpenAPISpecBySlug
|
|
6046
6514
|
summary: Update OpenAPI spec visibility
|
|
6515
|
+
x-gitbook-mcp: true
|
|
6047
6516
|
tags:
|
|
6048
6517
|
- openapi
|
|
6049
6518
|
security:
|
|
6050
6519
|
- user: []
|
|
6520
|
+
- oauth:
|
|
6521
|
+
- openapi:write
|
|
6051
6522
|
parameters:
|
|
6052
6523
|
- $ref: "#/components/parameters/organizationId"
|
|
6053
6524
|
- $ref: "#/components/parameters/openapiSpecSlug"
|
|
@@ -6081,6 +6552,8 @@ paths:
|
|
|
6081
6552
|
- openapi
|
|
6082
6553
|
security:
|
|
6083
6554
|
- user: []
|
|
6555
|
+
- oauth:
|
|
6556
|
+
- openapi:write
|
|
6084
6557
|
parameters:
|
|
6085
6558
|
- $ref: "#/components/parameters/organizationId"
|
|
6086
6559
|
- $ref: "#/components/parameters/openapiSpecSlug"
|
|
@@ -6093,10 +6566,13 @@ paths:
|
|
|
6093
6566
|
get:
|
|
6094
6567
|
operationId: listOpenAPISpecVersions
|
|
6095
6568
|
summary: List all OpenAPI spec versions
|
|
6569
|
+
x-gitbook-mcp: true
|
|
6096
6570
|
tags:
|
|
6097
6571
|
- openapi-versions
|
|
6098
6572
|
security:
|
|
6099
6573
|
- user: []
|
|
6574
|
+
- oauth:
|
|
6575
|
+
- openapi:read
|
|
6100
6576
|
parameters:
|
|
6101
6577
|
- $ref: "#/components/parameters/organizationId"
|
|
6102
6578
|
- $ref: "#/components/parameters/openapiSpecSlug"
|
|
@@ -6125,10 +6601,13 @@ paths:
|
|
|
6125
6601
|
get:
|
|
6126
6602
|
operationId: getLatestOpenAPISpecVersion
|
|
6127
6603
|
summary: Get the latest OpenAPI spec version
|
|
6604
|
+
x-gitbook-mcp: true
|
|
6128
6605
|
tags:
|
|
6129
6606
|
- openapi-versions
|
|
6130
6607
|
security:
|
|
6131
6608
|
- user: []
|
|
6609
|
+
- oauth:
|
|
6610
|
+
- openapi:read
|
|
6132
6611
|
parameters:
|
|
6133
6612
|
- $ref: "#/components/parameters/organizationId"
|
|
6134
6613
|
- $ref: "#/components/parameters/openapiSpecSlug"
|
|
@@ -6146,10 +6625,13 @@ paths:
|
|
|
6146
6625
|
get:
|
|
6147
6626
|
operationId: getLatestOpenAPISpecVersionContent
|
|
6148
6627
|
summary: Get the latest OpenAPI spec version content
|
|
6628
|
+
x-gitbook-mcp: true
|
|
6149
6629
|
tags:
|
|
6150
6630
|
- openapi-versions
|
|
6151
6631
|
security:
|
|
6152
6632
|
- user: []
|
|
6633
|
+
- oauth:
|
|
6634
|
+
- openapi:read
|
|
6153
6635
|
parameters:
|
|
6154
6636
|
- $ref: "#/components/parameters/organizationId"
|
|
6155
6637
|
- $ref: "#/components/parameters/openapiSpecSlug"
|
|
@@ -6167,10 +6649,13 @@ paths:
|
|
|
6167
6649
|
get:
|
|
6168
6650
|
operationId: getOpenAPISpecVersionById
|
|
6169
6651
|
summary: Get an OpenAPI spec version by its ID
|
|
6652
|
+
x-gitbook-mcp: true
|
|
6170
6653
|
tags:
|
|
6171
6654
|
- openapi-versions
|
|
6172
6655
|
security:
|
|
6173
6656
|
- user: []
|
|
6657
|
+
- oauth:
|
|
6658
|
+
- openapi:read
|
|
6174
6659
|
parameters:
|
|
6175
6660
|
- $ref: "#/components/parameters/organizationId"
|
|
6176
6661
|
- $ref: "#/components/parameters/openapiSpecSlug"
|
|
@@ -6189,10 +6674,13 @@ paths:
|
|
|
6189
6674
|
get:
|
|
6190
6675
|
operationId: getOpenAPISpecVersionContentById
|
|
6191
6676
|
summary: Get an OpenAPI spec version content by its ID
|
|
6677
|
+
x-gitbook-mcp: true
|
|
6192
6678
|
tags:
|
|
6193
6679
|
- openapi-versions
|
|
6194
6680
|
security:
|
|
6195
6681
|
- user: []
|
|
6682
|
+
- oauth:
|
|
6683
|
+
- openapi:read
|
|
6196
6684
|
parameters:
|
|
6197
6685
|
- $ref: "#/components/parameters/organizationId"
|
|
6198
6686
|
- $ref: "#/components/parameters/openapiSpecSlug"
|
|
@@ -6211,6 +6699,7 @@ paths:
|
|
|
6211
6699
|
get:
|
|
6212
6700
|
operationId: getOrganizationAgentInstructions
|
|
6213
6701
|
summary: Get Docs agent instructions for an organization
|
|
6702
|
+
x-gitbook-mcp: true
|
|
6214
6703
|
tags:
|
|
6215
6704
|
- organizations
|
|
6216
6705
|
- agents
|
|
@@ -6228,6 +6717,7 @@ paths:
|
|
|
6228
6717
|
put:
|
|
6229
6718
|
operationId: updateOrganizationAgentInstructions
|
|
6230
6719
|
summary: Update Docs agent instructions for an organization
|
|
6720
|
+
x-gitbook-mcp: true
|
|
6231
6721
|
tags:
|
|
6232
6722
|
- organizations
|
|
6233
6723
|
- agents
|
|
@@ -6683,6 +7173,8 @@ paths:
|
|
|
6683
7173
|
- imports
|
|
6684
7174
|
security:
|
|
6685
7175
|
- user: []
|
|
7176
|
+
- oauth:
|
|
7177
|
+
- space:write
|
|
6686
7178
|
parameters:
|
|
6687
7179
|
- $ref: "#/components/parameters/organizationId"
|
|
6688
7180
|
requestBody:
|
|
@@ -6739,12 +7231,16 @@ paths:
|
|
|
6739
7231
|
/orgs/{organizationId}/sites:
|
|
6740
7232
|
get:
|
|
6741
7233
|
operationId: listSites
|
|
6742
|
-
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.
|
|
7236
|
+
x-gitbook-mcp: true
|
|
6743
7237
|
tags:
|
|
6744
7238
|
- sites
|
|
6745
7239
|
- critical
|
|
6746
7240
|
security:
|
|
6747
7241
|
- user: []
|
|
7242
|
+
- oauth:
|
|
7243
|
+
- site:read
|
|
6748
7244
|
parameters:
|
|
6749
7245
|
- $ref: "#/components/parameters/organizationId"
|
|
6750
7246
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -6793,11 +7289,15 @@ paths:
|
|
|
6793
7289
|
$ref: "#/components/schemas/Site"
|
|
6794
7290
|
post:
|
|
6795
7291
|
operationId: createSite
|
|
6796
|
-
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.
|
|
7294
|
+
x-gitbook-mcp: true
|
|
6797
7295
|
tags:
|
|
6798
7296
|
- sites
|
|
6799
7297
|
security:
|
|
6800
7298
|
- user: []
|
|
7299
|
+
- oauth:
|
|
7300
|
+
- site:write
|
|
6801
7301
|
parameters:
|
|
6802
7302
|
- $ref: "#/components/parameters/organizationId"
|
|
6803
7303
|
requestBody:
|
|
@@ -6807,7 +7307,10 @@ paths:
|
|
|
6807
7307
|
type: object
|
|
6808
7308
|
properties:
|
|
6809
7309
|
type:
|
|
6810
|
-
description:
|
|
7310
|
+
description: |-
|
|
7311
|
+
The type of the site. Defaults to:
|
|
7312
|
+
- Sponsored for community organizations
|
|
7313
|
+
- Ultimate for all other organizations
|
|
6811
7314
|
$ref: "#/components/schemas/SiteType"
|
|
6812
7315
|
title:
|
|
6813
7316
|
$ref: "#/components/schemas/SiteTitle"
|
|
@@ -6833,7 +7336,9 @@ paths:
|
|
|
6833
7336
|
/orgs/{organizationId}/sites/{siteId}:
|
|
6834
7337
|
get:
|
|
6835
7338
|
operationId: getSiteById
|
|
6836
|
-
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.
|
|
7341
|
+
x-gitbook-mcp: true
|
|
6837
7342
|
tags:
|
|
6838
7343
|
- sites
|
|
6839
7344
|
parameters:
|
|
@@ -6851,11 +7356,15 @@ paths:
|
|
|
6851
7356
|
$ref: "#/components/responses/NotFoundError"
|
|
6852
7357
|
patch:
|
|
6853
7358
|
operationId: updateSiteById
|
|
6854
|
-
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.
|
|
7361
|
+
x-gitbook-mcp: true
|
|
6855
7362
|
tags:
|
|
6856
7363
|
- sites
|
|
6857
7364
|
security:
|
|
6858
7365
|
- user: []
|
|
7366
|
+
- oauth:
|
|
7367
|
+
- site:write
|
|
6859
7368
|
parameters:
|
|
6860
7369
|
- $ref: "#/components/parameters/organizationId"
|
|
6861
7370
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -6891,6 +7400,12 @@ paths:
|
|
|
6891
7400
|
oneOf:
|
|
6892
7401
|
- $ref: "#/components/schemas/SiteProxyOrigin"
|
|
6893
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"
|
|
6894
7409
|
responses:
|
|
6895
7410
|
"200":
|
|
6896
7411
|
description: OK
|
|
@@ -6905,6 +7420,8 @@ paths:
|
|
|
6905
7420
|
- sites
|
|
6906
7421
|
security:
|
|
6907
7422
|
- user: []
|
|
7423
|
+
- oauth:
|
|
7424
|
+
- site:write
|
|
6908
7425
|
parameters:
|
|
6909
7426
|
- $ref: "#/components/parameters/organizationId"
|
|
6910
7427
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -6947,13 +7464,17 @@ paths:
|
|
|
6947
7464
|
/orgs/{organizationId}/sites/{siteId}/adaptive-schema:
|
|
6948
7465
|
get:
|
|
6949
7466
|
operationId: getSiteAdaptiveSchema
|
|
6950
|
-
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.
|
|
7469
|
+
x-gitbook-mcp: true
|
|
6951
7470
|
tags:
|
|
6952
7471
|
- sites
|
|
6953
7472
|
security:
|
|
6954
7473
|
- user: []
|
|
6955
7474
|
- integration: []
|
|
6956
7475
|
- integration-installation: []
|
|
7476
|
+
- oauth:
|
|
7477
|
+
- site:read
|
|
6957
7478
|
parameters:
|
|
6958
7479
|
- $ref: "#/components/parameters/organizationId"
|
|
6959
7480
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -6971,13 +7492,17 @@ paths:
|
|
|
6971
7492
|
$ref: "#/components/responses/UnexpectedError"
|
|
6972
7493
|
put:
|
|
6973
7494
|
operationId: updateSiteAdaptiveSchema
|
|
6974
|
-
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.
|
|
7497
|
+
x-gitbook-mcp: true
|
|
6975
7498
|
tags:
|
|
6976
7499
|
- sites
|
|
6977
7500
|
security:
|
|
6978
7501
|
- user: []
|
|
6979
7502
|
- integration: []
|
|
6980
7503
|
- integration-installation: []
|
|
7504
|
+
- oauth:
|
|
7505
|
+
- site:write
|
|
6981
7506
|
parameters:
|
|
6982
7507
|
- $ref: "#/components/parameters/organizationId"
|
|
6983
7508
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7007,7 +7532,9 @@ paths:
|
|
|
7007
7532
|
/orgs/{organizationId}/sites/{siteId}/adaptive-schema/template-conditions:
|
|
7008
7533
|
get:
|
|
7009
7534
|
operationId: listSiteAdaptiveTemplateConditions
|
|
7010
|
-
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.
|
|
7537
|
+
x-gitbook-mcp: true
|
|
7011
7538
|
tags:
|
|
7012
7539
|
- sites
|
|
7013
7540
|
parameters:
|
|
@@ -7030,12 +7557,15 @@ paths:
|
|
|
7030
7557
|
/orgs/{organizationId}/sites/{siteId}/published:
|
|
7031
7558
|
get:
|
|
7032
7559
|
operationId: getPublishedContentSite
|
|
7033
|
-
summary: Get
|
|
7034
|
-
description:
|
|
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.
|
|
7562
|
+
x-gitbook-mcp: true
|
|
7035
7563
|
tags:
|
|
7036
7564
|
- sites
|
|
7037
7565
|
security:
|
|
7038
7566
|
- user: []
|
|
7567
|
+
- oauth:
|
|
7568
|
+
- site:read
|
|
7039
7569
|
parameters:
|
|
7040
7570
|
- $ref: "#/components/parameters/organizationId"
|
|
7041
7571
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7053,11 +7583,15 @@ paths:
|
|
|
7053
7583
|
/orgs/{organizationId}/sites/{siteId}/publish:
|
|
7054
7584
|
post:
|
|
7055
7585
|
operationId: publishSite
|
|
7056
|
-
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.
|
|
7588
|
+
x-gitbook-mcp: true
|
|
7057
7589
|
tags:
|
|
7058
7590
|
- sites
|
|
7059
7591
|
security:
|
|
7060
7592
|
- user: []
|
|
7593
|
+
- oauth:
|
|
7594
|
+
- site:publish
|
|
7061
7595
|
parameters:
|
|
7062
7596
|
- $ref: "#/components/parameters/organizationId"
|
|
7063
7597
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7085,11 +7619,15 @@ paths:
|
|
|
7085
7619
|
/orgs/{organizationId}/sites/{siteId}/unpublish:
|
|
7086
7620
|
post:
|
|
7087
7621
|
operationId: unpublishSite
|
|
7088
|
-
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.
|
|
7624
|
+
x-gitbook-mcp: true
|
|
7089
7625
|
tags:
|
|
7090
7626
|
- sites
|
|
7091
7627
|
security:
|
|
7092
7628
|
- user: []
|
|
7629
|
+
- oauth:
|
|
7630
|
+
- site:publish
|
|
7093
7631
|
parameters:
|
|
7094
7632
|
- $ref: "#/components/parameters/organizationId"
|
|
7095
7633
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7103,11 +7641,15 @@ paths:
|
|
|
7103
7641
|
/orgs/{organizationId}/sites/{siteId}/share-links:
|
|
7104
7642
|
get:
|
|
7105
7643
|
operationId: listSiteShareLinks
|
|
7106
|
-
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.
|
|
7646
|
+
x-gitbook-mcp: true
|
|
7107
7647
|
tags:
|
|
7108
7648
|
- site-share-links
|
|
7109
7649
|
security:
|
|
7110
7650
|
- user: []
|
|
7651
|
+
- oauth:
|
|
7652
|
+
- site:auth:read
|
|
7111
7653
|
parameters:
|
|
7112
7654
|
- $ref: "#/components/parameters/organizationId"
|
|
7113
7655
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7136,11 +7678,15 @@ paths:
|
|
|
7136
7678
|
$ref: "#/components/schemas/ShareLink"
|
|
7137
7679
|
post:
|
|
7138
7680
|
operationId: createSiteShareLink
|
|
7139
|
-
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.
|
|
7683
|
+
x-gitbook-mcp: true
|
|
7140
7684
|
tags:
|
|
7141
7685
|
- site-share-links
|
|
7142
7686
|
security:
|
|
7143
7687
|
- user: []
|
|
7688
|
+
- oauth:
|
|
7689
|
+
- site:auth:write
|
|
7144
7690
|
parameters:
|
|
7145
7691
|
- $ref: "#/components/parameters/organizationId"
|
|
7146
7692
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7170,11 +7716,15 @@ paths:
|
|
|
7170
7716
|
/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}:
|
|
7171
7717
|
patch:
|
|
7172
7718
|
operationId: updateSiteShareLinkById
|
|
7173
|
-
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.
|
|
7721
|
+
x-gitbook-mcp: true
|
|
7174
7722
|
tags:
|
|
7175
7723
|
- site-share-links
|
|
7176
7724
|
security:
|
|
7177
7725
|
- user: []
|
|
7726
|
+
- oauth:
|
|
7727
|
+
- site:auth:write
|
|
7178
7728
|
parameters:
|
|
7179
7729
|
- $ref: "#/components/parameters/organizationId"
|
|
7180
7730
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7205,6 +7755,8 @@ paths:
|
|
|
7205
7755
|
- site-share-links
|
|
7206
7756
|
security:
|
|
7207
7757
|
- user: []
|
|
7758
|
+
- oauth:
|
|
7759
|
+
- site:auth:write
|
|
7208
7760
|
parameters:
|
|
7209
7761
|
- $ref: "#/components/parameters/organizationId"
|
|
7210
7762
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7217,12 +7769,15 @@ paths:
|
|
|
7217
7769
|
/orgs/{organizationId}/sites/{siteId}/structure:
|
|
7218
7770
|
get:
|
|
7219
7771
|
operationId: getSiteStructure
|
|
7220
|
-
summary: Get a site
|
|
7221
|
-
description:
|
|
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.
|
|
7774
|
+
x-gitbook-mcp: true
|
|
7222
7775
|
tags:
|
|
7223
7776
|
- site-structure
|
|
7224
7777
|
security:
|
|
7225
7778
|
- user: []
|
|
7779
|
+
- oauth:
|
|
7780
|
+
- site:read
|
|
7226
7781
|
parameters:
|
|
7227
7782
|
- $ref: "#/components/parameters/organizationId"
|
|
7228
7783
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7240,11 +7795,15 @@ paths:
|
|
|
7240
7795
|
/orgs/{organizationId}/sites/{siteId}/structure/sort:
|
|
7241
7796
|
patch:
|
|
7242
7797
|
operationId: sortSiteStructure
|
|
7243
|
-
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.
|
|
7800
|
+
x-gitbook-mcp: true
|
|
7244
7801
|
tags:
|
|
7245
7802
|
- sites
|
|
7246
7803
|
security:
|
|
7247
7804
|
- user: []
|
|
7805
|
+
- oauth:
|
|
7806
|
+
- site:write
|
|
7248
7807
|
parameters:
|
|
7249
7808
|
- $ref: "#/components/parameters/organizationId"
|
|
7250
7809
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7281,11 +7840,15 @@ paths:
|
|
|
7281
7840
|
/orgs/{organizationId}/sites/{siteId}/publishing/auth:
|
|
7282
7841
|
get:
|
|
7283
7842
|
operationId: getSitePublishingAuthById
|
|
7284
|
-
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.
|
|
7845
|
+
x-gitbook-mcp: true
|
|
7285
7846
|
tags:
|
|
7286
7847
|
- site-publishing-auth
|
|
7287
7848
|
security:
|
|
7288
7849
|
- user: []
|
|
7850
|
+
- oauth:
|
|
7851
|
+
- site:auth:read
|
|
7289
7852
|
parameters:
|
|
7290
7853
|
- $ref: "#/components/parameters/organizationId"
|
|
7291
7854
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7300,11 +7863,15 @@ paths:
|
|
|
7300
7863
|
$ref: "#/components/responses/BadRequestError"
|
|
7301
7864
|
patch:
|
|
7302
7865
|
operationId: updateSitePublishingAuthById
|
|
7303
|
-
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.
|
|
7868
|
+
x-gitbook-mcp: true
|
|
7304
7869
|
tags:
|
|
7305
7870
|
- site-publishing-auth
|
|
7306
7871
|
security:
|
|
7307
7872
|
- user: []
|
|
7873
|
+
- oauth:
|
|
7874
|
+
- site:auth:write
|
|
7308
7875
|
parameters:
|
|
7309
7876
|
- $ref: "#/components/parameters/organizationId"
|
|
7310
7877
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7326,12 +7893,15 @@ paths:
|
|
|
7326
7893
|
/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate:
|
|
7327
7894
|
post:
|
|
7328
7895
|
operationId: regenerateSitePublishingAuthById
|
|
7329
|
-
summary: Regenerate a site
|
|
7330
|
-
description:
|
|
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.
|
|
7898
|
+
x-gitbook-mcp: true
|
|
7331
7899
|
tags:
|
|
7332
7900
|
- site-publishing-auth
|
|
7333
7901
|
security:
|
|
7334
7902
|
- user: []
|
|
7903
|
+
- oauth:
|
|
7904
|
+
- site:auth:write
|
|
7335
7905
|
parameters:
|
|
7336
7906
|
- $ref: "#/components/parameters/organizationId"
|
|
7337
7907
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7347,12 +7917,15 @@ paths:
|
|
|
7347
7917
|
/orgs/{organizationId}/sites/{siteId}/publishing/preview:
|
|
7348
7918
|
get:
|
|
7349
7919
|
operationId: getSitePublishingPreviewById
|
|
7350
|
-
summary:
|
|
7351
|
-
description:
|
|
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.
|
|
7922
|
+
x-gitbook-mcp: true
|
|
7352
7923
|
tags:
|
|
7353
7924
|
- site-preview
|
|
7354
7925
|
security:
|
|
7355
7926
|
- user: []
|
|
7927
|
+
- oauth:
|
|
7928
|
+
- site:read
|
|
7356
7929
|
parameters:
|
|
7357
7930
|
- $ref: "#/components/parameters/organizationId"
|
|
7358
7931
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7394,11 +7967,15 @@ paths:
|
|
|
7394
7967
|
/orgs/{organizationId}/sites/{siteId}/customization:
|
|
7395
7968
|
get:
|
|
7396
7969
|
operationId: getSiteCustomizationById
|
|
7397
|
-
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.
|
|
7972
|
+
x-gitbook-mcp: true
|
|
7398
7973
|
tags:
|
|
7399
7974
|
- site-customization
|
|
7400
7975
|
security:
|
|
7401
7976
|
- user: []
|
|
7977
|
+
- oauth:
|
|
7978
|
+
- site:read
|
|
7402
7979
|
parameters:
|
|
7403
7980
|
- $ref: "#/components/parameters/organizationId"
|
|
7404
7981
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7414,11 +7991,15 @@ paths:
|
|
|
7414
7991
|
$ref: "#/components/responses/BadRequestError"
|
|
7415
7992
|
put:
|
|
7416
7993
|
operationId: updateSiteCustomizationById
|
|
7417
|
-
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.
|
|
7996
|
+
x-gitbook-mcp: true
|
|
7418
7997
|
tags:
|
|
7419
7998
|
- site-customization
|
|
7420
7999
|
security:
|
|
7421
8000
|
- user: []
|
|
8001
|
+
- oauth:
|
|
8002
|
+
- site:write
|
|
7422
8003
|
parameters:
|
|
7423
8004
|
- $ref: "#/components/parameters/organizationId"
|
|
7424
8005
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7440,12 +8021,16 @@ paths:
|
|
|
7440
8021
|
/orgs/{organizationId}/sites/{siteId}/integration-scripts:
|
|
7441
8022
|
get:
|
|
7442
8023
|
operationId: listSiteIntegrationScripts
|
|
7443
|
-
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.
|
|
8026
|
+
x-gitbook-mcp: true
|
|
7444
8027
|
tags:
|
|
7445
8028
|
- integrations
|
|
7446
8029
|
- sites
|
|
7447
8030
|
security:
|
|
7448
8031
|
- user: []
|
|
8032
|
+
- oauth:
|
|
8033
|
+
- site:read
|
|
7449
8034
|
parameters:
|
|
7450
8035
|
- $ref: "#/components/parameters/organizationId"
|
|
7451
8036
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7463,12 +8048,16 @@ paths:
|
|
|
7463
8048
|
/orgs/{organizationId}/sites/{siteId}/integrations:
|
|
7464
8049
|
get:
|
|
7465
8050
|
operationId: listSiteIntegrations
|
|
7466
|
-
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.
|
|
8053
|
+
x-gitbook-mcp: true
|
|
7467
8054
|
tags:
|
|
7468
8055
|
- integrations
|
|
7469
8056
|
- sites
|
|
7470
8057
|
security:
|
|
7471
8058
|
- user: []
|
|
8059
|
+
- oauth:
|
|
8060
|
+
- site:read
|
|
7472
8061
|
parameters:
|
|
7473
8062
|
- $ref: "#/components/parameters/organizationId"
|
|
7474
8063
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7492,11 +8081,15 @@ paths:
|
|
|
7492
8081
|
/orgs/{organizationId}/sites/{siteId}/site-spaces:
|
|
7493
8082
|
post:
|
|
7494
8083
|
operationId: addSpaceToSite
|
|
7495
|
-
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.
|
|
8086
|
+
x-gitbook-mcp: true
|
|
7496
8087
|
tags:
|
|
7497
8088
|
- site-spaces
|
|
7498
8089
|
security:
|
|
7499
8090
|
- user: []
|
|
8091
|
+
- oauth:
|
|
8092
|
+
- site:write
|
|
7500
8093
|
parameters:
|
|
7501
8094
|
- $ref: "#/components/parameters/organizationId"
|
|
7502
8095
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7533,12 +8126,16 @@ paths:
|
|
|
7533
8126
|
$ref: "#/components/schemas/SiteSpace"
|
|
7534
8127
|
get:
|
|
7535
8128
|
operationId: listSiteSpaces
|
|
7536
|
-
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.
|
|
8131
|
+
x-gitbook-mcp: true
|
|
7537
8132
|
tags:
|
|
7538
8133
|
- site-spaces
|
|
7539
8134
|
- critical
|
|
7540
8135
|
security:
|
|
7541
8136
|
- user: []
|
|
8137
|
+
- oauth:
|
|
8138
|
+
- site:read
|
|
7542
8139
|
parameters:
|
|
7543
8140
|
- $ref: "#/components/parameters/organizationId"
|
|
7544
8141
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7569,11 +8166,15 @@ paths:
|
|
|
7569
8166
|
/orgs/{organizationId}/sites/{siteId}/section-groups:
|
|
7570
8167
|
get:
|
|
7571
8168
|
operationId: listSiteSectionGroups
|
|
7572
|
-
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.
|
|
8171
|
+
x-gitbook-mcp: true
|
|
7573
8172
|
tags:
|
|
7574
8173
|
- site-section-groups
|
|
7575
8174
|
security:
|
|
7576
8175
|
- user: []
|
|
8176
|
+
- oauth:
|
|
8177
|
+
- site:read
|
|
7577
8178
|
parameters:
|
|
7578
8179
|
- $ref: "#/components/parameters/organizationId"
|
|
7579
8180
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7597,11 +8198,15 @@ paths:
|
|
|
7597
8198
|
$ref: "#/components/schemas/SiteSectionGroup"
|
|
7598
8199
|
post:
|
|
7599
8200
|
operationId: addSectionGroupToSite
|
|
7600
|
-
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.
|
|
8203
|
+
x-gitbook-mcp: true
|
|
7601
8204
|
tags:
|
|
7602
8205
|
- site-section-groups
|
|
7603
8206
|
security:
|
|
7604
8207
|
- user: []
|
|
8208
|
+
- oauth:
|
|
8209
|
+
- site:write
|
|
7605
8210
|
parameters:
|
|
7606
8211
|
- $ref: "#/components/parameters/organizationId"
|
|
7607
8212
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7646,11 +8251,15 @@ paths:
|
|
|
7646
8251
|
/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}:
|
|
7647
8252
|
patch:
|
|
7648
8253
|
operationId: updateSiteSectionGroupById
|
|
7649
|
-
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.
|
|
8256
|
+
x-gitbook-mcp: true
|
|
7650
8257
|
tags:
|
|
7651
8258
|
- site-section-groups
|
|
7652
8259
|
security:
|
|
7653
8260
|
- user: []
|
|
8261
|
+
- oauth:
|
|
8262
|
+
- site:write
|
|
7654
8263
|
parameters:
|
|
7655
8264
|
- $ref: "#/components/parameters/organizationId"
|
|
7656
8265
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7687,6 +8296,8 @@ paths:
|
|
|
7687
8296
|
- site-section-groups
|
|
7688
8297
|
security:
|
|
7689
8298
|
- user: []
|
|
8299
|
+
- oauth:
|
|
8300
|
+
- site:write
|
|
7690
8301
|
parameters:
|
|
7691
8302
|
- $ref: "#/components/parameters/organizationId"
|
|
7692
8303
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7699,11 +8310,15 @@ paths:
|
|
|
7699
8310
|
/orgs/{organizationId}/sites/{siteId}/sections:
|
|
7700
8311
|
post:
|
|
7701
8312
|
operationId: addSectionToSite
|
|
7702
|
-
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.
|
|
8315
|
+
x-gitbook-mcp: true
|
|
7703
8316
|
tags:
|
|
7704
8317
|
- site-sections
|
|
7705
8318
|
security:
|
|
7706
8319
|
- user: []
|
|
8320
|
+
- oauth:
|
|
8321
|
+
- site:write
|
|
7707
8322
|
parameters:
|
|
7708
8323
|
- $ref: "#/components/parameters/organizationId"
|
|
7709
8324
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7747,11 +8362,15 @@ paths:
|
|
|
7747
8362
|
$ref: "#/components/schemas/SiteSection"
|
|
7748
8363
|
get:
|
|
7749
8364
|
operationId: listSiteSections
|
|
7750
|
-
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.
|
|
8367
|
+
x-gitbook-mcp: true
|
|
7751
8368
|
tags:
|
|
7752
8369
|
- site-sections
|
|
7753
8370
|
security:
|
|
7754
8371
|
- user: []
|
|
8372
|
+
- oauth:
|
|
8373
|
+
- site:read
|
|
7755
8374
|
parameters:
|
|
7756
8375
|
- $ref: "#/components/parameters/organizationId"
|
|
7757
8376
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7777,11 +8396,15 @@ paths:
|
|
|
7777
8396
|
/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}:
|
|
7778
8397
|
patch:
|
|
7779
8398
|
operationId: updateSiteSectionById
|
|
7780
|
-
summary: Update a
|
|
8399
|
+
summary: Update a navigation section in a site
|
|
8400
|
+
description: Updates a navigation section's configuration in the site structure.
|
|
8401
|
+
x-gitbook-mcp: true
|
|
7781
8402
|
tags:
|
|
7782
8403
|
- site-sections
|
|
7783
8404
|
security:
|
|
7784
8405
|
- user: []
|
|
8406
|
+
- oauth:
|
|
8407
|
+
- site:write
|
|
7785
8408
|
parameters:
|
|
7786
8409
|
- $ref: "#/components/parameters/organizationId"
|
|
7787
8410
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7839,6 +8462,8 @@ paths:
|
|
|
7839
8462
|
- site-sections
|
|
7840
8463
|
security:
|
|
7841
8464
|
- user: []
|
|
8465
|
+
- oauth:
|
|
8466
|
+
- site:write
|
|
7842
8467
|
parameters:
|
|
7843
8468
|
- $ref: "#/components/parameters/organizationId"
|
|
7844
8469
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7851,11 +8476,15 @@ paths:
|
|
|
7851
8476
|
/orgs/{organizationId}/sites/{siteId}/search:
|
|
7852
8477
|
post:
|
|
7853
8478
|
operationId: searchSiteContent
|
|
7854
|
-
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.
|
|
8481
|
+
x-gitbook-mcp: true
|
|
7855
8482
|
tags:
|
|
7856
8483
|
- sites
|
|
7857
8484
|
security:
|
|
7858
8485
|
- user: []
|
|
8486
|
+
- oauth:
|
|
8487
|
+
- site:search
|
|
7859
8488
|
parameters:
|
|
7860
8489
|
- $ref: "#/components/parameters/organizationId"
|
|
7861
8490
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7949,6 +8578,8 @@ paths:
|
|
|
7949
8578
|
- site-ask
|
|
7950
8579
|
security:
|
|
7951
8580
|
- user: []
|
|
8581
|
+
- oauth:
|
|
8582
|
+
- site:ask
|
|
7952
8583
|
parameters:
|
|
7953
8584
|
- $ref: "#/components/parameters/organizationId"
|
|
7954
8585
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -7998,6 +8629,8 @@ paths:
|
|
|
7998
8629
|
- site-ask
|
|
7999
8630
|
security:
|
|
8000
8631
|
- user: []
|
|
8632
|
+
- oauth:
|
|
8633
|
+
- site:ask
|
|
8001
8634
|
parameters:
|
|
8002
8635
|
- $ref: "#/components/parameters/organizationId"
|
|
8003
8636
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8027,6 +8660,8 @@ paths:
|
|
|
8027
8660
|
- site-context
|
|
8028
8661
|
security:
|
|
8029
8662
|
- user: []
|
|
8663
|
+
- oauth:
|
|
8664
|
+
- site:read
|
|
8030
8665
|
parameters:
|
|
8031
8666
|
- $ref: "#/components/parameters/organizationId"
|
|
8032
8667
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8075,6 +8710,8 @@ paths:
|
|
|
8075
8710
|
- site-context
|
|
8076
8711
|
security:
|
|
8077
8712
|
- user: []
|
|
8713
|
+
- oauth:
|
|
8714
|
+
- site:write
|
|
8078
8715
|
parameters:
|
|
8079
8716
|
- $ref: "#/components/parameters/organizationId"
|
|
8080
8717
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8097,6 +8734,8 @@ paths:
|
|
|
8097
8734
|
- site-context
|
|
8098
8735
|
security:
|
|
8099
8736
|
- user: []
|
|
8737
|
+
- oauth:
|
|
8738
|
+
- site:read
|
|
8100
8739
|
parameters:
|
|
8101
8740
|
- $ref: "#/components/parameters/organizationId"
|
|
8102
8741
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8116,6 +8755,8 @@ paths:
|
|
|
8116
8755
|
- site-context
|
|
8117
8756
|
security:
|
|
8118
8757
|
- user: []
|
|
8758
|
+
- oauth:
|
|
8759
|
+
- site:read
|
|
8119
8760
|
parameters:
|
|
8120
8761
|
- $ref: "#/components/parameters/organizationId"
|
|
8121
8762
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8154,6 +8795,8 @@ paths:
|
|
|
8154
8795
|
- site-context
|
|
8155
8796
|
security:
|
|
8156
8797
|
- user: []
|
|
8798
|
+
- oauth:
|
|
8799
|
+
- site:write
|
|
8157
8800
|
parameters:
|
|
8158
8801
|
- $ref: "#/components/parameters/organizationId"
|
|
8159
8802
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8184,6 +8827,8 @@ paths:
|
|
|
8184
8827
|
- site-context
|
|
8185
8828
|
security:
|
|
8186
8829
|
- user: []
|
|
8830
|
+
- oauth:
|
|
8831
|
+
- site:read
|
|
8187
8832
|
parameters:
|
|
8188
8833
|
- $ref: "#/components/parameters/organizationId"
|
|
8189
8834
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8203,6 +8848,8 @@ paths:
|
|
|
8203
8848
|
- site-context
|
|
8204
8849
|
security:
|
|
8205
8850
|
- user: []
|
|
8851
|
+
- oauth:
|
|
8852
|
+
- site:read
|
|
8206
8853
|
parameters:
|
|
8207
8854
|
- $ref: "#/components/parameters/organizationId"
|
|
8208
8855
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8257,6 +8904,8 @@ paths:
|
|
|
8257
8904
|
- site-context
|
|
8258
8905
|
security:
|
|
8259
8906
|
- user: []
|
|
8907
|
+
- oauth:
|
|
8908
|
+
- site:read
|
|
8260
8909
|
parameters:
|
|
8261
8910
|
- $ref: "#/components/parameters/organizationId"
|
|
8262
8911
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8275,6 +8924,8 @@ paths:
|
|
|
8275
8924
|
- site-context
|
|
8276
8925
|
security:
|
|
8277
8926
|
- user: []
|
|
8927
|
+
- oauth:
|
|
8928
|
+
- site:write
|
|
8278
8929
|
parameters:
|
|
8279
8930
|
- $ref: "#/components/parameters/organizationId"
|
|
8280
8931
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8287,10 +8938,7 @@ paths:
|
|
|
8287
8938
|
type: object
|
|
8288
8939
|
properties:
|
|
8289
8940
|
status:
|
|
8290
|
-
|
|
8291
|
-
enum:
|
|
8292
|
-
- open
|
|
8293
|
-
- canceled
|
|
8941
|
+
$ref: "#/components/schemas/SiteFindingStatus"
|
|
8294
8942
|
required:
|
|
8295
8943
|
- status
|
|
8296
8944
|
responses:
|
|
@@ -8308,6 +8956,8 @@ paths:
|
|
|
8308
8956
|
- site-context
|
|
8309
8957
|
security:
|
|
8310
8958
|
- user: []
|
|
8959
|
+
- oauth:
|
|
8960
|
+
- site:read
|
|
8311
8961
|
parameters:
|
|
8312
8962
|
- $ref: "#/components/parameters/listPage"
|
|
8313
8963
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -8337,6 +8987,8 @@ paths:
|
|
|
8337
8987
|
- site-context
|
|
8338
8988
|
security:
|
|
8339
8989
|
- user: []
|
|
8990
|
+
- oauth:
|
|
8991
|
+
- site:write
|
|
8340
8992
|
parameters:
|
|
8341
8993
|
- $ref: "#/components/parameters/organizationId"
|
|
8342
8994
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8352,6 +9004,8 @@ paths:
|
|
|
8352
9004
|
- site-context
|
|
8353
9005
|
security:
|
|
8354
9006
|
- user: []
|
|
9007
|
+
- oauth:
|
|
9008
|
+
- site:read
|
|
8355
9009
|
parameters:
|
|
8356
9010
|
- $ref: "#/components/parameters/listPage"
|
|
8357
9011
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -8382,6 +9036,8 @@ paths:
|
|
|
8382
9036
|
- site-context
|
|
8383
9037
|
security:
|
|
8384
9038
|
- user: []
|
|
9039
|
+
- oauth:
|
|
9040
|
+
- site:read
|
|
8385
9041
|
parameters:
|
|
8386
9042
|
- $ref: "#/components/parameters/listPage"
|
|
8387
9043
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -8412,6 +9068,8 @@ paths:
|
|
|
8412
9068
|
- site-context
|
|
8413
9069
|
security:
|
|
8414
9070
|
- user: []
|
|
9071
|
+
- oauth:
|
|
9072
|
+
- site:read
|
|
8415
9073
|
parameters:
|
|
8416
9074
|
- $ref: "#/components/parameters/listPage"
|
|
8417
9075
|
- $ref: "#/components/parameters/listLimit"
|
|
@@ -8442,6 +9100,8 @@ paths:
|
|
|
8442
9100
|
- site-context
|
|
8443
9101
|
security:
|
|
8444
9102
|
- user: []
|
|
9103
|
+
- oauth:
|
|
9104
|
+
- site:read
|
|
8445
9105
|
parameters:
|
|
8446
9106
|
- $ref: "#/components/parameters/organizationId"
|
|
8447
9107
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8470,6 +9130,8 @@ paths:
|
|
|
8470
9130
|
- site-context
|
|
8471
9131
|
security:
|
|
8472
9132
|
- user: []
|
|
9133
|
+
- oauth:
|
|
9134
|
+
- site:write
|
|
8473
9135
|
parameters:
|
|
8474
9136
|
- $ref: "#/components/parameters/organizationId"
|
|
8475
9137
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8484,6 +9146,8 @@ paths:
|
|
|
8484
9146
|
properties:
|
|
8485
9147
|
usageSettings:
|
|
8486
9148
|
$ref: "#/components/schemas/ContextUsageSettings"
|
|
9149
|
+
filter:
|
|
9150
|
+
$ref: "#/components/schemas/ContextConnectionFilter"
|
|
8487
9151
|
responses:
|
|
8488
9152
|
"201":
|
|
8489
9153
|
description: Created connection
|
|
@@ -8499,6 +9163,8 @@ paths:
|
|
|
8499
9163
|
- site-context
|
|
8500
9164
|
security:
|
|
8501
9165
|
- user: []
|
|
9166
|
+
- oauth:
|
|
9167
|
+
- site:read
|
|
8502
9168
|
parameters:
|
|
8503
9169
|
- $ref: "#/components/parameters/organizationId"
|
|
8504
9170
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8517,6 +9183,8 @@ paths:
|
|
|
8517
9183
|
- site-context
|
|
8518
9184
|
security:
|
|
8519
9185
|
- user: []
|
|
9186
|
+
- oauth:
|
|
9187
|
+
- site:write
|
|
8520
9188
|
parameters:
|
|
8521
9189
|
- $ref: "#/components/parameters/organizationId"
|
|
8522
9190
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8534,6 +9202,8 @@ paths:
|
|
|
8534
9202
|
$ref: "#/components/schemas/ContextUsageSettings"
|
|
8535
9203
|
label:
|
|
8536
9204
|
$ref: "#/components/schemas/ContextConnectionLabel"
|
|
9205
|
+
filter:
|
|
9206
|
+
$ref: "#/components/schemas/ContextConnectionFilter"
|
|
8537
9207
|
responses:
|
|
8538
9208
|
"200":
|
|
8539
9209
|
description: OK
|
|
@@ -8548,6 +9218,8 @@ paths:
|
|
|
8548
9218
|
- site-context
|
|
8549
9219
|
security:
|
|
8550
9220
|
- user: []
|
|
9221
|
+
- oauth:
|
|
9222
|
+
- site:write
|
|
8551
9223
|
parameters:
|
|
8552
9224
|
- $ref: "#/components/parameters/organizationId"
|
|
8553
9225
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8565,6 +9237,8 @@ paths:
|
|
|
8565
9237
|
- site-context
|
|
8566
9238
|
security:
|
|
8567
9239
|
- user: []
|
|
9240
|
+
- oauth:
|
|
9241
|
+
- site:write
|
|
8568
9242
|
parameters:
|
|
8569
9243
|
- $ref: "#/components/parameters/organizationId"
|
|
8570
9244
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8583,6 +9257,8 @@ paths:
|
|
|
8583
9257
|
- site-context
|
|
8584
9258
|
security:
|
|
8585
9259
|
- user: []
|
|
9260
|
+
- oauth:
|
|
9261
|
+
- site:read
|
|
8586
9262
|
parameters:
|
|
8587
9263
|
- $ref: "#/components/parameters/organizationId"
|
|
8588
9264
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8618,6 +9294,8 @@ paths:
|
|
|
8618
9294
|
- site-context
|
|
8619
9295
|
security:
|
|
8620
9296
|
- user: []
|
|
9297
|
+
- oauth:
|
|
9298
|
+
- site:read
|
|
8621
9299
|
parameters:
|
|
8622
9300
|
- $ref: "#/components/parameters/organizationId"
|
|
8623
9301
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8636,6 +9314,8 @@ paths:
|
|
|
8636
9314
|
- site-context
|
|
8637
9315
|
security:
|
|
8638
9316
|
- user: []
|
|
9317
|
+
- oauth:
|
|
9318
|
+
- site:write
|
|
8639
9319
|
parameters:
|
|
8640
9320
|
- $ref: "#/components/parameters/organizationId"
|
|
8641
9321
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8666,6 +9346,8 @@ paths:
|
|
|
8666
9346
|
- site-context
|
|
8667
9347
|
security:
|
|
8668
9348
|
- user: []
|
|
9349
|
+
- oauth:
|
|
9350
|
+
- site:write
|
|
8669
9351
|
parameters:
|
|
8670
9352
|
- $ref: "#/components/parameters/organizationId"
|
|
8671
9353
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8678,11 +9360,15 @@ paths:
|
|
|
8678
9360
|
/orgs/{organizationId}/sites/{siteId}/questions:
|
|
8679
9361
|
get:
|
|
8680
9362
|
operationId: listSiteQuestions
|
|
8681
|
-
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
|
|
8682
9366
|
tags:
|
|
8683
9367
|
- site-questions
|
|
8684
9368
|
security:
|
|
8685
9369
|
- user: []
|
|
9370
|
+
- oauth:
|
|
9371
|
+
- site:insights:read
|
|
8686
9372
|
parameters:
|
|
8687
9373
|
- $ref: "#/components/parameters/organizationId"
|
|
8688
9374
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8761,11 +9447,15 @@ paths:
|
|
|
8761
9447
|
/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}:
|
|
8762
9448
|
get:
|
|
8763
9449
|
operationId: getSiteQuestionById
|
|
8764
|
-
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
|
|
8765
9453
|
tags:
|
|
8766
9454
|
- site-questions
|
|
8767
9455
|
security:
|
|
8768
9456
|
- user: []
|
|
9457
|
+
- oauth:
|
|
9458
|
+
- site:insights:read
|
|
8769
9459
|
parameters:
|
|
8770
9460
|
- $ref: "#/components/parameters/organizationId"
|
|
8771
9461
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8811,11 +9501,15 @@ paths:
|
|
|
8811
9501
|
/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources:
|
|
8812
9502
|
get:
|
|
8813
9503
|
operationId: listSiteQuestionSources
|
|
8814
|
-
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
|
|
8815
9507
|
tags:
|
|
8816
9508
|
- site-questions
|
|
8817
9509
|
security:
|
|
8818
9510
|
- user: []
|
|
9511
|
+
- oauth:
|
|
9512
|
+
- site:insights:read
|
|
8819
9513
|
parameters:
|
|
8820
9514
|
- $ref: "#/components/parameters/organizationId"
|
|
8821
9515
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8872,11 +9566,15 @@ paths:
|
|
|
8872
9566
|
/orgs/{organizationId}/sites/{siteId}/question-stats:
|
|
8873
9567
|
get:
|
|
8874
9568
|
operationId: getSiteQuestionStats
|
|
8875
|
-
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
|
|
8876
9572
|
tags:
|
|
8877
9573
|
- site-questions
|
|
8878
9574
|
security:
|
|
8879
9575
|
- user: []
|
|
9576
|
+
- oauth:
|
|
9577
|
+
- site:insights:read
|
|
8880
9578
|
parameters:
|
|
8881
9579
|
- $ref: "#/components/parameters/organizationId"
|
|
8882
9580
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -8928,11 +9626,15 @@ paths:
|
|
|
8928
9626
|
/orgs/{organizationId}/sites/{siteId}/answers:
|
|
8929
9627
|
get:
|
|
8930
9628
|
operationId: listSiteQuestionAnswers
|
|
8931
|
-
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
|
|
8932
9632
|
tags:
|
|
8933
9633
|
- site-questions
|
|
8934
9634
|
security:
|
|
8935
9635
|
- user: []
|
|
9636
|
+
- oauth:
|
|
9637
|
+
- site:insights:read
|
|
8936
9638
|
parameters:
|
|
8937
9639
|
- $ref: "#/components/parameters/organizationId"
|
|
8938
9640
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9018,11 +9720,15 @@ paths:
|
|
|
9018
9720
|
/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}:
|
|
9019
9721
|
get:
|
|
9020
9722
|
operationId: getSiteQuestionAnswerById
|
|
9021
|
-
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
|
|
9022
9726
|
tags:
|
|
9023
9727
|
- site-questions
|
|
9024
9728
|
security:
|
|
9025
9729
|
- user: []
|
|
9730
|
+
- oauth:
|
|
9731
|
+
- site:insights:read
|
|
9026
9732
|
parameters:
|
|
9027
9733
|
- $ref: "#/components/parameters/organizationId"
|
|
9028
9734
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9037,11 +9743,15 @@ paths:
|
|
|
9037
9743
|
/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/thread:
|
|
9038
9744
|
get:
|
|
9039
9745
|
operationId: getSiteQuestionAnswerThreadById
|
|
9040
|
-
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
|
|
9041
9749
|
tags:
|
|
9042
9750
|
- site-questions
|
|
9043
9751
|
security:
|
|
9044
9752
|
- user: []
|
|
9753
|
+
- oauth:
|
|
9754
|
+
- site:insights:read
|
|
9045
9755
|
parameters:
|
|
9046
9756
|
- $ref: "#/components/parameters/organizationId"
|
|
9047
9757
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9058,11 +9768,15 @@ paths:
|
|
|
9058
9768
|
/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources:
|
|
9059
9769
|
get:
|
|
9060
9770
|
operationId: listSiteQuestionAnswerSources
|
|
9061
|
-
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
|
|
9062
9774
|
tags:
|
|
9063
9775
|
- site-questions
|
|
9064
9776
|
security:
|
|
9065
9777
|
- user: []
|
|
9778
|
+
- oauth:
|
|
9779
|
+
- site:insights:read
|
|
9066
9780
|
parameters:
|
|
9067
9781
|
- $ref: "#/components/parameters/organizationId"
|
|
9068
9782
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9088,11 +9802,15 @@ paths:
|
|
|
9088
9802
|
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}:
|
|
9089
9803
|
patch:
|
|
9090
9804
|
operationId: updateSiteSpaceById
|
|
9091
|
-
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.
|
|
9807
|
+
x-gitbook-mcp: true
|
|
9092
9808
|
tags:
|
|
9093
9809
|
- site-spaces
|
|
9094
9810
|
security:
|
|
9095
9811
|
- user: []
|
|
9812
|
+
- oauth:
|
|
9813
|
+
- site:write
|
|
9096
9814
|
parameters:
|
|
9097
9815
|
- $ref: "#/components/parameters/organizationId"
|
|
9098
9816
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9134,6 +9852,8 @@ paths:
|
|
|
9134
9852
|
- site-spaces
|
|
9135
9853
|
security:
|
|
9136
9854
|
- user: []
|
|
9855
|
+
- oauth:
|
|
9856
|
+
- site:write
|
|
9137
9857
|
parameters:
|
|
9138
9858
|
- $ref: "#/components/parameters/organizationId"
|
|
9139
9859
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9146,11 +9866,15 @@ paths:
|
|
|
9146
9866
|
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization:
|
|
9147
9867
|
get:
|
|
9148
9868
|
operationId: getSiteSpaceCustomizationById
|
|
9149
|
-
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.
|
|
9871
|
+
x-gitbook-mcp: true
|
|
9150
9872
|
tags:
|
|
9151
9873
|
- site-customization
|
|
9152
9874
|
security:
|
|
9153
9875
|
- user: []
|
|
9876
|
+
- oauth:
|
|
9877
|
+
- site:read
|
|
9154
9878
|
parameters:
|
|
9155
9879
|
- $ref: "#/components/parameters/organizationId"
|
|
9156
9880
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9167,11 +9891,15 @@ paths:
|
|
|
9167
9891
|
$ref: "#/components/responses/BadRequestError"
|
|
9168
9892
|
patch:
|
|
9169
9893
|
operationId: overrideSiteSpaceCustomizationById
|
|
9170
|
-
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.
|
|
9896
|
+
x-gitbook-mcp: true
|
|
9171
9897
|
tags:
|
|
9172
9898
|
- site-customization
|
|
9173
9899
|
security:
|
|
9174
9900
|
- user: []
|
|
9901
|
+
- oauth:
|
|
9902
|
+
- site:write
|
|
9175
9903
|
parameters:
|
|
9176
9904
|
- $ref: "#/components/parameters/organizationId"
|
|
9177
9905
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9373,16 +10101,6 @@ paths:
|
|
|
9373
10101
|
type:
|
|
9374
10102
|
- boolean
|
|
9375
10103
|
- "null"
|
|
9376
|
-
pdf:
|
|
9377
|
-
type: object
|
|
9378
|
-
properties:
|
|
9379
|
-
enabled:
|
|
9380
|
-
type:
|
|
9381
|
-
- boolean
|
|
9382
|
-
- "null"
|
|
9383
|
-
description: If true, PDF export is enabled for the published site. Set to null to reset the override.
|
|
9384
|
-
required:
|
|
9385
|
-
- enabled
|
|
9386
10104
|
feedback:
|
|
9387
10105
|
type: object
|
|
9388
10106
|
properties:
|
|
@@ -9393,16 +10111,6 @@ paths:
|
|
|
9393
10111
|
description: If true, feedback gathering is enabled. Set to null to reset the override.
|
|
9394
10112
|
required:
|
|
9395
10113
|
- enabled
|
|
9396
|
-
git:
|
|
9397
|
-
type: object
|
|
9398
|
-
properties:
|
|
9399
|
-
showEditLink:
|
|
9400
|
-
type:
|
|
9401
|
-
- boolean
|
|
9402
|
-
- "null"
|
|
9403
|
-
description: Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override.
|
|
9404
|
-
required:
|
|
9405
|
-
- showEditLink
|
|
9406
10114
|
externalLinks:
|
|
9407
10115
|
type: object
|
|
9408
10116
|
properties:
|
|
@@ -9465,6 +10173,8 @@ paths:
|
|
|
9465
10173
|
- site-customization
|
|
9466
10174
|
security:
|
|
9467
10175
|
- user: []
|
|
10176
|
+
- oauth:
|
|
10177
|
+
- site:write
|
|
9468
10178
|
parameters:
|
|
9469
10179
|
- $ref: "#/components/parameters/organizationId"
|
|
9470
10180
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9485,6 +10195,8 @@ paths:
|
|
|
9485
10195
|
- site-section-groups
|
|
9486
10196
|
security:
|
|
9487
10197
|
- user: []
|
|
10198
|
+
- oauth:
|
|
10199
|
+
- site:write
|
|
9488
10200
|
parameters:
|
|
9489
10201
|
- $ref: "#/components/parameters/organizationId"
|
|
9490
10202
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9520,6 +10232,8 @@ paths:
|
|
|
9520
10232
|
- site-sections
|
|
9521
10233
|
security:
|
|
9522
10234
|
- user: []
|
|
10235
|
+
- oauth:
|
|
10236
|
+
- site:write
|
|
9523
10237
|
parameters:
|
|
9524
10238
|
- $ref: "#/components/parameters/organizationId"
|
|
9525
10239
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9555,6 +10269,8 @@ paths:
|
|
|
9555
10269
|
- site-spaces
|
|
9556
10270
|
security:
|
|
9557
10271
|
- user: []
|
|
10272
|
+
- oauth:
|
|
10273
|
+
- site:write
|
|
9558
10274
|
parameters:
|
|
9559
10275
|
- $ref: "#/components/parameters/organizationId"
|
|
9560
10276
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9589,6 +10305,8 @@ paths:
|
|
|
9589
10305
|
- site-permissions
|
|
9590
10306
|
security:
|
|
9591
10307
|
- user: []
|
|
10308
|
+
- oauth:
|
|
10309
|
+
- site:permissions:write
|
|
9592
10310
|
parameters:
|
|
9593
10311
|
- $ref: "#/components/parameters/organizationId"
|
|
9594
10312
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9612,11 +10330,22 @@ paths:
|
|
|
9612
10330
|
- site-users
|
|
9613
10331
|
security:
|
|
9614
10332
|
- user: []
|
|
10333
|
+
- oauth:
|
|
10334
|
+
- site:permissions:read
|
|
9615
10335
|
parameters:
|
|
9616
10336
|
- $ref: "#/components/parameters/organizationId"
|
|
9617
10337
|
- $ref: "#/components/parameters/siteId"
|
|
9618
10338
|
- $ref: "#/components/parameters/listPage"
|
|
9619
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
|
|
9620
10349
|
responses:
|
|
9621
10350
|
"200":
|
|
9622
10351
|
description: Listing of users who can access the site.
|
|
@@ -9641,6 +10370,8 @@ paths:
|
|
|
9641
10370
|
- site-users
|
|
9642
10371
|
security:
|
|
9643
10372
|
- user: []
|
|
10373
|
+
- oauth:
|
|
10374
|
+
- site:permissions:read
|
|
9644
10375
|
parameters:
|
|
9645
10376
|
- $ref: "#/components/parameters/organizationId"
|
|
9646
10377
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9673,6 +10404,8 @@ paths:
|
|
|
9673
10404
|
- site-users
|
|
9674
10405
|
security:
|
|
9675
10406
|
- user: []
|
|
10407
|
+
- oauth:
|
|
10408
|
+
- site:permissions:write
|
|
9676
10409
|
parameters:
|
|
9677
10410
|
- $ref: "#/components/parameters/organizationId"
|
|
9678
10411
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9699,6 +10432,8 @@ paths:
|
|
|
9699
10432
|
- site-users
|
|
9700
10433
|
security:
|
|
9701
10434
|
- user: []
|
|
10435
|
+
- oauth:
|
|
10436
|
+
- site:permissions:write
|
|
9702
10437
|
parameters:
|
|
9703
10438
|
- $ref: "#/components/parameters/organizationId"
|
|
9704
10439
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9716,6 +10451,8 @@ paths:
|
|
|
9716
10451
|
- site-permissions
|
|
9717
10452
|
security:
|
|
9718
10453
|
- user: []
|
|
10454
|
+
- oauth:
|
|
10455
|
+
- site:permissions:read
|
|
9719
10456
|
parameters:
|
|
9720
10457
|
- $ref: "#/components/parameters/organizationId"
|
|
9721
10458
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9748,6 +10485,8 @@ paths:
|
|
|
9748
10485
|
- site-permissions
|
|
9749
10486
|
security:
|
|
9750
10487
|
- user: []
|
|
10488
|
+
- oauth:
|
|
10489
|
+
- site:permissions:write
|
|
9751
10490
|
parameters:
|
|
9752
10491
|
- $ref: "#/components/parameters/organizationId"
|
|
9753
10492
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9774,6 +10513,8 @@ paths:
|
|
|
9774
10513
|
- site-permissions
|
|
9775
10514
|
security:
|
|
9776
10515
|
- user: []
|
|
10516
|
+
- oauth:
|
|
10517
|
+
- site:permissions:write
|
|
9777
10518
|
parameters:
|
|
9778
10519
|
- $ref: "#/components/parameters/organizationId"
|
|
9779
10520
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9793,6 +10534,8 @@ paths:
|
|
|
9793
10534
|
- site-ai
|
|
9794
10535
|
security:
|
|
9795
10536
|
- user: []
|
|
10537
|
+
- oauth:
|
|
10538
|
+
- site:ask
|
|
9796
10539
|
parameters:
|
|
9797
10540
|
- $ref: "#/components/parameters/organizationId"
|
|
9798
10541
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9842,11 +10585,15 @@ paths:
|
|
|
9842
10585
|
/orgs/{organizationId}/sites/{siteId}/agent-settings:
|
|
9843
10586
|
get:
|
|
9844
10587
|
operationId: getSiteAgentSettingsById
|
|
9845
|
-
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.
|
|
10590
|
+
x-gitbook-mcp: true
|
|
9846
10591
|
tags:
|
|
9847
10592
|
- site-agent-settings
|
|
9848
10593
|
security:
|
|
9849
10594
|
- user: []
|
|
10595
|
+
- oauth:
|
|
10596
|
+
- site:read
|
|
9850
10597
|
parameters:
|
|
9851
10598
|
- $ref: "#/components/parameters/organizationId"
|
|
9852
10599
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9861,11 +10608,15 @@ paths:
|
|
|
9861
10608
|
$ref: "#/components/responses/BadRequestError"
|
|
9862
10609
|
put:
|
|
9863
10610
|
operationId: updateSiteAgentSettingsById
|
|
9864
|
-
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.
|
|
10613
|
+
x-gitbook-mcp: true
|
|
9865
10614
|
tags:
|
|
9866
10615
|
- site-agent-settings
|
|
9867
10616
|
security:
|
|
9868
10617
|
- user: []
|
|
10618
|
+
- oauth:
|
|
10619
|
+
- site:write
|
|
9869
10620
|
parameters:
|
|
9870
10621
|
- $ref: "#/components/parameters/organizationId"
|
|
9871
10622
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -9887,41 +10638,36 @@ paths:
|
|
|
9887
10638
|
/orgs/{organizationId}/sites/{siteId}/styleguide:
|
|
9888
10639
|
post:
|
|
9889
10640
|
operationId: createSiteStyleguideById
|
|
9890
|
-
summary: Create or
|
|
9891
|
-
description:
|
|
9892
|
-
|
|
9893
|
-
a reference to it.
|
|
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.
|
|
10643
|
+
x-gitbook-mcp: true
|
|
9894
10644
|
tags:
|
|
9895
10645
|
- sites
|
|
9896
10646
|
security:
|
|
9897
10647
|
- user: []
|
|
10648
|
+
- oauth:
|
|
10649
|
+
- site:write
|
|
9898
10650
|
parameters:
|
|
9899
10651
|
- $ref: "#/components/parameters/organizationId"
|
|
9900
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.
|
|
9901
10664
|
responses:
|
|
9902
10665
|
"200":
|
|
9903
10666
|
description: Styleguide created or already exists.
|
|
9904
10667
|
content:
|
|
9905
10668
|
application/json:
|
|
9906
10669
|
schema:
|
|
9907
|
-
$ref: "#/components/schemas/
|
|
9908
|
-
"404":
|
|
9909
|
-
$ref: "#/components/responses/NotFoundError"
|
|
9910
|
-
delete:
|
|
9911
|
-
operationId: deleteSiteStyleguideById
|
|
9912
|
-
summary: Delete a site's styleguide
|
|
9913
|
-
description: |
|
|
9914
|
-
Clears the site's styleguide reference and soft-deletes the space.
|
|
9915
|
-
tags:
|
|
9916
|
-
- sites
|
|
9917
|
-
security:
|
|
9918
|
-
- user: []
|
|
9919
|
-
parameters:
|
|
9920
|
-
- $ref: "#/components/parameters/organizationId"
|
|
9921
|
-
- $ref: "#/components/parameters/siteId"
|
|
9922
|
-
responses:
|
|
9923
|
-
"204":
|
|
9924
|
-
description: Styleguide deleted.
|
|
10670
|
+
$ref: "#/components/schemas/Space"
|
|
9925
10671
|
"404":
|
|
9926
10672
|
$ref: "#/components/responses/NotFoundError"
|
|
9927
10673
|
/orgs/{organizationId}/sites/{siteId}/insights/events:
|
|
@@ -9952,9 +10698,13 @@ paths:
|
|
|
9952
10698
|
/orgs/{organizationId}/sites/{siteId}/insights/events/aggregate:
|
|
9953
10699
|
post:
|
|
9954
10700
|
operationId: aggregateSiteEvents
|
|
9955
|
-
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
|
|
9956
10704
|
security:
|
|
9957
10705
|
- user: []
|
|
10706
|
+
- oauth:
|
|
10707
|
+
- site:insights:read
|
|
9958
10708
|
tags:
|
|
9959
10709
|
- site-insights
|
|
9960
10710
|
parameters:
|
|
@@ -10001,11 +10751,15 @@ paths:
|
|
|
10001
10751
|
/orgs/{organizationId}/sites/{siteId}/ads:
|
|
10002
10752
|
post:
|
|
10003
10753
|
operationId: updateSiteAdsById
|
|
10004
|
-
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.
|
|
10756
|
+
x-gitbook-mcp: true
|
|
10005
10757
|
tags:
|
|
10006
10758
|
- site-ads
|
|
10007
10759
|
security:
|
|
10008
10760
|
- user: []
|
|
10761
|
+
- oauth:
|
|
10762
|
+
- site:write
|
|
10009
10763
|
parameters:
|
|
10010
10764
|
- $ref: "#/components/parameters/organizationId"
|
|
10011
10765
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10029,11 +10783,15 @@ paths:
|
|
|
10029
10783
|
/orgs/{organizationId}/sites/{siteId}/redirects:
|
|
10030
10784
|
post:
|
|
10031
10785
|
operationId: createSiteRedirect
|
|
10032
|
-
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.
|
|
10788
|
+
x-gitbook-mcp: true
|
|
10033
10789
|
tags:
|
|
10034
10790
|
- site-redirects
|
|
10035
10791
|
security:
|
|
10036
10792
|
- user: []
|
|
10793
|
+
- oauth:
|
|
10794
|
+
- site:write
|
|
10037
10795
|
parameters:
|
|
10038
10796
|
- $ref: "#/components/parameters/organizationId"
|
|
10039
10797
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10068,11 +10826,15 @@ paths:
|
|
|
10068
10826
|
$ref: "#/components/schemas/SiteRedirect"
|
|
10069
10827
|
put:
|
|
10070
10828
|
operationId: bulkUpsertSiteRedirects
|
|
10071
|
-
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.
|
|
10831
|
+
x-gitbook-mcp: true
|
|
10072
10832
|
tags:
|
|
10073
10833
|
- site-redirects
|
|
10074
10834
|
security:
|
|
10075
10835
|
- user: []
|
|
10836
|
+
- oauth:
|
|
10837
|
+
- site:write
|
|
10076
10838
|
parameters:
|
|
10077
10839
|
- $ref: "#/components/parameters/organizationId"
|
|
10078
10840
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10242,11 +11004,15 @@ paths:
|
|
|
10242
11004
|
- results
|
|
10243
11005
|
get:
|
|
10244
11006
|
operationId: listSiteRedirects
|
|
10245
|
-
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.
|
|
11009
|
+
x-gitbook-mcp: true
|
|
10246
11010
|
tags:
|
|
10247
11011
|
- site-redirects
|
|
10248
11012
|
security:
|
|
10249
11013
|
- user: []
|
|
11014
|
+
- oauth:
|
|
11015
|
+
- site:read
|
|
10250
11016
|
parameters:
|
|
10251
11017
|
- $ref: "#/components/parameters/organizationId"
|
|
10252
11018
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10282,11 +11048,15 @@ paths:
|
|
|
10282
11048
|
/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}:
|
|
10283
11049
|
patch:
|
|
10284
11050
|
operationId: updateSiteRedirectById
|
|
10285
|
-
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.
|
|
11053
|
+
x-gitbook-mcp: true
|
|
10286
11054
|
tags:
|
|
10287
11055
|
- site-redirects
|
|
10288
11056
|
security:
|
|
10289
11057
|
- user: []
|
|
11058
|
+
- oauth:
|
|
11059
|
+
- site:write
|
|
10290
11060
|
parameters:
|
|
10291
11061
|
- $ref: "#/components/parameters/organizationId"
|
|
10292
11062
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10322,6 +11092,8 @@ paths:
|
|
|
10322
11092
|
- site-redirects
|
|
10323
11093
|
security:
|
|
10324
11094
|
- user: []
|
|
11095
|
+
- oauth:
|
|
11096
|
+
- site:write
|
|
10325
11097
|
parameters:
|
|
10326
11098
|
- $ref: "#/components/parameters/organizationId"
|
|
10327
11099
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10334,11 +11106,15 @@ paths:
|
|
|
10334
11106
|
/orgs/{organizationId}/sites/{siteId}/redirect:
|
|
10335
11107
|
get:
|
|
10336
11108
|
operationId: getSiteRedirectBySource
|
|
10337
|
-
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.
|
|
11111
|
+
x-gitbook-mcp: true
|
|
10338
11112
|
tags:
|
|
10339
11113
|
- site-redirects
|
|
10340
11114
|
security:
|
|
10341
11115
|
- user: []
|
|
11116
|
+
- oauth:
|
|
11117
|
+
- site:read
|
|
10342
11118
|
parameters:
|
|
10343
11119
|
- $ref: "#/components/parameters/organizationId"
|
|
10344
11120
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10370,11 +11146,15 @@ paths:
|
|
|
10370
11146
|
/orgs/{organizationId}/sites/{siteId}/mcp-servers:
|
|
10371
11147
|
get:
|
|
10372
11148
|
operationId: listSiteMcpServers
|
|
10373
|
-
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.
|
|
11151
|
+
x-gitbook-mcp: true
|
|
10374
11152
|
tags:
|
|
10375
11153
|
- site-mcp-servers
|
|
10376
11154
|
security:
|
|
10377
11155
|
- user: []
|
|
11156
|
+
- oauth:
|
|
11157
|
+
- site:read
|
|
10378
11158
|
parameters:
|
|
10379
11159
|
- $ref: "#/components/parameters/organizationId"
|
|
10380
11160
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10398,11 +11178,15 @@ paths:
|
|
|
10398
11178
|
$ref: "#/components/schemas/SiteMcpServer"
|
|
10399
11179
|
post:
|
|
10400
11180
|
operationId: createSiteMcpServer
|
|
10401
|
-
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.
|
|
11183
|
+
x-gitbook-mcp: true
|
|
10402
11184
|
tags:
|
|
10403
11185
|
- site-mcp-servers
|
|
10404
11186
|
security:
|
|
10405
11187
|
- user: []
|
|
11188
|
+
- oauth:
|
|
11189
|
+
- site:write
|
|
10406
11190
|
parameters:
|
|
10407
11191
|
- $ref: "#/components/parameters/organizationId"
|
|
10408
11192
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10440,11 +11224,15 @@ paths:
|
|
|
10440
11224
|
/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId}:
|
|
10441
11225
|
get:
|
|
10442
11226
|
operationId: getSiteMcpServerById
|
|
10443
|
-
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.
|
|
11229
|
+
x-gitbook-mcp: true
|
|
10444
11230
|
tags:
|
|
10445
11231
|
- site-mcp-servers
|
|
10446
11232
|
security:
|
|
10447
11233
|
- user: []
|
|
11234
|
+
- oauth:
|
|
11235
|
+
- site:read
|
|
10448
11236
|
parameters:
|
|
10449
11237
|
- $ref: "#/components/parameters/organizationId"
|
|
10450
11238
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10458,11 +11246,15 @@ paths:
|
|
|
10458
11246
|
$ref: "#/components/schemas/SiteMcpServer"
|
|
10459
11247
|
patch:
|
|
10460
11248
|
operationId: updateSiteMcpServerById
|
|
10461
|
-
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.
|
|
11251
|
+
x-gitbook-mcp: true
|
|
10462
11252
|
tags:
|
|
10463
11253
|
- site-mcp-servers
|
|
10464
11254
|
security:
|
|
10465
11255
|
- user: []
|
|
11256
|
+
- oauth:
|
|
11257
|
+
- site:write
|
|
10466
11258
|
parameters:
|
|
10467
11259
|
- $ref: "#/components/parameters/organizationId"
|
|
10468
11260
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10503,6 +11295,8 @@ paths:
|
|
|
10503
11295
|
- site-mcp-servers
|
|
10504
11296
|
security:
|
|
10505
11297
|
- user: []
|
|
11298
|
+
- oauth:
|
|
11299
|
+
- site:write
|
|
10506
11300
|
parameters:
|
|
10507
11301
|
- $ref: "#/components/parameters/organizationId"
|
|
10508
11302
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10515,11 +11309,15 @@ paths:
|
|
|
10515
11309
|
/orgs/{organizationId}/sites/{siteId}/channels:
|
|
10516
11310
|
get:
|
|
10517
11311
|
operationId: listSiteChannels
|
|
10518
|
-
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.
|
|
11314
|
+
x-gitbook-mcp: true
|
|
10519
11315
|
tags:
|
|
10520
11316
|
- site-channels
|
|
10521
11317
|
security:
|
|
10522
11318
|
- user: []
|
|
11319
|
+
- oauth:
|
|
11320
|
+
- site:read
|
|
10523
11321
|
parameters:
|
|
10524
11322
|
- $ref: "#/components/parameters/organizationId"
|
|
10525
11323
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10543,11 +11341,15 @@ paths:
|
|
|
10543
11341
|
$ref: "#/components/schemas/SiteChannel"
|
|
10544
11342
|
post:
|
|
10545
11343
|
operationId: createSiteChannel
|
|
10546
|
-
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.
|
|
11346
|
+
x-gitbook-mcp: true
|
|
10547
11347
|
tags:
|
|
10548
11348
|
- site-channels
|
|
10549
11349
|
security:
|
|
10550
11350
|
- user: []
|
|
11351
|
+
- oauth:
|
|
11352
|
+
- site:write
|
|
10551
11353
|
parameters:
|
|
10552
11354
|
- $ref: "#/components/parameters/organizationId"
|
|
10553
11355
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10572,11 +11374,15 @@ paths:
|
|
|
10572
11374
|
/orgs/{organizationId}/sites/{siteId}/channels/{siteChannelId}:
|
|
10573
11375
|
get:
|
|
10574
11376
|
operationId: getSiteChannelById
|
|
10575
|
-
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.
|
|
11379
|
+
x-gitbook-mcp: true
|
|
10576
11380
|
tags:
|
|
10577
11381
|
- site-channels
|
|
10578
11382
|
security:
|
|
10579
11383
|
- user: []
|
|
11384
|
+
- oauth:
|
|
11385
|
+
- site:read
|
|
10580
11386
|
parameters:
|
|
10581
11387
|
- $ref: "#/components/parameters/organizationId"
|
|
10582
11388
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10590,11 +11396,15 @@ paths:
|
|
|
10590
11396
|
$ref: "#/components/schemas/SiteChannel"
|
|
10591
11397
|
patch:
|
|
10592
11398
|
operationId: updateSiteChannelById
|
|
10593
|
-
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.
|
|
11401
|
+
x-gitbook-mcp: true
|
|
10594
11402
|
tags:
|
|
10595
11403
|
- site-channels
|
|
10596
11404
|
security:
|
|
10597
11405
|
- user: []
|
|
11406
|
+
- oauth:
|
|
11407
|
+
- site:write
|
|
10598
11408
|
parameters:
|
|
10599
11409
|
- $ref: "#/components/parameters/organizationId"
|
|
10600
11410
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -10619,11 +11429,13 @@ paths:
|
|
|
10619
11429
|
$ref: "#/components/schemas/SiteChannel"
|
|
10620
11430
|
delete:
|
|
10621
11431
|
operationId: deleteSiteChannelById
|
|
10622
|
-
summary: Delete a
|
|
11432
|
+
summary: Delete a GitBook Agent channel from a site
|
|
10623
11433
|
tags:
|
|
10624
11434
|
- site-channels
|
|
10625
11435
|
security:
|
|
10626
11436
|
- user: []
|
|
11437
|
+
- oauth:
|
|
11438
|
+
- site:write
|
|
10627
11439
|
parameters:
|
|
10628
11440
|
- $ref: "#/components/parameters/organizationId"
|
|
10629
11441
|
- $ref: "#/components/parameters/siteId"
|
|
@@ -11594,6 +12406,33 @@ components:
|
|
|
11594
12406
|
description: The unique id of the organization
|
|
11595
12407
|
schema:
|
|
11596
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
|
|
11597
12436
|
inviteId:
|
|
11598
12437
|
name: inviteId
|
|
11599
12438
|
in: path
|
|
@@ -12255,6 +13094,11 @@ components:
|
|
|
12255
13094
|
$ref: "#/components/schemas/Timestamp"
|
|
12256
13095
|
editMode:
|
|
12257
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
|
|
12258
13102
|
mergeRules:
|
|
12259
13103
|
$ref: "#/components/schemas/MergeRulesSpaceConfiguration"
|
|
12260
13104
|
urls:
|
|
@@ -12809,6 +13653,10 @@ components:
|
|
|
12809
13653
|
markdown:
|
|
12810
13654
|
type: string
|
|
12811
13655
|
description: Content of the document formatted as markdown
|
|
13656
|
+
example: |
|
|
13657
|
+
# Hello World
|
|
13658
|
+
|
|
13659
|
+
This is a markdown document linking to [another page](/pages/page_id).
|
|
12812
13660
|
required:
|
|
12813
13661
|
- markdown
|
|
12814
13662
|
DocumentMarkBold:
|
|
@@ -14031,6 +14879,9 @@ components:
|
|
|
14031
14879
|
fullWidth:
|
|
14032
14880
|
type: boolean
|
|
14033
14881
|
description: Whether to render the block as a full width one
|
|
14882
|
+
search:
|
|
14883
|
+
type: boolean
|
|
14884
|
+
description: Whether to show the search bar on the table. When unset, search is shown automatically on grid tables once they have enough rows.
|
|
14034
14885
|
required:
|
|
14035
14886
|
- view
|
|
14036
14887
|
- records
|
|
@@ -15525,6 +16376,19 @@ components:
|
|
|
15525
16376
|
- object
|
|
15526
16377
|
- data
|
|
15527
16378
|
- nodes
|
|
16379
|
+
example:
|
|
16380
|
+
object: document
|
|
16381
|
+
data: {}
|
|
16382
|
+
nodes:
|
|
16383
|
+
- object: block
|
|
16384
|
+
type: paragraph
|
|
16385
|
+
data: {}
|
|
16386
|
+
nodes:
|
|
16387
|
+
- object: text
|
|
16388
|
+
leaves:
|
|
16389
|
+
- object: leaf
|
|
16390
|
+
text: Hello world
|
|
16391
|
+
marks: []
|
|
15528
16392
|
Document:
|
|
15529
16393
|
oneOf:
|
|
15530
16394
|
- $ref: "#/components/schemas/MarkdownDocument"
|
|
@@ -17792,6 +18656,9 @@ components:
|
|
|
17792
18656
|
title:
|
|
17793
18657
|
type: string
|
|
17794
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.
|
|
17795
18662
|
createdAt:
|
|
17796
18663
|
$ref: "#/components/schemas/Timestamp"
|
|
17797
18664
|
updatedAt:
|
|
@@ -17799,6 +18666,7 @@ components:
|
|
|
17799
18666
|
required:
|
|
17800
18667
|
- object
|
|
17801
18668
|
- id
|
|
18669
|
+
- shared
|
|
17802
18670
|
- createdAt
|
|
17803
18671
|
- updatedAt
|
|
17804
18672
|
PostCommentSchema:
|
|
@@ -17934,11 +18802,101 @@ components:
|
|
|
17934
18802
|
description: ID of the page whose content should be updated.
|
|
17935
18803
|
document:
|
|
17936
18804
|
$ref: "#/components/schemas/Document"
|
|
18805
|
+
example:
|
|
18806
|
+
operation: update_page
|
|
18807
|
+
page: page_id
|
|
18808
|
+
document:
|
|
18809
|
+
markdown: |
|
|
18810
|
+
# Hello World
|
|
18811
|
+
|
|
18812
|
+
This is a markdown document linking to [another page](/pages/page_id).
|
|
18813
|
+
ChangeRequestContentChangeInsertPage:
|
|
18814
|
+
type: object
|
|
18815
|
+
description: Insert a new page into the change request.
|
|
18816
|
+
required:
|
|
18817
|
+
- operation
|
|
18818
|
+
- title
|
|
18819
|
+
- document
|
|
18820
|
+
properties:
|
|
18821
|
+
operation:
|
|
18822
|
+
type: string
|
|
18823
|
+
enum:
|
|
18824
|
+
- insert_page
|
|
18825
|
+
title:
|
|
18826
|
+
type: string
|
|
18827
|
+
description: Title of the new page.
|
|
18828
|
+
into:
|
|
18829
|
+
type: string
|
|
18830
|
+
description: ID of the parent page to insert the new page into. If omitted, the page is inserted as a root page.
|
|
18831
|
+
at:
|
|
18832
|
+
type: integer
|
|
18833
|
+
minimum: 0
|
|
18834
|
+
description: Zero-based index to insert the page at among its siblings. If omitted, the page is appended at the end.
|
|
18835
|
+
document:
|
|
18836
|
+
$ref: "#/components/schemas/Document"
|
|
18837
|
+
example:
|
|
18838
|
+
operation: insert_page
|
|
18839
|
+
title: New page
|
|
18840
|
+
document:
|
|
18841
|
+
markdown: |
|
|
18842
|
+
# New page
|
|
18843
|
+
|
|
18844
|
+
This is a new page.
|
|
18845
|
+
ChangeRequestContentChangeDeletePage:
|
|
18846
|
+
type: object
|
|
18847
|
+
description: Delete an existing page (and its subpages) from the change request.
|
|
18848
|
+
required:
|
|
18849
|
+
- operation
|
|
18850
|
+
- page
|
|
18851
|
+
properties:
|
|
18852
|
+
operation:
|
|
18853
|
+
type: string
|
|
18854
|
+
enum:
|
|
18855
|
+
- delete_page
|
|
18856
|
+
page:
|
|
18857
|
+
type: string
|
|
18858
|
+
description: ID of the page to delete.
|
|
18859
|
+
example:
|
|
18860
|
+
operation: delete_page
|
|
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
|
|
17937
18887
|
ChangeRequestContentChange:
|
|
17938
18888
|
oneOf:
|
|
17939
18889
|
- $ref: "#/components/schemas/ChangeRequestContentChangeUpdatePage"
|
|
18890
|
+
- $ref: "#/components/schemas/ChangeRequestContentChangeInsertPage"
|
|
18891
|
+
- $ref: "#/components/schemas/ChangeRequestContentChangeDeletePage"
|
|
18892
|
+
- $ref: "#/components/schemas/ChangeRequestContentChangeRevertPage"
|
|
17940
18893
|
discriminator:
|
|
17941
18894
|
propertyName: operation
|
|
18895
|
+
mapping:
|
|
18896
|
+
update_page: "#/components/schemas/ChangeRequestContentChangeUpdatePage"
|
|
18897
|
+
insert_page: "#/components/schemas/ChangeRequestContentChangeInsertPage"
|
|
18898
|
+
delete_page: "#/components/schemas/ChangeRequestContentChangeDeletePage"
|
|
18899
|
+
revert_page: "#/components/schemas/ChangeRequestContentChangeRevertPage"
|
|
17942
18900
|
RevisionPageType:
|
|
17943
18901
|
type: string
|
|
17944
18902
|
enum:
|
|
@@ -20084,6 +21042,35 @@ components:
|
|
|
20084
21042
|
$ref: "#/components/schemas/SitePermissionsModel"
|
|
20085
21043
|
defaultLevel:
|
|
20086
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
|
|
20087
21074
|
published:
|
|
20088
21075
|
type: boolean
|
|
20089
21076
|
description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
|
|
@@ -20154,6 +21141,7 @@ components:
|
|
|
20154
21141
|
- visibility
|
|
20155
21142
|
- permissionsModel
|
|
20156
21143
|
- defaultLevel
|
|
21144
|
+
- permissions
|
|
20157
21145
|
- published
|
|
20158
21146
|
- createdAt
|
|
20159
21147
|
- siteSpaces
|
|
@@ -21330,6 +22318,61 @@ components:
|
|
|
21330
22318
|
- sites
|
|
21331
22319
|
- spaces
|
|
21332
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
|
|
21333
22376
|
MemberContentPermission:
|
|
21334
22377
|
type: object
|
|
21335
22378
|
description: Permission of a member in a content.
|
|
@@ -23813,15 +24856,6 @@ components:
|
|
|
23813
24856
|
required:
|
|
23814
24857
|
- default
|
|
23815
24858
|
- toggeable
|
|
23816
|
-
pdf:
|
|
23817
|
-
type: object
|
|
23818
|
-
properties:
|
|
23819
|
-
enabled:
|
|
23820
|
-
type: boolean
|
|
23821
|
-
deprecated: true
|
|
23822
|
-
description: "Deprecated: use `pageActions.items` instead. If true, PDF export is enabled for the published site. Kept in sync with the presence of `pdf` in `pageActions.items`."
|
|
23823
|
-
required:
|
|
23824
|
-
- enabled
|
|
23825
24859
|
feedback:
|
|
23826
24860
|
type: object
|
|
23827
24861
|
properties:
|
|
@@ -23847,47 +24881,23 @@ components:
|
|
|
23847
24881
|
description: If true, Advanced customization is enabled
|
|
23848
24882
|
required:
|
|
23849
24883
|
- enabled
|
|
23850
|
-
git:
|
|
23851
|
-
type: object
|
|
23852
|
-
properties:
|
|
23853
|
-
showEditLink:
|
|
23854
|
-
type: boolean
|
|
23855
|
-
deprecated: true
|
|
23856
|
-
description: "Deprecated: use `pageActions.items` instead. Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Kept in sync with the presence of `git` in `pageActions.items`."
|
|
23857
|
-
required:
|
|
23858
|
-
- showEditLink
|
|
23859
24884
|
pageActions:
|
|
23860
24885
|
type: object
|
|
23861
24886
|
properties:
|
|
23862
|
-
externalAI:
|
|
23863
|
-
type: boolean
|
|
23864
|
-
deprecated: true
|
|
23865
|
-
description: "Deprecated: use `items` instead. Whether actions to open ChatGPT, Anthropic, etc. should be available in the page menu. Kept in sync with the presence of `external-ai` in `items`."
|
|
23866
|
-
markdown:
|
|
23867
|
-
type: boolean
|
|
23868
|
-
deprecated: true
|
|
23869
|
-
description: "Deprecated: use `items` instead. Whether the copy and open the markdown version of the page should be available in the page menu. Kept in sync with the presence of `markdown` in `items`."
|
|
23870
|
-
mcp:
|
|
23871
|
-
type: boolean
|
|
23872
|
-
deprecated: true
|
|
23873
|
-
description: "Deprecated: use `items` instead. Whether an action to connect to the docs using the MCP server should be available in the page menu. Kept in sync with the presence of `mcp` in `items`."
|
|
23874
24887
|
items:
|
|
23875
24888
|
type: array
|
|
23876
24889
|
description: |
|
|
23877
24890
|
Ordered list of the page actions enabled in the page menu. This is the source of truth for
|
|
23878
24891
|
which actions are enabled and in which order: the position defines the display order, the
|
|
23879
24892
|
first action is the default one, surfaced as the main button on the page, and actions not
|
|
23880
|
-
present in the list are disabled.
|
|
23881
|
-
|
|
23882
|
-
|
|
23883
|
-
|
|
23884
|
-
|
|
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`.
|
|
23885
24898
|
items:
|
|
23886
24899
|
$ref: "#/components/schemas/CustomizationPageActionType"
|
|
23887
24900
|
required:
|
|
23888
|
-
- externalAI
|
|
23889
|
-
- markdown
|
|
23890
|
-
- mcp
|
|
23891
24901
|
- items
|
|
23892
24902
|
externalLinks:
|
|
23893
24903
|
type: object
|
|
@@ -23940,7 +24950,6 @@ components:
|
|
|
23940
24950
|
- header
|
|
23941
24951
|
- footer
|
|
23942
24952
|
- themes
|
|
23943
|
-
- pdf
|
|
23944
24953
|
- feedback
|
|
23945
24954
|
- ai
|
|
23946
24955
|
- advancedCustomization
|
|
@@ -23948,7 +24957,6 @@ components:
|
|
|
23948
24957
|
- externalLinks
|
|
23949
24958
|
- pagination
|
|
23950
24959
|
- pageActions
|
|
23951
|
-
- git
|
|
23952
24960
|
- privacyPolicy
|
|
23953
24961
|
- socialPreview
|
|
23954
24962
|
- socialAccounts
|
|
@@ -24278,6 +25286,8 @@ components:
|
|
|
24278
25286
|
- builtin:github-issues
|
|
24279
25287
|
- builtin:intercom
|
|
24280
25288
|
- builtin:zendesk
|
|
25289
|
+
- builtin:pylon
|
|
25290
|
+
- builtin:linear
|
|
24281
25291
|
ContextRecordTitle:
|
|
24282
25292
|
type: string
|
|
24283
25293
|
description: Title for the context record
|
|
@@ -24443,8 +25453,14 @@ components:
|
|
|
24443
25453
|
- urls
|
|
24444
25454
|
SiteFindingStatus:
|
|
24445
25455
|
type: string
|
|
24446
|
-
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.
|
|
24447
25462
|
enum:
|
|
25463
|
+
- candidate
|
|
24448
25464
|
- open
|
|
24449
25465
|
- done
|
|
24450
25466
|
- canceled
|
|
@@ -24733,6 +25749,11 @@ components:
|
|
|
24733
25749
|
description: Optional label for the connection
|
|
24734
25750
|
minLength: 0
|
|
24735
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
|
|
24736
25757
|
ContextConnectionStatus:
|
|
24737
25758
|
type: string
|
|
24738
25759
|
enum:
|
|
@@ -24918,6 +25939,40 @@ components:
|
|
|
24918
25939
|
required:
|
|
24919
25940
|
- connector
|
|
24920
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
|
|
24921
25976
|
ContextConnection:
|
|
24922
25977
|
allOf:
|
|
24923
25978
|
- type: object
|
|
@@ -24935,6 +25990,8 @@ components:
|
|
|
24935
25990
|
$ref: "#/components/schemas/Timestamp"
|
|
24936
25991
|
label:
|
|
24937
25992
|
$ref: "#/components/schemas/ContextConnectionLabel"
|
|
25993
|
+
filter:
|
|
25994
|
+
$ref: "#/components/schemas/ContextConnectionFilter"
|
|
24938
25995
|
status:
|
|
24939
25996
|
$ref: "#/components/schemas/ContextConnectionStatus"
|
|
24940
25997
|
records:
|
|
@@ -25797,6 +26854,40 @@ components:
|
|
|
25797
26854
|
- spaceId
|
|
25798
26855
|
- action
|
|
25799
26856
|
- changeRequest
|
|
26857
|
+
AIToolCallGetChangeRequestDetails:
|
|
26858
|
+
type: object
|
|
26859
|
+
properties:
|
|
26860
|
+
tool:
|
|
26861
|
+
type: string
|
|
26862
|
+
enum:
|
|
26863
|
+
- getChangeRequestDetails
|
|
26864
|
+
spaceId:
|
|
26865
|
+
type: string
|
|
26866
|
+
description: The ID of the space the change request belongs to.
|
|
26867
|
+
changeRequestId:
|
|
26868
|
+
type: string
|
|
26869
|
+
description: The ID of the change request.
|
|
26870
|
+
required:
|
|
26871
|
+
- tool
|
|
26872
|
+
- spaceId
|
|
26873
|
+
- changeRequestId
|
|
26874
|
+
AIToolCallSetChangeRequestDetails:
|
|
26875
|
+
type: object
|
|
26876
|
+
properties:
|
|
26877
|
+
tool:
|
|
26878
|
+
type: string
|
|
26879
|
+
enum:
|
|
26880
|
+
- setChangeRequestDetails
|
|
26881
|
+
spaceId:
|
|
26882
|
+
type: string
|
|
26883
|
+
description: The ID of the space the change request belongs to.
|
|
26884
|
+
changeRequestId:
|
|
26885
|
+
type: string
|
|
26886
|
+
description: The ID of the change request.
|
|
26887
|
+
required:
|
|
26888
|
+
- tool
|
|
26889
|
+
- spaceId
|
|
26890
|
+
- changeRequestId
|
|
25800
26891
|
AIToolCallComment:
|
|
25801
26892
|
type: object
|
|
25802
26893
|
properties:
|
|
@@ -25938,6 +27029,8 @@ components:
|
|
|
25938
27029
|
- $ref: "#/components/schemas/AIToolCallGetTags"
|
|
25939
27030
|
- $ref: "#/components/schemas/AIToolCallUpdateTags"
|
|
25940
27031
|
- $ref: "#/components/schemas/AIToolCallCreateChangeRequest"
|
|
27032
|
+
- $ref: "#/components/schemas/AIToolCallGetChangeRequestDetails"
|
|
27033
|
+
- $ref: "#/components/schemas/AIToolCallSetChangeRequestDetails"
|
|
25941
27034
|
- $ref: "#/components/schemas/AIToolCallComment"
|
|
25942
27035
|
- $ref: "#/components/schemas/AIToolCallReplyToComment"
|
|
25943
27036
|
- $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
|
|
@@ -26323,10 +27416,17 @@ components:
|
|
|
26323
27416
|
$ref: "#/components/schemas/User"
|
|
26324
27417
|
origin:
|
|
26325
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"
|
|
26326
27425
|
required:
|
|
26327
27426
|
- permission
|
|
26328
27427
|
- user
|
|
26329
27428
|
- origin
|
|
27429
|
+
- disabled
|
|
26330
27430
|
UserSitePermissionOverride:
|
|
26331
27431
|
type: object
|
|
26332
27432
|
description: Permission override of a user in a site.
|
|
@@ -26349,13 +27449,6 @@ components:
|
|
|
26349
27449
|
required:
|
|
26350
27450
|
- permission
|
|
26351
27451
|
- team
|
|
26352
|
-
AIMessageMode:
|
|
26353
|
-
type: string
|
|
26354
|
-
description: The mode influences the response time and quality of the AI's answer. Fast mode will prioritize quicker responses with potentially less well reasoned answers and normal mode will allow for more comprehensive responses at the cost of longer response time.
|
|
26355
|
-
default: normal
|
|
26356
|
-
enum:
|
|
26357
|
-
- normal
|
|
26358
|
-
- fast
|
|
26359
27452
|
AIMessageInput:
|
|
26360
27453
|
type: object
|
|
26361
27454
|
description: Input version of an AI message.
|
|
@@ -26373,8 +27466,6 @@ components:
|
|
|
26373
27466
|
type: array
|
|
26374
27467
|
items:
|
|
26375
27468
|
$ref: "#/components/schemas/AIAttachment"
|
|
26376
|
-
mode:
|
|
26377
|
-
$ref: "#/components/schemas/AIMessageMode"
|
|
26378
27469
|
required:
|
|
26379
27470
|
- role
|
|
26380
27471
|
- content
|
|
@@ -27028,6 +28119,30 @@ components:
|
|
|
27028
28119
|
required:
|
|
27029
28120
|
- type
|
|
27030
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
|
|
27031
28146
|
SiteInsightsEventAskQuestion:
|
|
27032
28147
|
allOf:
|
|
27033
28148
|
- $ref: "#/components/schemas/SiteInsightsEventBase"
|
|
@@ -27040,6 +28155,9 @@ components:
|
|
|
27040
28155
|
query:
|
|
27041
28156
|
type: string
|
|
27042
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.
|
|
27043
28161
|
required:
|
|
27044
28162
|
- type
|
|
27045
28163
|
- query
|
|
@@ -27255,6 +28373,7 @@ components:
|
|
|
27255
28373
|
- $ref: "#/components/schemas/SiteInsightsEventSearchOpenResult"
|
|
27256
28374
|
- $ref: "#/components/schemas/SiteInsightsEventPagePostFeedback"
|
|
27257
28375
|
- $ref: "#/components/schemas/SiteInsightsEventPagePostFeedbackComment"
|
|
28376
|
+
- $ref: "#/components/schemas/SiteInsightsEventAgentFeedback"
|
|
27258
28377
|
- $ref: "#/components/schemas/SiteInsightsEventAskQuestion"
|
|
27259
28378
|
- $ref: "#/components/schemas/SiteInsightsEventAskView"
|
|
27260
28379
|
- $ref: "#/components/schemas/SiteInsightsEventAskRateResponse"
|
|
@@ -27647,6 +28766,7 @@ components:
|
|
|
27647
28766
|
- search_open_result
|
|
27648
28767
|
- page_post_feedback
|
|
27649
28768
|
- page_post_feedback_comment
|
|
28769
|
+
- agent_feedback
|
|
27650
28770
|
- ask_question
|
|
27651
28771
|
- ask_view
|
|
27652
28772
|
- ask_rate_response
|
|
@@ -29095,8 +30215,6 @@ components:
|
|
|
29095
30215
|
type: boolean
|
|
29096
30216
|
reason:
|
|
29097
30217
|
$ref: "#/components/schemas/BlockReason"
|
|
29098
|
-
blockPaidOrg:
|
|
29099
|
-
type: boolean
|
|
29100
30218
|
required:
|
|
29101
30219
|
- block
|
|
29102
30220
|
UserImpersonationInfo:
|
|
@@ -32088,6 +33206,38 @@ components:
|
|
|
32088
33206
|
When `type` is `tool`, the name of the tool being called (matches `AIToolCall.tool`).
|
|
32089
33207
|
required:
|
|
32090
33208
|
- type
|
|
33209
|
+
AgentQuestionOption:
|
|
33210
|
+
type: object
|
|
33211
|
+
description: An option the user can pick when answering a question asked by the agent.
|
|
33212
|
+
properties:
|
|
33213
|
+
label:
|
|
33214
|
+
type: string
|
|
33215
|
+
description: Short label for the option, displayed as a button and used as the answer.
|
|
33216
|
+
description:
|
|
33217
|
+
type: string
|
|
33218
|
+
description: Optional longer description to clarify what the option means.
|
|
33219
|
+
required:
|
|
33220
|
+
- label
|
|
33221
|
+
AgentPendingQuestion:
|
|
33222
|
+
type: object
|
|
33223
|
+
description: |
|
|
33224
|
+
A question the agent is waiting for the user to answer. While set, the client replaces the prompt with a choice control. The user can pick one of the options or answer with a custom free-text message; either way the answer resolves the pending tool call.
|
|
33225
|
+
properties:
|
|
33226
|
+
toolCallId:
|
|
33227
|
+
type: string
|
|
33228
|
+
description: ID of the tool call this question resolves, used to continue the conversation.
|
|
33229
|
+
question:
|
|
33230
|
+
type: string
|
|
33231
|
+
description: The question to display to the user.
|
|
33232
|
+
options:
|
|
33233
|
+
type: array
|
|
33234
|
+
description: The options the user can choose from.
|
|
33235
|
+
items:
|
|
33236
|
+
$ref: "#/components/schemas/AgentQuestionOption"
|
|
33237
|
+
required:
|
|
33238
|
+
- toolCallId
|
|
33239
|
+
- question
|
|
33240
|
+
- options
|
|
32091
33241
|
AgentState:
|
|
32092
33242
|
type: object
|
|
32093
33243
|
properties:
|
|
@@ -32107,6 +33257,10 @@ components:
|
|
|
32107
33257
|
$ref: "#/components/schemas/AgentActivity"
|
|
32108
33258
|
description: |
|
|
32109
33259
|
What the agent is currently doing. Only set while the agent is processing.
|
|
33260
|
+
pendingQuestion:
|
|
33261
|
+
$ref: "#/components/schemas/AgentPendingQuestion"
|
|
33262
|
+
description: |
|
|
33263
|
+
A question the agent is waiting for the user to answer. While set, the client replaces the prompt with a choice control.
|
|
32110
33264
|
required:
|
|
32111
33265
|
- status
|
|
32112
33266
|
- suggestions
|