Quick Start
A rapid introduction to Swiftgum’s setup and usage.
Quick Start
This guide walks you through setting up Swiftgum in five simple steps.
Activate an Integration
With your admin account, navigate to Integrations in the Swiftgum dashboard. For example, to enable Google Drive:
- Toggle the Integration: Switch the integration status to “Enabled”.
- Enter OAuth Credentials:
Client ID
andClient Secret
(from your Google Developer Console), or leave them blank if already configured.- Click Update Integration to save changes.
Once an integration is Enabled, end users can connect personal or team accounts via the Swiftgum Portal.
Create a Portal Session
Next, call the /api/portal/session
endpoint to generate a sessionId for a specific user, allowing them to manage their newly enabled integration.
Response (200): The response contains a signed URL that the developer can directly use in the UI.
Redirect User to the Portal
- Use the returned
sessionId
to build a portal link: - Redirect your user to that link (e.g., from a “Manage Knowledge” button in your app).
- The user can now authorize Google Drive (or any other enabled integration) under their account, set permissions, etc.
- After finishing, they’ll be sent back to your specified
returnUrl
.
This short-lived portal link ensures secure user access to Swiftgum’s integration management without exposing your app’s internal credentials.
Configure a Webhook Destination
By default, Swiftgum functions as an ETL engine—fetching data from the enabled integrations. To receive that data in your system:
- Navigate to Webhook Destination in your Swiftgum admin dashboard.
- Specify your Endpoint (e.g.,
https://api.yourdomain.com/swiftgum-webhook
). - Swiftgum will send new or updated content to this endpoint after each fetch.
- Verify Delivery: Swiftgum will send a test POST request to validate connectivity.
Once configured, your system can automatically receive structured data for storage, AI workflows, or additional processing.
Example Webhook Response:
- Navigate to Webhook Destination in your Swiftgum admin dashboard.
- Specify your Endpoint (e.g.,
https://api.yourdomain.com/swiftgum-webhook
).- Swiftgum will send new or updated content to this endpoint after each fetch.
- Verify Delivery: Swiftgum will send a test POST request to validate connectivity.
Once configured, your system can automatically receive structured data for storage, AI workflows, or additional processing.
After saving, your system can handle incoming data (e.g., store in Supabase, parse for further AI workflows, etc.).
With these five steps, you have a working integration with Swiftgum—users can manage and authorize their content sources through the portal, and you can automatically receive that data via a webhook. Continue to the Installation guide if you’re exploring local hosting or advanced setups.