SDK version
Theme

Data Export

File Format & Layout

This page covers everything about how exported files appear in your bucket: the path layout, the file format itself, idempotency, and how to reason about ordering. Per-record schemas are on the Datasets page.


Bucket layout

Snapshot and change-stream files are written to distinct paths:

<your-prefix>/<dataset>/snapshot/<chunk-id>.jsonl.gz
<your-prefix>/<dataset>/cdc/date=YYYY-MM-DD/<chunk-id>.jsonl.gz

For example:

exports/fan_profiles/snapshot/128025bc-ce03-46e4-a010-558c130f188e.jsonl.gz
exports/fan_profiles/cdc/date=2026-07-28/128025bc-ce03-46e4-a010-558c130f188e.jsonl.gz
exports/messages/snapshot/5d0c8a4e-3f6b-4c1d-9a27-b1e4f0c2d7a9.jsonl.gz
exports/messages/cdc/date=2026-07-28/5d0c8a4e-3f6b-4c1d-9a27-b1e4f0c2d7a9.jsonl.gz

Every dataset, fan or entity, uses the same layout under its own <dataset> folder.

SegmentNotes
<your-prefix>The optional prefix you configured on the destination. Omitted (with no leading slash) when blank.
<dataset>One of fan_profiles, fan_identity_graph, fan_profile_merges, fan_track_events, messages, journeys, automations, tags, subscriptions, or workspace_members.
snapshot/Initial or rerun point-in-time snapshot files. Snapshot paths do not include a date partition.
cdc/Ongoing change-stream files.
date=YYYY-MM-DDThe UTC date associated with the change-stream file, expressed as a Hive-style partition. This segment is present only under cdc/.
<chunk-id>.jsonl.gzAn opaque, unique filename. Filenames are deterministic, so re-delivery of the same underlying file produces the same object key and list-and-process loaders deduplicate naturally on key.

The Hive-style date= partition under cdc/ is recognized by most warehouse loaders (BigQuery external tables, Athena, Snowflake external stages, Databricks, etc.) and lets you prune ongoing change-stream scans to specific UTC dates. Snapshot files remain together under the dataset's snapshot/ prefix.


File format

  • Encoding: UTF-8.
  • Compression: gzip, a single concatenated gzip stream per file.
  • Format: NDJSON, one JSON object per line, \n-terminated. A trailing newline is not guaranteed.
  • Atomicity: every file is a whole-object write; there are no partial uploads. A retry after a transient failure may replace an existing object at the same key with an equivalent payload, but a given object key, once visible, is always a complete, valid file.

Because every visible file is complete and named deterministically, you can list the bucket and process new objects with no risk of reading a partial file.


Idempotency and ordering

Every record carries an id field that is deterministic within a delivery: replays of the same record during at-least-once retry edge cases always produce the same id. Treat id as the primary key when loading into a warehouse so duplicate files collapse on insert.

Snapshot reruns produce new ids

A snapshot rerun (see Setup) re-emits every existing row with new id values, not the originals. An upsert-by-id load will see them as new records, not duplicates of what is already loaded. Plan for this by deduplicating on (roverID, updatedAt) (or the dataset's event-time field) when processing a rerun, or by truncating and reloading the affected partitions. Entity datasets are unaffected if you keep the latest record per entityID.

File ordering across partitions is not guaranteed. Use the event-time field inside each record to reason about chronological order, not the filename timestamp:

DatasetEvent-time field
fan_profilesupdatedAt
fan_identity_graphupdatedAt
fan_profile_mergesoccurredAt
fan_track_eventstimestamp
messages, journeys, automations, tags, subscriptions, workspace_membersemittedAt

The entity datasets are the exception to the rule that emittedAt is not an event time. Each of their records is the full current state of one entity as Rover read it at emittedAt, so the record with the largest emittedAt for an entityID is the current one. The updatedAt inside data is not a substitute: it is absent on workspace_members.

The filename timestamp is when the file was written, not when the underlying event occurred.


Snapshot vs change stream

The three fan state datasets — fan_profiles, fan_identity_graph, and fan_profile_merges — and the six entity datasets — messages, journeys, automations, tags, subscriptions, and workspace_members — are delivered in two phases:

  • Snapshot: an initial point-in-time set of every existing row at the moment the destination was enabled (or the moment a snapshot rerun was requested). Files land under <your-prefix>/<dataset>/snapshot/. All records in a snapshot represent state, not changes.
  • Change stream: every subsequent insert / update / delete from that point forward. Files land under <your-prefix>/<dataset>/cdc/date=YYYY-MM-DD/.

The snapshot for a dataset completes before its steady-state change stream begins flowing for that dataset, so when you point a loader at a freshly-enabled destination you'll see the snapshot land first, then change-stream files arrive on a rolling basis.

fan_track_events is change-stream only; it has no snapshot phase. Track events are append-only behavioral signals (SDK telemetry and Rover message-lifecycle events), so there is no historical state to replay; files for this dataset begin arriving as new events occur after the destination is enabled.

You generally do not need to distinguish snapshot records from change-stream records when loading: an upsert by id works for either within a single export run. The datasets where the distinction shows up in the payload are fan_identity_graph and the six entity datasets, where change-stream records carry a meaningful operation field (create / update / delete for fan_identity_graph; create / update for the entity datasets); snapshot records are always emitted as operation: "create".


Common envelope

Every record across every dataset carries these fields, with one exception: entity-dataset records have no roverID, because they describe a message, journey, or other workspace entity instead of a fan. Per-dataset sections on the Datasets page describe additional fields.

FieldTypeNotes
idstringDeterministic 32-character hex string. Stable across at-least-once delivery retries. Use as primary key for dedupe within a single export run. (See the snapshot-rerun caveat in Idempotency and ordering.)
versionnumberSchema version. 1 today. Bumped on breaking changes; additive changes do not bump it.
roverIDstring (UUID)Canonical Rover identifier for the fan this record belongs to. Fan datasets only; entity-dataset records carry workspaceID and entityID instead.
emittedAtstring (ISO 8601 UTC)When Rover wrote the record into the file. Useful for monitoring delivery latency. Not the time the underlying event happened; use the per-dataset event-time field for that. For entity datasets it is the moment Rover read the entity's current state, and is the field to order by.

Fan-dataset records also carry a per-dataset event-time field (updatedAt, occurredAt, or timestamp); see each dataset's schema on the Datasets page. Entity-dataset records add workspaceID, entityID, operation, and data; see the entity record envelope.

Previous
Setup & Authentication