Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Add example
haxzie committed
Jun 12, 2025 at 17:50 UTC
38c1b1d6d657c6ce7927c410e86db043ddf8c8c4
1 file changed
+13
examples/connected-accounts/src/api-key.ts
new
+13
@@ -0,0 +1,13 @@
1
+import { AuthScheme, Composio } from '@composio/core';
2
+
3
+const composio = new Composio({
4
+ apiKey: process.env.COMPOSIO_API_KEY,
5
+});
6
+
7
+const connectionRequest = await composio.connectedAccounts.initiate('user_123', 'auth_config_123', {
8
+ config: AuthScheme.APIKey({
9
+ api_key: 'your_api_key',
10
+ }),
11
+});
12
+
13
+console.log(connectionRequest);