@devries-cameron20 / composio Mirror · read-only / commits / e99a6d076
Fork 0

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

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 20:45 UTC

Fix type error in Auth config docs and separate tabs in triggers (#1931)

Sushmitha Mallesh committed Sep 15, 2025 at 12:02 UTC e99a6d07690d628a446d098f3a76d26642468737
2 files changed +6 -8
fern/pages/src/tool-calling/authenticating-tools.mdx
+4 -2
@@ -166,7 +166,7 @@ print(f"Connection established: {connected_account.id}")
166
167 ````
168
169 -```typescript {10-14}
169 +```typescript {10-16}
170 import { Composio } from '@composio/core';
171
172 const composio = new Composio({apiKey: "YOUR_COMPOSIO_API_KEY"});
@@ -179,7 +179,9 @@ const userId = 'user_4567';
179 const connRequest = await composio.connectedAccounts.initiate(
180 userId,
181 authConfigId,
182 - callbackUrl: 'https://www.yourapp.com/callback'
182 + {
183 + callbackUrl: 'https://www.yourapp.com/callback',
184 + }
185 );
186 console.log(`Redirect URL: ${connRequest.redirectUrl}`);
187
fern/pages/src/triggers/using-triggers.mdx
+2 -6
@@ -24,8 +24,7 @@ Each event is delivered as a **structured payload** to your webhook endpoint (vi
24
25 You can create triggers using either the Composio dashboard or programmatically via the SDK.
26
27 -<Tabs>
28 -<Tab title="Dashboard">
27 +### Using dashboard
28 To create triggers through the **dashboard**:
29
30 - Navigate to the <a href="https://platform.composio.dev?next_page=%2Fauth-configs" target="_blank">Auth Configs</a> page
@@ -52,8 +51,7 @@ Some triggers require additional configuration. The dashboard will prompt you fo
51 />
52 </Frame>
53
55 -</Tab>
56 -<Tab title="SDK">
54 +### Using SDK
55 Create triggers programmatically by providing the trigger type and any required configuration.
56 <CodeGroup>
57 <SnippetCode
@@ -75,8 +73,6 @@ Create triggers programmatically by providing the trigger type and any required
73 />
74 </CodeGroup>
75
78 -</Tab>
79 -</Tabs>
76
77 ## Subscribing to triggers
78