Reverse ETL
Pull rows from Snowflake, your own S3 bucket, SFTP, data lake tables, or an HTTP API into Ours Privacy as visitor profile updates and events, on a schedule you choose, through the same consent and governance rules as your website data.
Reverse ETL pulls data that already lives in your warehouse, data lake, or file drops into Ours Privacy. Each row becomes a visitor profile update, an event, or both, so offline outcomes such as appointments, orders, and account changes join the same journey as your website activity and flow to your destinations under the consent, mapping, and governance rules you already run.
Use it when the data you want to act on is already modeled somewhere else and you do not want to build a second integration to get it into your CDP.
Your account representative sets up Reverse ETL with you. Contact them to request it.

What You Can Connect
- Snowflake: a table or a single SQL query, read with a read-only role.
- Your own Amazon S3 bucket: CSV or JSON Lines files, read through a read-only role you grant on one prefix.
- SFTP: files dropped on an SFTP server Ours Privacy hosts for you, or files on your own server.
- Data lake tables: open table formats read through a distributed SQL query engine you already run.
- HTTP APIs: paginated collections from an internal service or a vendor API.
Teams on BigQuery, Databricks, Redshift, or Postgres start with a scheduled export to an S3 bucket or an SFTP drop, which Ours Privacy then reads on the same schedule.
Connection details for each source are on Connecting Reverse ETL Sources.
How a Sync Works
Every source follows the same shape: a connection, a definition of what to read, a transform that maps each row, and a schedule.
- Ours Privacy reads what is new. A query source uses a timestamp column, such as an updated-at time, to pick up rows changed since the last run, with a lookback of up to 30 days to catch late updates. Without one, every run reads the full table or query result. A file source tracks each file version and imports it once; a replaced file is read again as a new version. An HTTP source reads the full collection on every run.
- A transform maps each row. The transform turns a row into visitor updates, events, or nothing. See Transforms.
- Rows enter through the standard ingestion path. Imported data goes through the same ingestion API as your website and server events, so identity resolution, allowed events, Global Data Governance, mappings, and consent conditions apply the same way. There is no separate path for warehouse data.
- Data goes on to destinations. Imported visitor properties and events are ordinary Ours Privacy data from that point, including for Audiences.
Schedules
A source runs on any interval from once a minute to once a year, or only when requested. Your account representative sets the schedule with you and can run a source on request outside it.
Queries run in your warehouse
Write a query instead of naming a table when you need a filter, a join, or a computed column. The query runs in your warehouse, so your joins, deduplication, and business logic stay where they already live. Ours Privacy reads the result and nothing else.
SELECT appointment_id, patient_external_id, email, service_line, completed_at
FROM appointments
WHERE status = 'completed'What a Row Becomes
- A visitor update. Keyed by external ID, user ID, or email, with the properties you choose. Imported properties overwrite the same property on the visitor profile; they are not merged.
- An event. With a name, an identifier for the visitor, a stable event ID, and the time the action happened. You can send events up to one year old.
- Nothing. A transform can skip a row, which is how you leave out test accounts or rows that are not ready.
Imports never delete. A row that disappears from your export removes nothing in Ours Privacy. To record that an appointment was cancelled or a visit was reclassified, send an event that states the current status, following Standard Healthcare Events.
Transforms
A transform is a short TypeScript function that maps one row to visitor updates and events. Your account representative writes it with you and previews its output against a sample file or query result before the first run. The transform runs in an isolated sandbox and can only shape the data it is given.
export default defineTransform((row) => ({
visitors: [
{
externalId: String(row.patient_external_id),
email: row.email,
userProperties: { custom_properties: { service_line: row.service_line } },
},
],
events: [
{
event: 'appointment_completed',
externalId: String(row.patient_external_id),
distinctId: `appointment-completed:${row.appointment_id}`,
time: Number(row.completed_at_ms),
},
],
}));- Return
{}to skip a row. - Give events a stable ID. A
distinctIdbuilt from your own record ID means a re-run or an overlapping window never creates a duplicate. - Pass the original timestamp. Back-dated rows land on the day the action happened.
- Need another column? Add it to the query or the export. The transform sees every column the source returns, so a wider query is the simplest way to give it more to work with.
Approval and Security
- An import can write nothing until its output is approved. Before the first run, you and your account representative agree the exact list of event names and visitor properties the import may produce. The default allows nothing, and a later change to the import cannot widen the list on its own.
- A bad row stops the import. A row the transform cannot map, or an event name or property outside the approved list, stops the run instead of being dropped. Data delivered before the failure remains delivered. Your account representative reviews the row with you.
- Credentials are read-only and stored as references. The import definition holds only a reference to a credential, never the value. For S3, you grant a dedicated role on one prefix in your own bucket policy and no access keys change hands; the role shows up in your own CloudTrail under the source's name.
- Every run is isolated. Each run executes in its own fresh environment that cannot reach Ours Privacy internal systems and never holds your ingestion token. Logs record counts and error codes, never your rows.
- Files are short-lived. Files dropped for import are deleted seven days after upload.
Limits
| Limit | Default |
|---|---|
| Imported data per source | 1 GB per day, raisable on request |
| File size | 1 GB |
| Row size | 256 KB, raisable to 1 MB |
| Event time | Up to one year old |
| Event names | Up to 100 approved names per source |
| Visitor properties | Up to 100 approved properties per source |
A run that fails is retried with increasing delays. After repeated failures the source pauses for review, and your account representative resolves it with you before runs resume. Imported visitor updates are delivered at least once, so a repeated update is harmless.
Next Steps
- Connecting Reverse ETL Sources: how each source authenticates and what to prepare.
- Ingest API Integration: the same ingestion path, if you would rather push from your own scheduler.
- Standard Healthcare Events: event names and properties for appointment and revenue outcomes.
- Visitor Identity and Matching: how external IDs and emails resolve to a visitor.
- Send EHR Data From Your Data Warehouse: the healthcare-specific version of this workflow.
How is this guide?

