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.

feat: Add dynamic API index pages for LLM navigation

Sushmithamalleshedd26a9a8524
diff --git a/docs/content/reference/api-reference/auth-configs.mdx b/docs/content/reference/api-reference/auth-configs.mdx
new file mode 100644
index 000000000..aacc31f16
--- /dev/null
+++ b/docs/content/reference/api-reference/auth-configs.mdx
@@ -0,0 +1,17 @@
+---
+title: Auth Configs
+description: "Authentication configuration management"
+---
+
+{/* Auto-generated from OpenAPI spec. Do not edit directly. */}
+
+Authentication configuration management
+
+## Endpoints
+
+- [Create new authentication configuration](/reference/api-reference/auth-configs/create-new-authentication-configuration)
+- [List authentication configurations with optional filters](/reference/api-reference/auth-configs/list-authentication-configurations-with-optional-filters)
+- [Get single authentication configuration by ID](/reference/api-reference/auth-configs/get-single-authentication-configuration-by-id)
+- [Update an authentication configuration](/reference/api-reference/auth-configs/update-an-authentication-configuration)
+- [Delete an authentication configuration](/reference/api-reference/auth-configs/delete-an-authentication-configuration)
+- [Enable or disable an authentication configuration](/reference/api-reference/auth-configs/enable-or-disable-an-authentication-configuration)
diff --git a/docs/content/reference/api-reference/authentication.mdx b/docs/content/reference/api-reference/authentication.mdx
new file mode 100644
index 000000000..89925b28e
--- /dev/null
+++ b/docs/content/reference/api-reference/authentication.mdx
@@ -0,0 +1,12 @@
+---
+title: Authentication
+description: "Authentication related endpoints"
+---
+
+{/* Auto-generated from OpenAPI spec. Do not edit directly. */}
+
+Authentication related endpoints
+
+## Endpoints
+
+- [Get current user session information](/reference/api-reference/authentication/get-current-user-session-information)
diff --git a/docs/content/reference/api-reference/connected-accounts.mdx b/docs/content/reference/api-reference/connected-accounts.mdx
new file mode 100644
index 000000000..e48dab824
--- /dev/null
+++ b/docs/content/reference/api-reference/connected-accounts.mdx
@@ -0,0 +1,18 @@
+---
+title: Connected Accounts
+description: "Connected account management"
+---
+
+{/* Auto-generated from OpenAPI spec. Do not edit directly. */}
+
+Connected account management
+
+## Endpoints
+
+- [List connected accounts with optional filters](/reference/api-reference/connected-accounts/list-connected-accounts-with-optional-filters)
+- [Create a new connected account](/reference/api-reference/connected-accounts/create-a-new-connected-account)
+- [Get connected account details by ID](/reference/api-reference/connected-accounts/get-connected-account-details-by-id)
+- [Delete a connected account](/reference/api-reference/connected-accounts/delete-a-connected-account)
+- [Enable or disable a connected account](/reference/api-reference/connected-accounts/enable-or-disable-a-connected-account)
+- [Refresh authentication for a connected account](/reference/api-reference/connected-accounts/refresh-authentication-for-a-connected-account)
+- [Create a new auth link session](/reference/api-reference/connected-accounts/create-a-new-auth-link-session)
diff --git a/docs/content/reference/api-reference/files.mdx b/docs/content/reference/api-reference/files.mdx
new file mode 100644
index 000000000..f37bc1d86
--- /dev/null
+++ b/docs/content/reference/api-reference/files.mdx
@@ -0,0 +1,13 @@
+---
+title: Files
+description: "File management"
+---
+
+{/* Auto-generated from OpenAPI spec. Do not edit directly. */}
+
+File management
+
+## Endpoints
+
+- [List files with optional app and action filters](/reference/api-reference/files/list-files-with-optional-app-and-action-filters)
+- [Create presigned URL for request file upload to S3](/reference/api-reference/files/create-presigned-url-for-request-file-upload-to-s3)
diff --git a/docs/content/reference/api-reference/mcp.mdx b/docs/content/reference/api-reference/mcp.mdx
new file mode 100644
index 000000000..426e26237
--- /dev/null
+++ b/docs/content/reference/api-reference/mcp.mdx
@@ -0,0 +1,22 @@
+---
+title: MCP
+description: "MCP server management"
+---
+
+{/* Auto-generated from OpenAPI spec. Do not edit directly. */}
+
+MCP server management
+
+## Endpoints
+
+- [List MCP servers with optional filters and pagination](/reference/api-reference/mcp/list-mcp-servers-with-optional-filters-and-pagination)
+- [Create a new MCP server](/reference/api-reference/mcp/create-a-new-mcp-server)
+- [Create a new custom MCP server with multiple apps](/reference/api-reference/mcp/create-a-new-custom-mcp-server-with-multiple-apps)
+- [Generate MCP URL with custom parameters](/reference/api-reference/mcp/generate-mcp-url-with-custom-parameters)
+- [Get MCP server details by ID](/reference/api-reference/mcp/get-mcp-server-details-by-id)
+- [Update MCP server configuration](/reference/api-reference/mcp/update-mcp-server-configuration)
+- [Delete an MCP server](/reference/api-reference/mcp/delete-an-mcp-server)
+- [List MCP servers for a specific app](/reference/api-reference/mcp/list-mcp-servers-for-a-specific-app)
+- [List all instances for an MCP server](/reference/api-reference/mcp/list-all-instances-for-an-mcp-server)
+- [Create a new MCP server instance](/reference/api-reference/mcp/create-a-new-mcp-server-instance)
+- [Delete an MCP server instance and associated connected accounts](/reference/api-reference/mcp/delete-an-mcp-server-instance-and-associated-connected-accounts)
diff --git a/docs/content/reference/api-reference/migration.mdx b/docs/content/reference/api-reference/migration.mdx
new file mode 100644
index 000000000..1ad67a273
--- /dev/null
+++ b/docs/content/reference/api-reference/migration.mdx
@@ -0,0 +1,12 @@
+---
+title: Migration
+description: "Endpoints to help with migration from v1 to v3"
+---
+
+{/* Auto-generated from OpenAPI spec. Do not edit directly. */}
+
+Endpoints to help with migration from v1 to v3
+
+## Endpoints
+
+- [Get NanoId from UUID](/reference/api-reference/migration/get-nanoid-from-uuid)
diff --git a/docs/content/reference/api-reference/projects.mdx b/docs/content/reference/api-reference/projects.mdx
new file mode 100644
index 000000000..a8c59772c
--- /dev/null
+++ b/docs/content/reference/api-reference/projects.mdx
@@ -0,0 +1,18 @@
+---
+title: Projects
+description: "Projects API endpoints"
+---
+
+{/* Auto-generated from OpenAPI spec. Do not edit directly. */}
+
+Projects API endpoints
+
+## Endpoints
+
+- [Get project configuration](/reference/api-reference/projects/get-project-configuration)
+- [Update project configuration](/reference/api-reference/projects/update-project-configuration)
+- [Create a new project](/reference/api-reference/projects/create-a-new-project)
+- [List all projects](/reference/api-reference/projects/list-all-projects)
+- [Get project details by ID With Org Api key](/reference/api-reference/projects/get-project-details-by-id-with-org-api-key)
+- [Delete a project](/reference/api-reference/projects/delete-a-project)
+- [Delete and generate new API key for project](/reference/api-reference/projects/delete-and-generate-new-api-key-for-project)
diff --git a/docs/content/reference/api-reference/tool-router.mdx b/docs/content/reference/api-reference/tool-router.mdx
new file mode 100644
index 000000000..78e6fa6a0
--- /dev/null
+++ b/docs/content/reference/api-reference/tool-router.mdx
@@ -0,0 +1,18 @@
+---
+title: Tool Router
+description: "(Labs) Tool router endpoints"
+---
+
+{/* Auto-generated from OpenAPI spec. Do not edit directly. */}
+
+(Labs) Tool router endpoints
+
+## Endpoints
+
+- [Create a new tool router session](/reference/api-reference/tool-router/create-a-new-tool-router-session)
+- [Execute a tool within a tool router session](/reference/api-reference/tool-router/execute-a-tool-within-a-tool-router-session)
+- [Execute a meta tool within a tool router session](/reference/api-reference/tool-router/execute-a-meta-tool-within-a-tool-router-session)
+- [Get a tool router session by ID](/reference/api-reference/tool-router/get-a-tool-router-session-by-id)
+- [Create a link session for a toolkit in a tool router session](/reference/api-reference/tool-router/create-a-link-session-for-a-toolkit-in-a-tool-router-session)
+- [Get toolkits for a tool router session](/reference/api-reference/tool-router/get-toolkits-for-a-tool-router-session)
+- [List meta tools with schemas for a tool router session](/reference/api-reference/tool-router/list-meta-tools-with-schemas-for-a-tool-router-session)
diff --git a/docs/content/reference/api-reference/toolkits.mdx b/docs/content/reference/api-reference/toolkits.mdx
new file mode 100644
index 000000000..d3bf75d3c
--- /dev/null
+++ b/docs/content/reference/api-reference/toolkits.mdx
@@ -0,0 +1,16 @@
+---
+title: Toolkits
+description: "Toolkit and tool management"
+---
+
+{/* Auto-generated from OpenAPI spec. Do not edit directly. */}
+
+Toolkit and tool management
+
+## Endpoints
+
+- [List available toolkits](/reference/api-reference/toolkits/list-available-toolkits)
+- [List toolkit categories](/reference/api-reference/toolkits/list-toolkit-categories)
+- [Get toolkit by slug](/reference/api-reference/toolkits/get-toolkit-by-slug)
+- [Fetch multiple toolkits](/reference/api-reference/toolkits/fetch-multiple-toolkits)
+- [Get toolkits changelog](/reference/api-reference/toolkits/get-toolkits-changelog)
diff --git a/docs/content/reference/api-reference/tools.mdx b/docs/content/reference/api-reference/tools.mdx
new file mode 100644
index 000000000..84a0b12fa
--- /dev/null
+++ b/docs/content/reference/api-reference/tools.mdx
@@ -0,0 +1,17 @@
+---
+title: Tools
+description: "Tool execution endpoints"
+---
+
+{/* Auto-generated from OpenAPI spec. Do not edit directly. */}
+
+Tool execution endpoints
+
+## Endpoints
+
+- [List available tools](/reference/api-reference/tools/list-available-tools)
+- [Get tool enum list](/reference/api-reference/tools/get-tool-enum-list)
+- [Get tool by slug](/reference/api-reference/tools/get-tool-by-slug)
+- [Execute tool](/reference/api-reference/tools/execute-tool)
+- [Generate tool inputs from natural language](/reference/api-reference/tools/generate-tool-inputs-from-natural-language)
+- [Execute proxy request](/reference/api-reference/tools/execute-proxy-request)
diff --git a/docs/content/reference/api-reference/triggers.mdx b/docs/content/reference/api-reference/triggers.mdx
new file mode 100644
index 000000000..65e3638b0
--- /dev/null
+++ b/docs/content/reference/api-reference/triggers.mdx
@@ -0,0 +1,18 @@
+---
+title: Triggers
+description: "Trigger management and execution"
+---
+
+{/* Auto-generated from OpenAPI spec. Do not edit directly. */}
+
+Trigger management and execution
+
+## Endpoints
+
+- [Create or update a trigger](/reference/api-reference/triggers/create-or-update-a-trigger)
+- [List active triggers](/reference/api-reference/triggers/list-active-triggers)
+- [Delete a trigger](/reference/api-reference/triggers/delete-a-trigger)
+- [Enable or disable a trigger](/reference/api-reference/triggers/enable-or-disable-a-trigger)
+- [List trigger type enums](/reference/api-reference/triggers/list-trigger-type-enums)
+- [Get trigger type by slug](/reference/api-reference/triggers/get-trigger-type-by-slug)
+- [List trigger types](/reference/api-reference/triggers/list-trigger-types)
diff --git a/docs/content/reference/index.mdx b/docs/content/reference/index.mdx
index d9cfd218f..4a00f4153 100644
--- a/docs/content/reference/index.mdx
+++ b/docs/content/reference/index.mdx
@@ -14,16 +14,14 @@ Composio powers tool discovery, execution, authentication, and context managemen
## REST API
-Browse endpoints in the sidebar. Key APIs include:
-
| API | Description |
|-----|-------------|
-| Tool Router | Session-based API for AI agents to discover and execute tools |
-| Tools | List, search, and execute individual actions |
-| Connected Accounts | Manage user OAuth connections to apps |
-| Auth Configs | Configure how users authenticate to toolkits |
-| Triggers | Subscribe to webhooks from connected apps |
-| Toolkits | Browse available apps and their tools |
+| [Tool Router](/reference/api-reference/tool-router) | Session-based API for AI agents to discover and execute tools |
+| [Tools](/reference/api-reference/tools) | List, search, and execute individual actions |
+| [Connected Accounts](/reference/api-reference/connected-accounts) | Manage user OAuth connections to apps |
+| [Auth Configs](/reference/api-reference/auth-configs) | Configure how users authenticate to toolkits |
+| [Triggers](/reference/api-reference/triggers) | Subscribe to webhooks from connected apps |
+| [Toolkits](/reference/api-reference/toolkits) | Browse available apps and their tools |
## SDK Reference
diff --git a/docs/package.json b/docs/package.json
index d1e9ecb9f..0ace93dfc 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -3,6 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
+ "prebuild": "bun scripts/generate-api-index.ts",
"build": "next build",
"dev": "next dev",
"start": "next start",
diff --git a/docs/scripts/generate-api-index.ts b/docs/scripts/generate-api-index.ts
new file mode 100644
index 000000000..e5d99ddaf
--- /dev/null
+++ b/docs/scripts/generate-api-index.ts
@@ -0,0 +1,98 @@
+/**
+ * Generates simple markdown index pages for each OpenAPI tag.
+ * These pages provide:
+ * - Tag description from OpenAPI spec
+ * - Links to all endpoints in that tag
+ *
+ * Run: bun scripts/generate-api-index.ts
+ */
+
+import { readFileSync, writeFileSync, mkdirSync } from 'fs';
+import { join } from 'path';
+
+interface OpenAPISpec {
+ tags: Array<{ name: string; description?: string }>;
+ paths: Record<string, Record<string, { summary?: string; tags?: string[]; description?: string }>>;
+}
+
+function slugify(text: string): string {
+ return text
+ .toLowerCase()
+ .replace(/[^a-z0-9]+/g, '-')
+ .replace(/^-|-$/g, '');
+}
+
+function generateIndexPages() {
+ // Read OpenAPI spec
+ const specPath = join(process.cwd(), 'public/openapi.json');
+ const spec: OpenAPISpec = JSON.parse(readFileSync(specPath, 'utf-8'));
+
+ // Build tag -> operations map
+ const tagOperations: Record<string, Array<{ summary: string; description?: string; method: string; path: string }>> = {};
+ const tagDescriptions: Record<string, string> = {};
+
+ // Get tag descriptions
+ for (const tag of spec.tags) {
+ tagDescriptions[tag.name] = tag.description || '';
+ tagOperations[tag.name] = [];
+ }
+
+ // Group operations by tag
+ for (const [path, methods] of Object.entries(spec.paths)) {
+ for (const [method, operation] of Object.entries(methods)) {
+ if (operation.tags) {
+ for (const tag of operation.tags) {
+ if (!tagOperations[tag]) {
+ tagOperations[tag] = [];
+ }
+ tagOperations[tag].push({
+ summary: operation.summary || `${method.toUpperCase()} ${path}`,
+ description: operation.description,
+ method: method.toUpperCase(),
+ path,
+ });
+ }
+ }
+ }
+ }
+
+ // Generate MDX files for each tag
+ const outputDir = join(process.cwd(), 'content/reference/api-reference');
+ mkdirSync(outputDir, { recursive: true });
+
+ for (const [tagName, operations] of Object.entries(tagOperations)) {
+ if (operations.length === 0) continue;
+
+ const tagSlug = slugify(tagName);
+ const tagDescription = tagDescriptions[tagName] || `${tagName} API endpoints`;
+
+ // Generate endpoint links
+ const endpointLinks = operations.map(op => {
+ const endpointSlug = slugify(op.summary);
+ const url = `/reference/api-reference/${tagSlug}/${endpointSlug}`;
+ return `- [${op.summary}](${url})`;
+ }).join('\n');
+
+ const content = `---
+title: ${tagName}
+description: "${tagDescription}"
+---
+
+{/* Auto-generated from OpenAPI spec. Do not edit directly. */}
+
+${tagDescription}
+
+## Endpoints
+
+${endpointLinks}
+`;
+
+ const filePath = join(outputDir, `${tagSlug}.mdx`);
+ writeFileSync(filePath, content);
+ console.log(`Generated: ${tagSlug}.mdx`);
+ }
+
+ console.log('Done generating API index pages');
+}
+
+generateIndexPages();