@devries-cameron20 / composio Mirror · read-only / commits / 7c0524614
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 API key format

kaavee315 committed Aug 14, 2025 at 18:53 UTC 7c0524614628ae7187519cd5bb5613b7a3518052
2 files changed +2 -2
fern/generators/tool_doc_generator/templates/python/api_key.py
+1 -1
@@ -14,7 +14,7 @@ def authenticate_toolkit(user_id: str, auth_config_id: str):
14 connection_request = composio.connected_accounts.initiate(
15 user_id=user_id,
16 auth_config_id=auth_config_id,
17 - config={"auth_scheme": "API_KEY", "val": user_api_key}
17 + config={"auth_scheme": "API_KEY", "val": {"generic_api_key": user_api_key}}
18 )
19
20 # API Key authentication is immediate - no redirect needed
fern/snippets/tool-calling/python/auth-tools.py
+1 -1
@@ -29,7 +29,7 @@ user_api_key = "sk_1234567890"
29 connection_request = composio.connected_accounts.initiate(
30 user_id=user_id,
31 auth_config_id=serp_auth_config_id,
32 - config={"auth_scheme": "API_KEY", "val": user_api_key},
32 + config={"auth_scheme": "API_KEY", "val": {"generic_api_key": user_api_key}},
33 )
34
35 # Auth scheme config for Airtable Bearer