Snowflake integration
Connect TheyDo to Snowflake to pull warehouse data into your metrics. Once set up, you can write SQL queries to define your metrics and have them update automatically from your Snowflake data.
Before you start
- You need integration-management permission in TheyDo.
- You should have a Snowflake service account with at least USAGE privileges on the database.
- TheyDo uses key pair authentication to connect to Snowflake. Confirm this method is compliant with your company's security policies.
- Your data team should whitelist TheyDo's IP addresses (see below).
- Have your Snowflake data team on hand during setup — you'll need to run a command in Snowflake as part of the process.
Tip: Before starting, prepare a table in Snowflake that follows TheyDo's data format requirements (see "Prepare your data" below). This will make the setup process smoother.
How to set up the Snowflake integration
Step 1: Enter your Snowflake connection details
- Go to Settings > Integrations in TheyDo.
- Find Snowflake under Data integrations and select Enable.
- Fill in the following fields (your data team can help retrieve these):
- Instance Name — a name for this connection in TheyDo
- Host
- Database Name
- Warehouse Name
- Account
- Username
Step 2: Generate a public key
- Once all fields are filled, click Generate public key.
- TheyDo will display an RSA Public Key and a command to run in Snowflake.
Step 3: Authorize in Snowflake
- Open Snowflake and go to Query Data.
- Copy the SQL command from TheyDo and run it in the Snowflake editor.
- Once you receive a success message, return to TheyDo.
- Check the box "I have run the ALTER USER command in Snowflake".
- Click Test & Authorize to complete the connection.
Whitelist TheyDo's IP addresses
Your data team needs to whitelist the following IP addresses so TheyDo can connect to Snowflake:
| Region | IP addresses |
|---|---|
| US (us-west-2) | 35.84.98.216, 54.244.86.126, 35.80.222.253 |
| Europe (eu-west-1) | 54.195.123.180, 108.128.79.6, 99.80.158.204 |
Prepare your data in Snowflake
Your Snowflake tables must return the correct columns for each metric type:
| Metric type | Required columns |
|---|---|
| CSAT | date, positives, negatives, respondents |
| CES | date, respondents, value |
| NPS | date, detractors, promoters, respondents |
| RATIO | date, numerator, denominator |
| OTHER | date, value |
Supported data types:
- Date columns:
DATE - Metric value columns:
INTEGER,FLOAT, orNUMERIC
Column aliasing: If your table uses different column names, you can use SQL aliasing in your query. For example:
sql
SELECT det AS detractors, ... FROM project_id.dataset_id.your_table_name
Dimensions
Any extra columns in your query, like country, product, channel, or segment, automatically become dimensions you can filter by in TheyDo.
This means you can write one query and create multiple filtered views of the same metric, instead of writing a separate query for every variation.
Rotate your credentials
Many security teams require warehouse credentials to be replaced on a schedule, or straight away if they may have been exposed. You can rotate the key pair TheyDo uses at any time, with no interruption to your metrics. Snowflake lets a user hold two public keys at once, so TheyDo registers the new key next to the old one, checks it works, and only then switches.
- Go to
Settings > Integrationsand open your Snowflake integration. - In the
Credentialssection, clickRotate key, thenGenerate new key.


- Copy the
ALTER USER ... SETcommand TheyDo shows and run it in Snowflake. This adds the new key alongside the current one. - Back in TheyDo, tick
I have run this command in Snowflakeand clickVerify and switch. TheyDo signs in with the new key and makes it active. - Copy the
ALTER USER ... UNSETcommand from the final step and run it in Snowflake to remove the old key.
Note: Don't skip step 5. Until you run the
UNSETcommand, the old key can still sign in to Snowflake. TheyDo reminds you in theCredentialssection while an old key is still registered.
If Snowflake rejects the new key, TheyDo shows the error and keeps the current key active. If you close the dialog midway, click Rotate key and then Continue rotation to pick up where you left off, or Discard new key to cancel. To double-check the key Snowflake registered, compare the fingerprint shown in TheyDo with the output of DESC USER.
Connected with a password instead? Change the password in Snowflake first, then click Update password in the Credentials section, enter it, and click Test and save. Metric syncs pause between the two steps, so do them back to back.
Every rotation and password update is recorded in your organization's activity log.
Snowflake PrivateLink (optional)
For enterprise teams with stricter security requirements, TheyDo supports connecting via Snowflake PrivateLink. This keeps data traffic off the public internet.
- Requires a Business Critical Snowflake edition or higher.
- Involves additional setup on both the Snowflake and cloud infrastructure side.
If you're interested in PrivateLink, reach out to your Customer Success Manager.
Security and storage
- Data is stored on AWS.
- TheyDo stores partial Snowflake data for up to 60 days to display metrics.
- Data is encrypted at rest.
- More information is available at trust.theydo.com.