Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

docs: filter x-internal endpoints from API reference

Sushmitha Mallesh38371c4dec94
diff --git a/docs/scripts/fetch-openapi.mjs b/docs/scripts/fetch-openapi.mjs
index c170b22b1..13d427357 100644
--- a/docs/scripts/fetch-openapi.mjs
+++ b/docs/scripts/fetch-openapi.mjs
@@ -63,6 +63,12 @@ async function fetchAndFilterSpec() {
continue;
}
+ // Skip if marked as internal
+ if (operation['x-internal'] === true) {
+ removedCount++;
+ continue;
+ }
+
// Keep only the first tag to avoid duplicates in sidebar
if (tags.length > 1) {
operation.tags = [tags[0]];