API Concepts
This page explains the core concepts you’ll work with in the Airweave API. Understanding these entities will help you effectively use the API endpoints below.
Sources
Sources are the available data connectors in Airweave. Think of them as the “types” of apps and databases you can connect to.
- What they are: Pre-built connectors (e.g., “Notion”, “Slack”, “Google Drive”)
- What they define: Authentication methods, configuration options, and data extraction logic
- Key point: Sources are templates - you don’t connect to them directly
Collections
Collections are logical groups of data sources that create unified, searchable knowledge bases.
- What they are: Project workspaces where related data comes together
- What they provide: A single search endpoint that queries across multiple connected sources
- Key point: Each collection gets its own API endpoint for searching
Source Connections
Source Connections are the live connections to your data sources that Airweave uses to sync and transform your data into searchable information.
- What they are: Configured instances of sources with your actual credentials (e.g., “My Team’s Slack Workspace”)
- What they do: Airweave uses these connections to actively sync data from your apps and databases
- How they work: Transform your raw data into searchable, structured information within collections
- Key point: These are the actual data pipelines that make your information searchable
Relationship
Here’s how they work together:
- Create a Collection for organized searching
- Choose a Source to add to the collection (e.g., “Notion”)
- Add a Source Connection in the collection with your credentials
- Optionally use White Label for custom branding
Quick Example: Create a “Finance” collection, choose the “Stripe” source, create a source connection with your Stripe API key, wait for the data sync to complete and call the search collectoin endpoint. Optionally use white label so users see “YourApp wants to access Stripe” instead of “Airweave wants to access Stripe”.