Skip to content

Retrieve Data Export files

This page is for the person who sets up the tool that downloads your Data Export. You need a key from a Ready connection. See Data export to create one.

The key dialog shows the three settings your tool needs:

Setting Value
Bucket The S3 bucket that holds your export.
Region The bucket’s region.
Prefix Your organisation ID followed by /.

Under your prefix, the files are in these folders:

Folder Holds
_tenant/ Organisation-wide data, such as subcontractors
project=<project-id>/ The data of one project. Each exported project has its own folder.

In each folder:

  • _manifests/ holds one manifest for each delivery.
  • _catalog/<bundle-id>/ holds a dataset catalogue: its index, dictionaries, schemas and revision history.
  • Each dataset has its own folder, for example work_activities/. Its files are grouped by schema version, then by the date and hour in UTC when the delivery started.

A full file path looks like this: project=<project-id>/work_activities/schema=v0/date=2026-11-01/hour=06/<delivery-id>-a1-part-00000.parquet.

Folder names use IDs only, never names or email addresses. To find a project’s ID, open the project for editing: the ID is in the page address. IDs and file names are opaque: do not parse them. Use the manifests to find files and to order deliveries.

A key can list and download only the folders of its connection: _tenant/ if the connection includes organisation-wide data, and project=<project-id>/ for each selected project. It cannot list your organisation prefix itself, so download each folder separately. Everything else, including other organisations, returns AccessDenied.

Any S3 client works, for example rclone. These examples use the AWS CLI in Bash. Copy the settings from your key dialog when prompted. Enter your organisation ID without the final / from the prefix.

Terminal window
read -r -p 'Access key ID: ' AWS_ACCESS_KEY_ID
read -r -s -p 'Secret access key: ' AWS_SECRET_ACCESS_KEY; echo
read -r -p 'Region: ' AWS_REGION
read -r -p 'Bucket: ' BUCKET
read -r -p 'Organisation ID: ' ORG
read -r -p 'Project ID: ' PROJECT_ID
export AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_REGION
PROJECT="project=$PROJECT_ID"
aws s3 sync "s3://$BUCKET/$ORG/$PROJECT/" "export/$PROJECT/"

Repeat for each project the connection can read. If the connection includes organisation-wide data, also run:

Terminal window
aws s3 sync "s3://$BUCKET/$ORG/_tenant/" "export/_tenant/"

Run aws s3 sync on your own schedule. Files never change after they are published, and each delivery has new file names. Sync can also download files that are not listed in a manifest. The reading example below excludes them.

Run rclone config and add an S3 remote named toolboxfm-export, with provider AWS. Use the connection key and the region from the key dialog. Keep the standard endpoint and default ACL settings. Protect the configuration file as a secret.

With BUCKET, ORG and PROJECT set as above, copy one permitted project:

Terminal window
rclone copy "toolboxfm-export:$BUCKET/$ORG/$PROJECT/" "export/$PROJECT/"

For permitted organisation-wide data, replace $PROJECT with _tenant in both paths. Do not use deletion options to manage ingestion. A successful copy does not prove that all deliveries have arrived; use the manifests and their sequences.

A manifest is the record of one delivery for one folder. ToolboxFM publishes it last, after all its files. Read the manifests, then read only the files they list.

  • Read only files listed in a manifest. Ignore all other files.
  • Each file has a size in bytes and a SHA-256. Check them before you load the file.
  • A dataset without changes is listed with "objects": []. That is different from a missing delivery.
  • Each delivery has a sequence. Sequence numbers count the deliveries of one folder, starting at 0, with no gaps. A missing number means you are missing a delivery.
  • run_kind is feed for normal deliveries and reexport when ToolboxFM sent earlier deliveries again with new file names. A re-export has no sequence. Its repeats gives the first and last sequence numbers it overlaps. It can hold only part of the first or last of them, so merge its rows like any other rows and do not replace those deliveries with it. Skip re-exports when you check the sequence.

A manifest has these fields:

Field Meaning
manifest_version The manifest format. Today it is 1. ToolboxFM will announce a new format before it changes.
tenant_id Your organisation ID, the same as your prefix.
project_id The project of this folder. Empty in _tenant/.
run_kind feed or reexport.
sequence The number of this delivery in its folder. Feed deliveries only.
repeats from_sequence and to_sequence: the feed deliveries that a re-export overlaps. Re-exports only.
feed_status active, or paused when the approval for this project has ended.
window_start When the delivery started, in UTC. It sets the date= and hour= folders.
delivery_id The ID of this delivery. It is the start of each file name.
run_id The ID of the run. The deliveries of one run share it, one per folder.
attempt The attempt that published the delivery. A retried delivery has a higher number.
status The status of the format. draft while the datasets are at schema version 0.
catalogue Optional key and sha256 for the exact catalogue index used by this delivery. Earlier manifests may not have it.
datasets One entry for each dataset: dataset, schema_major, revision, status and objects.
datasets[].objects One entry for each file: key (the full path, with your prefix), rows, bytes and sha256.

Ignore fields that you do not know. ToolboxFM can add fields without a new manifest_version.

When a manifest has catalogue, its key points to _catalog/<bundle-id>/catalog.json inside the same project or organisation-wide folder. Check the index against catalogue.sha256. That checksum is also the bundle ID. The index’s documents list gives each document’s relative path, size in bytes and sha256. Verify every listed document before using the catalogue.

Open README.md for the dataset list, each dataset’s dictionary and schema.json for its fields, and CHANGELOG.md for revisions. The catalogue describes all datasets, but does not give your key access to data outside its permitted folders. Your existing connection key reads it.

A changed catalogue gets a new bundle; earlier bundles stay unchanged. Bundle IDs are checksums, not dates. Use the manifest’s reference for its exact catalogue. You can also list complete bundles in _catalog/ and inspect their dataset versions when a catalogue arrives before data.

Earlier manifests without catalogue remain valid. Ask ToolboxFM for their applicable schema documentation; a newer bundle does not establish the exact contract of an older delivery. If a document is missing or its checksum fails, copy again. If it still fails, stop processing that delivery and contact ToolboxFM. Checksums detect changed files; they do not authenticate a manifest obtained from an untrusted source.

Most datasets contain changes to records. Each change includes the record’s values at that time. Hourly QR page views contain counts instead. The shared columns are:

Column Meaning
record_id The record that changed.
event_id The change. A change can arrive twice, for example in a re-export.
op insert, update or delete. Aggregates use upsert.
event_seq Counts the changes to one record from 1. Use it to order that record’s changes. It does not order changes across records.
occurred_at When the change was made, in UTC.
schema_major The dataset’s major schema version.

To build a current table, keep the change with the highest event_seq for each record_id. Then remove records whose latest change has op = 'delete'. Do not remove delete rows before selecting the latest change: that would bring deleted records back.

This example reads work activities from the project folders you downloaded. It checks each folder’s delivery sequence and verifies the size and SHA-256 of every activity file it will read. It also verifies each referenced catalogue and its documents. It ignores unlisted Parquet files, including files left from an earlier download.

Use Python 3.11 or later. From the directory that contains export/, create an environment:

Terminal window
python3 -m venv .venv
source .venv/bin/activate
python -m pip install duckdb

Save this as read_activities.py, then run python read_activities.py:

import hashlib
import json
from pathlib import Path
import duckdb
def verify_file(path, checksum, size=None):
with path.open("rb") as data:
digest = hashlib.file_digest(data, "sha256").hexdigest()
if digest != checksum or (size is not None and path.stat().st_size != size):
raise ValueError(f"File check failed: {path}")
root = Path("export").resolve()
folders = sorted(root.glob("project=*"))
if not folders:
raise ValueError("No project folders found. Download a project first.")
files = set()
for folder in folders:
manifests = [
json.loads(path.read_text())
for path in sorted(folder.glob("_manifests/**/*.manifest.json"))
]
if not manifests:
raise ValueError(f"No manifests in {folder.name}. Run sync again.")
sequences = []
for manifest in manifests:
if manifest["manifest_version"] != 1:
raise ValueError("Unsupported manifest format")
if folder.name != "project=" + manifest["project_id"]:
raise ValueError("Manifest is in the wrong project folder")
if manifest["run_kind"] == "feed":
sequences.append(manifest["sequence"])
elif manifest["run_kind"] != "reexport":
raise ValueError("Unknown delivery kind")
ref = manifest.get("catalogue")
if ref is not None:
scope = manifest["tenant_id"] + "/" + folder.name + "/"
expected = scope + "_catalog/" + ref["sha256"] + "/catalog.json"
if ref["key"] != expected:
raise ValueError("Catalogue belongs to another folder or bundle")
bundle = (folder / "_catalog" / ref["sha256"]).resolve()
if not bundle.is_relative_to(folder):
raise ValueError("Catalogue is outside the project folder")
index_path = (bundle / "catalog.json").resolve()
if not index_path.is_relative_to(bundle):
raise ValueError("Catalogue index is outside the bundle")
verify_file(index_path, ref["sha256"])
documents = json.loads(index_path.read_text())["documents"]
if not documents:
raise ValueError("Catalogue has no documents")
for doc in documents:
path = (bundle / doc["path"]).resolve()
if not path.is_relative_to(bundle):
raise ValueError("Catalogue document is outside the bundle")
verify_file(path, doc["sha256"], doc["bytes"])
else:
print("Legacy delivery: no exact catalogue reference", manifest["delivery_id"])
for dataset in manifest["datasets"]:
if dataset["dataset"] != "work_activities":
continue
if dataset["schema_major"] != 0:
raise ValueError("This example requires schema version 0")
for obj in dataset["objects"]:
prefix = manifest["tenant_id"] + "/"
if not obj["key"].startswith(prefix):
raise ValueError("File is outside the organisation prefix")
path = (root / obj["key"][len(prefix):]).resolve()
if not path.is_relative_to(folder / "work_activities"):
raise ValueError("File is outside the activity folder")
verify_file(path, obj["sha256"], obj["bytes"])
files.add(str(path))
if not sequences or sorted(sequences) != list(range(len(sequences))):
raise ValueError(f"Missing or repeated delivery in {folder.name}. Run sync again.")
if not files:
print("No work activity rows in these deliveries.")
else:
with duckdb.connect() as db:
db.read_parquet(sorted(files), union_by_name=True, hive_partitioning=False).create_view(
"work_activities_changes"
)
db.sql("""
CREATE VIEW work_activities AS
SELECT * FROM work_activities_changes
QUALIFY row_number() OVER (
PARTITION BY record_id ORDER BY event_seq DESC
) = 1 AND op <> 'delete'
""")
db.sql("""
SELECT approval_status, count(*) AS activities
FROM work_activities
GROUP BY approval_status
ORDER BY activities DESC, approval_status
""").show()

The result counts current activities by approval status. Change the last query to ask your own questions. work_activities_changes contains the change history; work_activities contains current records. Repeated deliveries do not increase the current record count.

If a file is missing or fails its check, download that file again before rerunning the script. If a delivery is missing, run sync again. Contact ToolboxFM if the gap remains. A sequence check can detect gaps in downloaded deliveries, but cannot tell you whether a newer delivery exists.

For ongoing ingestion, save each folder’s last processed sequence only after your downstream load succeeds. Make that load safe to repeat, and resume at the next sequence. An empty delivery still advances the sequence. Do not skip a missing delivery or use a re-export to fill its gap. Your team owns retrieval, loading, merging, warehousing and dashboards.

qr_page_views_hourly is different: its rows are hourly counts that only grow. Keep the row with the highest view_count for each record_id.

Timestamps are in UTC. Project working hours (work_hours_start and work_hours_end) use the project’s timezone.

Folder Datasets
project=<project-id>/ projects, zones, work_activities, work_activity_zones, work_activity_pauses, work_activity_extensions, work_activity_closeouts, qr_page_views_hourly
_tenant/ subcontractors

The datasets are at schema version 0 (schema=v0 in the path). ToolboxFM will announce changes before version 1. The data dictionary describes every column, and the sample data explorer shows them with real demo data.

ToolboxFM sets your organisation’s schedule with you: a time zone, a start time and an interval of 6, 12 or 24 hours. Deliveries start at the start time and repeat at the interval. For example, a start time of 05:00 in Brisbane with a 6-hour interval delivers at 05:00, 11:00, 17:00 and 23:00 Brisbane time. The times follow daylight saving in your time zone. Ask ToolboxFM for your schedule, or to change it.

A delivery normally appears within a few minutes of its time. The first delivery of a new project, and a delivery that catches up after a delay, can arrive between scheduled times. Do not rely on the arrival time: read the manifests and check the sequence.

Files stay in the bucket after you download them. If your copy is lost or damaged, run the sync again.

The export holds personal data, such as names and mobile numbers, and text that people typed. The data dictionary gives the privacy class of each column. Anyone who holds a key can download every file of its connection, so store keys in a secret store, not in code or shared documents. If a key is exposed, delete it at once and create a new one.