Skip to content

Product Updates Guides

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

The 8 destinations Truto writes to, how one sync job serves every connected customer, and the pipeline parts your team would otherwise build.

The Truto Team The Truto Team · · 5 min read

Your team’s apps in Elaichi, from the team behind Truto, free for 14 days. Try Elaichi
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, 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).

The sync job runs on RapidBridge, 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).

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 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 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:

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).
  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).
  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 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, V4 sync job reference and Datastores docs.

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).
  • 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).
  • 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 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). The agent skills install with npx skills add trutohq/truto-skills (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 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 for what counts as a call.

FAQ

How do I sync my customers' SaaS data into my own database or warehouse?
Save your database, warehouse or bucket in Truto as a datastore. Then write one runtime version 4 sync job with a destination node of type datastore. Each run reads a connected customer account and writes the records into your datastore. Datastores are part of the Pro add-on.
Which destinations can a Truto sync job write to?
S3 and S3-compatible storage, Google Cloud Storage, Azure Blob Storage, Postgres, BigQuery, Snowflake, Pinecone and Qdrant. The MongoDB Data API type was removed because MongoDB ended the Atlas Data API.
Does Truto keep a copy of the synced records?
Truto keeps no copy of your customers' records; the sync writes them to your own storage. Truto keeps the datastore's credentials, encrypted and write-only, and the small state values a job saves, such as the time of the last sync.
How do incremental syncs and schedules work?
A schedule runs the job on a UTC cron expression, at most every five minutes. The job keeps a watermark with get_state and update_state nodes, so each run fetches only what changed. A workflow can start a run, or create a schedule, when a customer connects an account.
What happens when a write to my datastore fails?
The run sends a sync_job_run:record_error event to your webhooks and goes on. Truto does not replay the failed batch, and the watermark still moves. Watch for the event, and reset the job's state to backfill.
What does it cost?
Datastores come with 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 calls on Truto's managed Google and QuickBooks apps are priced separately.

Blog

More from our Blog

Start free today. Pay only for the calls you make.

Connections are free. 25,000 calls a month on the Free plan, no card.