Adding a data source
Use this guide when you need to add a new source in Dalgo or prepare source-specific credentials for the team.
What a source means in Dalgo
A source is the external system where data already lives. Common examples include Zoho, KoboToolbox, Google Sheets, CommCare, Avni, and other operational tools. Adding a source stores the access details for that system so Dalgo can read from it. A separate connection decides which tables or streams should sync into the warehouse.
Add a source in Dalgo
- Open
Ingestand select theSourcestab. - Click
+ New Source.
- Enter a clear name for the source.
- Select the source type. Dalgo will show the fields required for that source.
- Enter the requested credentials or access details.
- Click
Save changes and test. - If the test succeeds, the source is ready to be used in a connection.
Note: The exact credentials vary by source. Some integrations use an API key or username and password, while others require OAuth or a service account JSON file.
Google Sheets access using a service account
Use this section only if the Google Sheet is not already publicly viewable or accessible through another approved authentication flow.
If your spreadsheet is viewable by anyone with the link, no additional setup may be needed. If it is restricted, create a service account, enable the Google Sheets API, generate a JSON key, and share the sheet with the service account email.
Create a service account
- Open the Service Accounts Page in Google Cloud.
- Select an existing project, or create a new project.
- Click
+ Create service account. - Enter a name and description, then click
Create and Continue. - Under
Service account permissions, choose the minimum access required.Vieweris usually enough for Google Sheets access.
Generate a key
- Go to the API Console / Credentials page.
- Click the email address of the service account you just created.
- Open the
Keystab, click+ Add key, and selectCreate new key. - Select
JSONas the key type and download the key file. - Store the key securely. Use this JSON file when Dalgo asks for the Google Sheets source credentials.
Enable the Google Sheets API
- Open the API Console / Library page.
- Make sure the correct project is selected.
- Search for
Google Sheets API. - Click
Enable.
Share the sheet with the service account
- Open the Google Sheet you want Dalgo to read.
- Click
Share. - Add the service account email address as a viewer, unless a different permission level is required for your setup.
- Save the sharing settings.