Direct Token Injection
Create source connections or trigger syncs by supplying OAuth 2.0 tokens directly.
Create source connections or trigger syncs by supplying OAuth 2.0 tokens directly.
If you embed Airweave inside your own product you might already manage OAuth 2.0 tokens for your users. In that case, you do not want to have to ask them to click through a second consent screen for Airweave. Airweave therefore allows you to provide existing tokens to Airweave directly, so that
There are two common scenarios:
The next sections walk you through both flows.
Skip the OAuth 2.0 flow entirely by sending your own tokens in the POST /source-connections call. You are responsible for acquiring and storing these tokens, Airweave simply uses what you provide.
Creating a source connection with direct tokens looks like this:
OAuthTokenAuthentication.Here is an example:
Airweave also supports creating source connections through auth providers like Composio and Pipedream. Check out the Authentication Providers documentation to learn more.
If you have an edge case that isn’t covered by these features, please let us know at hello@airweave.ai.