Skip to content

RapidBridge is Truto's sync job engine. It runs a sync job against your integrated accounts, now, on a schedule or when a workflow starts it, and delivers each batch of records to your webhook, or with runtime version 4, to a datastore. Use it when your product needs a copy of data from your customers' apps, kept up to date. Every run's log rows are under Logs → RapidBridge.

Skip the reading — fast path for coding agents
CLI
truto sync-job-runs create --sync-job-id <sync_job_id> --integrated-account-id <integrated_account_id> --webhook-id <webhook_id>
Skill
View truto-operator skill on GitHub Cursor / Claude Code: /skill truto-operator

Which runtime version should I use?

Use version 4 for every new sync job. This page's walkthrough and Creating a RapidBridge sync job use the format of versions 1 to 3; the webhook events apply to every version, with the differences noted.

Versions 1 to 3 Version 4
Use for Jobs you already run Every new job
Where output goes One destination per run: a webhook, SuperQuery or a daemon group destination nodes: webhooks and datastores, several per job
Accounts per run One, the run's integrated_account_id One or more, named in the run's args
Incremental sync {{previous_run_date}} get_state and update_state nodes
Reference Creating a RapidBridge sync job V4 sync job reference

How does a sync job run start?

  • Now: POST /sync-job-run, or Trigger run on the job in the dashboard.
  • On a schedule: a UTC cron expression, at most every five minutes. See Schedules.
  • When an account connects or a vendor webhook arrives: a workflow starts the run, or creates a schedule, for that integrated account.

What happens during a run?

Rapid Bridge

Start by setting up a sync job: the plan that lists which resources to fetch. Say you want to sync tickets, customers, and organizations from Zendesk; you list those resources in the sync job.

You can create and manage sync jobs from the dashboard under Sync Jobs in app.truto.one. See Using the Sync Jobs UI for a walkthrough of the list, detail tabs, runs, schedules, and templates.

Running the plan against one integrated account is a sync job run. To start one, you need the sync job's ID, the integrated account's ID, and the ID of your webhook, registered in Truto:

curl -X POST https://api.truto.one/sync-job-run \
  -H "Authorization: Bearer <API token>" \
  -H "Content-Type: application/json" \
  -d '{
    "sync_job_id": "<sync_job_id>",
    "integrated_account_id": "<integrated_account_id>",
    "webhook_id": "<webhook_id>"
  }'
truto sync-job-runs create \
  --sync-job-id <sync_job_id> \
  --integrated-account-id <integrated_account_id> \
  --webhook-id <webhook_id>

Here's the process in action:

  1. Truto sends sync_job_run:started to your webhook before it fetches anything.
  2. It fetches each resource and sends every page of records to your webhook as a sync_job_run:record event.
  3. Answer each event with a 2xx. If your endpoint refuses a sync_job_run:record page (after a few quick retries), versions 1 to 3 stop fetching that resource and the resources that depend on it, and version 4 drops the page. Either way the run carries on and can still end completed.

When every resource is fetched, Truto sends sync_job_run:completed.

Which webhook events does a run send?

  1. sync_job_run:created: the run exists. Truto sends it to every webhook in the environment that subscribes to it, not only the run's webhook.

  2. sync_job_run:started: sent before any data is fetched, unless the run's events_to_send leaves it out. On versions 1 to 3, answer it with a 400 to fail the run before it fetches anything. Version 4 ignores the answer.

  3. sync_job_run:record: each time Truto fetches a page of a resource, whether it holds one record or a batch, it sends the records in this event. This repeats until every resource in the sync job is fetched. The event looks like this:

    {
      "event": "sync_job_run:record",
      "payload": {
        "resource": "ticketing/tickets",
        "records": [{ "id": "1001", "subject": "Printer is on fire" }],
        "integrated_account_id": "<integrated_account_id>",
        "sync_job_run_id": "<sync_job_run_id>",
        "meta": { "method": "list", "next_cursor": "<cursor>" }
      }
    }

    Anything you pass as meta when you start the run is copied into each event's meta.

  4. sync_job_run:record_error: a fetch failed. Whether this event is sent depends on the error_handling setting; with its default, ignore, it is.

  5. sync_job_run:rate_limited: the integration's API rate-limited the run, so the sync pauses. The run's status reads rate_limited meanwhile. Truto waits as long as the provider's Retry-After asks, or 60 seconds; retryAfter in the payload is that wait in milliseconds. Then the sync resumes with sync_job_run:record events.

  6. sync_job_run:completed or sync_job_run:failed: the run ended. sync_job_run:completed means every resource was fetched. sync_job_run:failed means a critical error stopped the run. On runtime version 1, setting error_handling to fail_fast also ends the run with sync_job_run:failed on the first error.

A run you stop, with Stop run or DELETE /sync-job-run/{id}, ends with sync_job_run:deleted instead, sent to every webhook that subscribes to it.

Next

For a new job, start from the V4 sync job reference, start it for each customer with a workflow, and send its output to your webhook or a datastore. To build a version 1 to 3 job step by step, see Creating a RapidBridge sync job. To manage jobs, runs and schedules in the dashboard, see Using the Sync Jobs UI.