Piloterr

Cloud storage

Upload every completed run's exports to your own S3-compatible bucket, under file names you choose.

Upload every completed run to a bucket of yours: AWS S3, Cloudflare R2, MinIO, SeaweedFS or any S3-compatible storage. First add the bucket to your workspace as a connection, then add a cloud delivery to each project that should upload there.

Amazon S3Cloudflare R2MinIOS3-compatible storage

Add a connection

curl https://dataflow.piloterr.com/v1/cloud-connections \
  -H "x-api-key: YOUR_API_KEY" -H "content-type: application/json" \
  -d '{
    "name": "Data lake",
    "endpoint": "https://ACCOUNT_ID.r2.cloudflarestorage.com",
    "region": "auto",
    "bucket": "piloterr-exports",
    "prefix": "dataflow/",
    "access_key_id": "ACCESS_KEY_ID",
    "secret_access_key": "SECRET_ACCESS_KEY"
  }'
{
  "id": "CONNECTION_ID",
  "type": "s3",
  "name": "Data lake",
  "endpoint": "https://ACCOUNT_ID.r2.cloudflarestorage.com",
  "region": "auto",
  "bucket": "piloterr-exports",
  "prefix": "dataflow/",
  "path_style": true,
  "access_key_hint": "AKIA…MPLE",
  "created_at": "2026-12-01T08:00:00.000Z",
  "updated_at": "2026-12-01T08:00:00.000Z"
}
FieldDefaultHolds
nameRequiredUp to 80 characters.
endpointnullThe https origin of an S3-compatible store, such as https://s3.example.com, without a path. Leave it out for AWS S3. It must be reachable from the internet, on port 443 (or 80, 8080, 8443, 9000), and its name must not resolve to a private address. Uploads come from our egress address, 116.203.84.164: allow it if the store filters by IP (Test the permissions).
regionus-east-1The bucket's region, or auto for R2.
bucketRequired3 to 63 lowercase letters, digits, dots and hyphens.
prefix""A folder every file goes under, such as exports/. Slashes around it are trimmed and one is added at the end.
path_styletrue with an endpoint, false withoutPath-style URLs (endpoint/bucket/key), which most S3-compatible stores expect.
access_key_id, secret_access_keyRequiredThe key Dataflow writes with. It needs PutObject on the bucket (test it first).

The keys are stored encrypted and never returned: access_key_hint shows the start and end of the access key. A workspace has at most 20 connections.

GET /v1/cloud-connections lists them, GET /v1/cloud-connections/{id} shows one, and PATCH /v1/cloud-connections/{id} changes any field: send access_key_id and secret_access_key together to replace the keys. DELETE /v1/cloud-connections/{id} removes a connection and the project deliveries that upload to it; files already uploaded stay in the bucket.

Add a cloud delivery

curl https://dataflow.piloterr.com/v1/projects/PROJECT_ID/deliveries \
  -H "x-api-key: YOUR_API_KEY" -H "content-type: application/json" \
  -d '{"type": "cloud", "connection_id": "CONNECTION_ID", "path": "{project}/{date}/{run_id}.{format}"}'

The answer has the same shape as an email delivery, with "email": null and "cloud": {"connection_id": "CONNECTION_ID", "path": "{project}/{date}/{run_id}.{format}"}.

At the end of each completed run, every output format of the project (json when it has none) is uploaded as one file. Failed and cancelled runs upload nothing: their partial results stay in the dashboard.

File names

Each file's key is the connection's prefix, then path. path defaults to {project}/{date}/{run_id}.{format} and takes these variables:

VariableBecomes
{project}The project's name in lowercase, accents removed, other characters turned into -, up to 60 characters: Leads – France gives leads-france.
{project_id}The project's id.
{run_id}The run's id.
{date}The day the run finished, in UTC: 2026-12-01.
{time}The time the run finished, in UTC: 084210.
{format}json, ndjson, csv or xlsx.

path must contain {format}, so each format gets its own file, and it is relative to the prefix: no leading /, no . or .. segments, up to 300 characters. Delivering the same run again writes the same keys, replacing the files.

On this page