---
title: "How to Sync Your Customers' SaaS Data Into Your Own Database, Warehouse or Bucket"
slug: sync-customer-saas-data-to-your-own-database-warehouse-or-bucket
date: 2026-12-03
author: The Truto Team
categories: [Product Updates, Guides]
excerpt: "The 8 destinations Truto writes to, how one sync job serves every connected customer, and the pipeline parts your team would otherwise build."
tldr: "With the Pro add-on, a Truto sync job reads each customer's connected app and writes the records straight into your own S3, Google Cloud Storage, Azure Blob Storage, Postgres, BigQuery, Snowflake, Pinecone or Qdrant. Truto runs the schedule, the incremental state, pagination and retries. Truto keeps no copy of your customers' records; the sync writes them to your own storage."
canonical: https://truto.one/blog/sync-customer-saas-data-to-your-own-database-warehouse-or-bucket/
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://truto.one/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# How to Sync Your Customers' SaaS Data Into Your Own Database, Warehouse or Bucket


Your product needs a copy of each customer's CRM, ticketing or HR data in your own storage. Truto can write it there for you. A sync job reads every connected customer account and writes the records into your own database, warehouse, bucket or vector index. You do not build or run the pipeline. On [Truto's pricing page](https://truto.one/pricing/), this is the "Sync connection data directly to your own storage" item of the Pro add-on.

## What the feature does

A **datastore** is a bucket, database or vector index of yours that Truto can write to. You save its credentials once in an environment. Then sync jobs in that environment write their output straight into it, instead of sending it to your webhook ([Datastores docs](https://truto.one/docs/guides/datastores/overview)).

The sync job runs on [RapidBridge](https://truto.one/docs/guides/rapid-bridge/overview), Truto's sync job engine. A job reads data through the Unified and Proxy APIs for each connected account, reshapes it with JSONata and sends it to its destinations ([V4 sync job reference](https://truto.one/docs/guides/sync-jobs/v4-reference)).

The records land in your account. Truto keeps no copy of your customers' records; the sync writes them to your own storage. The [companion post on residency and retention](https://truto.one/blog/keep-customer-saas-data-in-your-own-storage-residency-retention/) covers what Truto does keep.

## The 8 destinations

| Destination | Methods |
|---|---|
| S3 or S3-compatible | `uploadObject`, `listObjects` |
| Google Cloud Storage | `uploadObject`, `listObjects` |
| Azure Blob Storage | `uploadObject`, `listObjects` |
| Postgres | `insertRows`, `upsertRows`, `deleteRows`, `executeStatement` |
| BigQuery | `insertRows` |
| Snowflake | `insertRows`, `executeStatement` |
| Pinecone | `upsertDocuments`, `upsert`, `deleteDocuments` and more |
| Qdrant | `upsertPoints`, `deletePoints`, `setPayload` and more |

Source: the [supported types table](https://truto.one/docs/guides/datastores/overview#supported-types) in the Datastores docs. The MongoDB Data API type was removed, because MongoDB ended the Atlas Data API.

Each destination has its own guide on this blog:

- [Postgres, Neon and Supabase: upserts and pgvector](https://truto.one/blog/sync-saas-data-to-postgres-upserts-pgvector-neon-supabase/)
- [BigQuery: streaming inserts and deduplication](https://truto.one/blog/sync-saas-data-to-bigquery-streaming-inserts-deduplication/)
- [Snowflake: key-pair auth and VARIANT columns](https://truto.one/blog/load-saas-data-to-snowflake-key-pair-auth-sql-api-variant-columns/)
- [Pinecone: upserts and namespaces for RAG](https://truto.one/blog/sync-saas-data-to-pinecone-for-rag-upserts-namespaces/)
- [Azure Blob Storage: SAS tokens and archives](https://truto.one/blog/archive-saas-api-data-to-azure-blob-sas-tokens-sync-jobs/)

## How a sync reaches your storage

1. **Save the datastore.** Create it in the dashboard, through `POST /datastore`, or with `truto datastores create`. Truto can test the credentials before it saves them. If a test fails, nothing is saved ([create a datastore](https://truto.one/docs/guides/datastores/overview#1-create-a-datastore)).
2. **Write one sync job.** A runtime version 4 job holds request, transform, state and destination nodes. A destination node with `destination_type: "datastore"` names the datastore, the method and its input ([write sync job output](https://truto.one/docs/guides/datastores/overview#3-write-sync-job-output-to-it)).
3. **Pass the account and the datastore in `args`.** The same job serves every customer. Truto checks that the datastore belongs to the job's environment before the run starts.
4. **Start runs.** Start a run with `POST /sync-job-run`, on a schedule, or from a [workflow](https://truto.one/docs/guides/workflows/overview) when a customer connects an account or a batch of the app's webhook events arrives.

A destination node can write each customer's records under a path of its own, for example `crm/contacts/{{args.integrated_account_id}}` in a bucket. In Postgres, `upsertRows` with `conflict_columns` updates a row that exists and inserts a new one.

## What your team would build without it

| Part | Truto runs | You build |
|---|---|---|
| Destination clients | 8 types, each with tested methods | A client, auth and error handling per destination |
| Per-customer runs | One job, accounts and datastore in `args` | Fan-out code and a job per customer |
| Schedules | UTC cron, `mutex_key` skips overlaps | A scheduler, locks and pause controls |
| Incremental sync | `get_state` and `update_state` | A watermark store per customer and object |
| Pagination | Fetches page after page; `paginate_if` can stop early | Pagination code per API |
| Retries | 5xx and timeouts retried 3 times; 429 waits | Backoff and retry code per API |
| Reshaping | JSONata transforms, Parquet, files | Transform code and a deploy |
| Secrets | Encrypted, write-only datastore credentials | A secrets store and redaction |
| Monitoring | Run statuses, events, logs | Alerts and a run history |

Sources: [Sync Jobs overview](https://truto.one/docs/guides/sync-jobs/overview), [V4 sync job reference](https://truto.one/docs/guides/sync-jobs/v4-reference) and [Datastores docs](https://truto.one/docs/guides/datastores/overview).

Some details on each part:

- **Schedules.** A schedule runs in UTC with a minimum interval of five minutes. With a `mutex_key`, Truto skips a run that is due while an earlier run with the same key is still going. You can pause a schedule and turn it on again ([Schedules](https://truto.one/docs/guides/sync-jobs/overview#schedules)).
- **Incremental sync.** `get_state` reads a value such as the time of the last sync, and `update_state` moves it when the run completes. You can inspect and reset the state on the job's Run State tab. Truto deletes a state value after about 30 days with no run that reads or writes it.
- **Rate limits.** When the app answers `429`, the run waits for its `Retry-After`, or 60 seconds, and then fetches the page again. A `5xx` or a timeout is retried 3 times ([What happens when a request fails](https://truto.one/docs/guides/sync-jobs/v4-reference#what-happens-when-a-request-fails)).
- **Transforms.** JSONata reshapes records before the write. `$jsonToParquet` turns records into Parquet for a bucket upload, and binary files from the app upload as they are.
- **Monitoring.** A run shows Created, Running, Rate limited, Completed, Failed or Stopped. Truto sends `sync_job_run` events to your webhooks, and every run's log rows are under Logs → RapidBridge.

## Where you still own the work

A sync job is not a full data platform. Plan for these points:

- **A failed write does not stop the run.** A datastore call that fails sends `sync_job_run:record_error`, with the datastore's id, and the run goes on. Truto does not replay the batch, and the watermark still moves. Watch for the event, and reset the state to backfill.
- **Table design is yours.** You create the tables, columns and indexes. When an app adds a field, you decide whether the table gets a new column or a JSON column.
- **Runtime version 4 only.** Versions 1 to 3 have no destination nodes.
- **Qdrant has no test method.** The other 7 types can be tested before a sync writes to them.

## Set it up with a coding agent

A coding agent can do the setup from the terminal. The [Truto CLI](https://truto.one/cli/) has `truto datastores create` and `truto datastores test`, plus `truto sync-jobs`, `truto sync-job-runs` and `truto sync-job-triggers` for jobs, runs and schedules ([CLI admin resources](https://truto.one/docs/cli/admin-resources)). The agent skills install with `npx skills add trutohq/truto-skills` ([CLI installation](https://truto.one/docs/cli/installation)).

The agent writes the job as JSON. Truto runs it for every customer, with the auth, token refresh, pagination, retries and monitoring that an integration needs in production.

## Synced data next to live calls

A synced copy is good for search, reports and retrieval. Some reads and every write must go to the app live. The post [Synced data or live API calls: how an AI agent uses both](https://truto.one/blog/ai-agent-synced-data-vs-live-proxy-api-calls/) shows how one connected account serves both.

## Pricing

Datastores are part of the Pro add-on, at $499 a month. The Free plan includes a 30-day trial of Pro. API calls cost $5 per 100,000 from the first call, and connections are free. Calls on Truto's managed Google and QuickBooks apps are priced separately. See [pricing](https://truto.one/pricing/) for what counts as a call.
