Piloterr
API-ReferenzCloud storage

Add a cloud connection

POST
/v1/cloud-connections

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.

Autorisierung

ApiKeyAuth
headerX-Api-Key<token>

Anfragetext

application/json
  1. body
type?"s3"

s3: Amazon S3 or an S3-compatible store (the only type)

Default"s3"
Value in"s3"
name*string

Your name for the connection, up to 80 characters

Length1 <= length <= 80
endpoint?|

https origin of an S3-compatible store (R2, MinIO, SeaweedFS…); null or absent for AWS S3

Lengthlength <= 300
region?string

The bucket's region, such as us-east-1, or auto for Cloudflare R2

Match^[a-z0-9-]{2,40}$
Default"us-east-1"
bucket*string

The bucket's name: 3 to 63 lowercase letters, digits, dots and hyphens (S3's rules)

prefix?string

Folder for every file, such as exports/

Lengthlength <= 200
Default""
path_style?boolean

Path-style URLs (endpoint/bucket/key); default true with an endpoint

access_key_id*string

The access key id of a key that may write to the bucket; stored encrypted, only shown shortened (access_key_hint)

Length1 <= length <= 128
secret_access_key*string

Its secret access key; stored encrypted and never returned

Length1 <= length <= 256

Antworttext

Created

application/json
  1. response
id*string
type*"s3"
Value in"s3"
name*string
endpoint*|

null for AWS S3 itself

region*string
bucket*string
prefix*string
path_style*boolean
access_key_hint*string

The access key id, shortened

created_at*string
updated_at*string
Example Request
curl -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"
}'
Example Response
{
  "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"
}