Reverse ETL Sync

Reverse ETL Sync

Certified

Trigger a Segment Reverse ETL sync

Starts a manual Reverse ETL sync in Segment and optionally waits for completion with polling. Uses the Segment Public API with bearer token authentication.

yaml
type: io.kestra.plugin.twilio.segment.reverseetl.Sync
yaml
id: run_segment_sync
namespace: company.team

tasks:
  - id: segment_reverse_etl
    type: io.kestra.plugin.twilio.segment.reverseetl.Sync
    token: "{{ secret('SEGMENT_TOKEN') }}"
    sourceId: warehouse_id
    modelId: model_id
    subscriptionId: subscription_id
    wait: true
Installation

Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:

kestractl plugins get io.kestra.plugin:plugin-twilio --compatible-for $KESTRA_VERSION

For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.

For Kestra CLI, replace LATEST with a specific version or version range to pin the plugin version.

Properties

Reverse ETL model ID

The Segment Reverse ETL model ID to execute

Warehouse source ID

The Segment warehouse source ID backing the Reverse ETL sync

Subscription ID

The Segment Reverse ETL subscription (mapping) ID

Segment API token

Bearer token for Segment Public API calls; must include Reverse ETL scopes for these tasks

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
Defaultfalse

Fail on sync error

Whether the task should fail if the Reverse ETL sync finishes with a failure status; defaults to false

DefaultPT1H

Maximum wait duration

Maximum total time to wait for completion when wait=true; defaults to 1h

DefaultPT5S

Polling interval

How often to poll Segment for sync status while waiting; defaults to 5s

Defaulthttps://api.segmentapis.com

Segment API URL

Base URL for Segment API requests; defaults to https://api.segmentapis.com

Defaultfalse

Wait for completion

Whether to wait for the Reverse ETL sync to complete before finishing the task; defaults to false

Created sync payload

Creation response returned by Segment when the sync is triggered

Definitions
startedAtstring
Formatdate-time
syncIdstring

Final sync status

Returned only when wait=true

Definitions
durationstring
errorstring
errorCodestring
extractPhase
addedCountstring
deletedCountstring
extractCountstring
updatedCountstring
finishedAtstring
loadPhase
deliverFailureCountstring
deliverSuccessCountstring
modelIdstring
sourceIdstring
startedAtstring
syncIdstring
syncStatusstring

Reverse ETL sync ID