Composio Integration Guide
Step-by-step guide to integrate Composio as an authentication provider for Airweave
Overview
Composio enables Airweave to access credentials from integrated applications. When your users connect their accounts through Composio, Airweave can automatically retrieve those credentials for data synchronization.
Prerequisites
- A Composio account with API access
- Your Composio API key
- Connected user accounts in Composio for the sources you want to sync
Setup Guide
Get your Composio API Key
- Log in to your Composio dashboard and navigate to your Project.
- Go to your Project settings.
- Copy your API key from the Project API Keys.
Connect Composio to Airweave
- Go to Airweave Auth Providers
- Click “Connect” next to Composio
- Enter your API key
- Provide a readable name for this connection
- Click “Save”
Find your connection details
To create source connections, you’ll need two identifiers from Composio:
auth_config_id
: Navigate to your Auth Configs pageaccount_id
: Click on an auth config to see its connected accounts
Tip: In Composio, one auth config can have multiple connected accounts, allowing you to manage different user connections under the same integration.
How It Works
Field Mappings
Some sources use different field names between Airweave and Composio:
These mappings are handled automatically by Airweave.
Troubleshooting
No matching connection found
- Verify the
auth_config_id
andaccount_id
are correct - Ensure the account is connected in Composio
- Check that the integration type matches (e.g.,
google_drive
vsgoogledrive
)
Missing required auth fields
- The source may require additional fields not available in Composio
- Check the field mappings section above
- Contact support if a mapping is missing
Authentication failed
- Verify your Composio API key is valid
- Check if the user’s connection in Composio is still active
- Ensure the connected account has the necessary permissions
API Reference
For full API details, see the Source Connections API reference.