Add a cloud connection
An S3-compatible bucket: AWS S3, Cloudflare R2, MinIO, SeaweedFS… The endpoint must be a public https origin. Keys are stored encrypted; test the connection once saved (POST /v1/cloud-connections/{id}/test). Up to 20 connections per workspace.
ApiKeyAuthX-Api-Key<token>application/json- body
type?"s3"s3: Amazon S3 or an S3-compatible store (the only type)
"s3""s3"name*stringYour name for the connection, up to 80 characters
1 <= length <= 80endpoint?|https origin of an S3-compatible store (R2, MinIO, SeaweedFS…); null or absent for AWS S3
length <= 300region?stringThe bucket's region, such as us-east-1, or auto for Cloudflare R2
^[a-z0-9-]{2,40}$"us-east-1"bucket*stringThe bucket's name: 3 to 63 lowercase letters, digits, dots and hyphens (S3's rules)
prefix?stringFolder for every file, such as exports/
length <= 200""path_style?booleanPath-style URLs (endpoint/bucket/key); default true with an endpoint
access_key_id*stringThe access key id of a key that may write to the bucket; stored encrypted, only shown shortened (access_key_hint)
1 <= length <= 128secret_access_key*stringIts secret access key; stored encrypted and never returned
1 <= length <= 256Created
application/json- response
id*stringtype*"s3""s3"name*stringendpoint*|null for AWS S3 itself
region*stringbucket*stringprefix*stringpath_style*booleanaccess_key_hint*stringThe access key id, shortened
created_at*stringupdated_at*stringcurl -X POST 'https://dataflow.piloterr.com/v1/cloud-connections' \
-H 'Content-Type: application/json' \
-d '{
"name": "Exports bucket",
"region": "eu-west-3",
"bucket": "acme-dataflow",
"prefix": "exports/",
"access_key_id": "AKIAIOSFODNN7EXAMPLE",
"secret_access_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
}'{
"id": "cm4lb4q8n000hl208e9sf3vwm",
"type": "s3",
"name": "Exports bucket",
"endpoint": null,
"region": "eu-west-3",
"bucket": "acme-dataflow",
"prefix": "exports/",
"path_style": false,
"access_key_hint": "AKIA…MPLE",
"created_at": "2026-11-09T08:00:00.000Z",
"updated_at": "2026-11-09T08:00:00.000Z"
}