@devries-cameron20 / composio Mirror · read-only / commits / 7cf5c0440
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, 03:15 UTC

docs: fix Python import path and add missing output to examples

- Use public import `from composio.types import auth_scheme` instead of internal module path - Add "immediately active" comments and connection ID output to bearer token and basic auth examples Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmitha Mallesh committed Mar 9, 2026 at 18:39 UTC 7cf5c0440476f68829a8b6ad6234d2f397906a34
1 file changed +16 -4
docs/content/docs/importing-existing-connections.mdx
+16 -4
@@ -40,7 +40,7 @@ The most common case. You have access tokens (and ideally refresh tokens) from y
40 <Tab value="Python">
41 ```python
42 from composio import Composio
43 -from composio.core.models.connected_accounts import auth_scheme
43 +from composio.types import auth_scheme
44
45 composio = Composio(api_key="your-api-key")
46
@@ -96,7 +96,7 @@ For services that use API key authentication (e.g., SendGrid, Tavily, PostHog):
96 <Tab value="Python">
97 ```python
98 from composio import Composio
99 -from composio.core.models.connected_accounts import auth_scheme
99 +from composio.types import auth_scheme
100
101 composio = Composio(api_key="your-api-key")
102
@@ -140,7 +140,7 @@ console.log('Connected:', connection.id);
140 <Tab value="Python">
141 ```python
142 from composio import Composio
143 -from composio.core.models.connected_accounts import auth_scheme
143 +from composio.types import auth_scheme
144
145 composio = Composio(api_key="your-api-key")
146
@@ -151,6 +151,9 @@ connection = composio.connected_accounts.initiate(
151 "token": "existing-bearer-token",
152 }),
153 )
154 +
155 +# Bearer token connections are immediately active
156 +print(f"Connected: {connection.id}")
157 ```
158 </Tab>
159 <Tab value="TypeScript">
@@ -168,6 +171,9 @@ const connection = await composio.connectedAccounts.initiate(
171 }),
172 }
173 );
174 +
175 +// Bearer token connections are immediately active
176 +console.log('Connected:', connection.id);
177 ```
178 </Tab>
179 </Tabs>
@@ -178,7 +184,7 @@ const connection = await composio.connectedAccounts.initiate(
184 <Tab value="Python">
185 ```python
186 from composio import Composio
181 -from composio.core.models.connected_accounts import auth_scheme
187 +from composio.types import auth_scheme
188
189 composio = Composio(api_key="your-api-key")
190
@@ -190,6 +196,9 @@ connection = composio.connected_accounts.initiate(
196 "password": "existing-password",
197 }),
198 )
199 +
200 +# Basic auth connections are immediately active
201 +print(f"Connected: {connection.id}")
202 ```
203 </Tab>
204 <Tab value="TypeScript">
@@ -208,6 +217,9 @@ const connection = await composio.connectedAccounts.initiate(
217 }),
218 }
219 );
220 +
221 +// Basic auth connections are immediately active
222 +console.log('Connected:', connection.id);
223 ```
224 </Tab>
225 </Tabs>