FlowPrime guides
Storage holds the files your product's users upload: photos, documents, exports. Files live in spaces (a folder with its own quota and its own upload keys), and each space lives on one provider: FlowPrime's built-in disk, or a bucket you bring (S3, MinIO, Cloudflare R2, Azure Blob). You set it up through MCP tools; your product then uploads and downloads over REST with a space key.
Storage is not a database. It keeps files; your product's records (users' orders, jobs, applications, permissions) belong in a database you run next to FlowPrime, with the file ids stored there. FlowPrime has no database: a managed Postgres such as Neon or Supabase is the usual pairing (check their current free limits). See platform_guide topic=pilot.
| Capability | How | Status |
|---|---|---|
| List the providers in the workspace's pool | storage_list_providers |
live |
| Add your own bucket (s3, minio, r2, azure) | storage_create_provider |
live |
| Remove a provider | storage_delete_provider |
live |
| Create, rename, resize a space | storage_create_space, storage_update_space |
live |
| Delete an empty space | storage_delete_space |
live |
| Mint, list and revoke space keys | storage_mint_space_key, storage_list_space_keys, storage_revoke_space_key |
live |
| Upload, list, download, delete files | REST /v1/files with a space key |
live |
| Time-limited download link | REST GET /v1/files/{id}/url |
live |
| Direct browser-to-bucket upload | REST POST /v1/files/upload-url then POST /v1/files/confirm |
live (own bucket providers only) |
| Move a space, or everything, to another provider | storage_move_files, storage_get_move |
live |
| Usage by product, collection, space, provider | storage_get_usage |
live |
| Change a provider's credentials or quota | dashboard (Developers > Files > Where files live) | dashboard |
storage_list_spaces shows what exists. Every workspace has a default space: uploads that name no space land there.storage_get_usage shows hostedBytes and quotaBytes). A bucket you bring is limited only by its own cap.https://{org}.storage.fastflow.tech in production, https://{org}.storage.fastflowtech.ai on staging. {org} is your workspace slug (auth_get_org).storage_create_space slug=photos name="Customer photos" quotaBytes=0 (0 = unlimited). Omit providerKey to use where the default space lives, or pass "builtin" or a provider id.storage_mint_space_key slug=photos name=photos-app scopes=read,write,delete. The answer is the ONLY time the full ffs_... key is shown: store it as a server secret now.curl -s https://{org}.storage.fastflow.tech/v1/files \
-H "X-Api-Key: ffs_..." \
-F [email protected] -F product=myapp -F collection=avatars
The answer carries the file id, size, space and url (/v1/files/{id}/content).
The same upload from Node (18+):
const form = new FormData();
form.append("file", new Blob([bytes], { type: "image/jpeg" }), "cat.jpg");
form.append("product", "myapp");
form.append("collection", "avatars");
const res = await fetch(`https://${org}.storage.fastflow.tech/v1/files`, {
method: "POST", headers: { "X-Api-Key": process.env.STORAGE_KEY }, body: form });
const file = await res.json(); // keep file.id in your database
GET /v1/files/{id}/content with the same header. Metadata: GET /v1/files/{id}. List: GET /v1/files/?collection=avatars&limit=100 (at most 1,000, with cursor). Delete: DELETE /v1/files/{id} (needs the delete scope).storage_get_usage to see the file counted under the space.storage_create_provider label=r2-main type=r2 bucket=<bucket> region=auto endpoint=https://<account-id>.r2.cloudflarestorage.com accessKey=... secretKey=.... For Azure pass the connection string as credentials instead of the key pair. type=local is refused: the built-in disk already exists.providerKey=<provider id>, or pass setDefault=true to move the default space onto it.storage_move_files fromProvider=builtin toProvider=<provider id> moves every space that lives on the disk. To move one space only, pass space=<slug> and toProvider.storage_get_move moveId=<id> until state is done or failed; failed and skipped files are listed with the reason.POST /v1/files/upload-url with {"fileName":"cat.jpg","sizeBytes":123456,"contentType":"image/jpeg","product":"myapp","collection":"avatars"} and the space key. The answer has uploadUrl, fileId and expiresAt (15 minutes).PUT the bytes to uploadUrl.POST /v1/files/confirm with {"fileId":"..."}. A file that was never confirmed does not exist.501: upload through POST /v1/files instead.X-Api-Key. Nothing reads Authorization: Bearer for space keys.{org}.storage...) or in X-Org-Slug. Without it the key is looked up in the wrong place and the answer is 401 Invalid API key.404 (never 403), a space=other form field answers 403, and /v1/admin/* is refused.401 naming the scope. The default scopes are read,write: mint with delete if the product deletes files.file; up to 50 MB per file (413 past it). Space quota and workspace quota also answer 413, with the numbers.GET /v1/files/{id}/url returns an expiring link (up to 7 days, expiry in seconds, default 3600) that needs no key. On your own bucket it is the provider's signed URL. On the built-in disk it is https://{org}.storage.fastflow.tech/v1/files/{id}/content?tenant={org}&token=..., signed for that one file. Anyone holding the link can download until it expires, and revoking the key that asked for it does not revoke the link.409. Move or delete the files first.storage_list_space_keys never shows the key itself. A lost key cannot be recovered: mint a new one, switch the product, then revoke the old one.storage_list_providers: providers in the pool, no credentials.storage_create_provider: add an s3, minio, r2 or azure bucket.storage_delete_provider: remove an empty provider.storage_list_spaces: spaces with quota, used bytes and file count.storage_create_space: a new space on a provider.storage_update_space: rename, change quota, or move to another provider.storage_delete_space: delete an empty space and its keys.storage_list_space_keys: a space's keys, masked.storage_mint_space_key: a new key, shown once.storage_revoke_space_key: revoke a key; it answers 401 from then on.storage_get_usage: files and bytes by product, collection, space and provider, and the hosted quota.storage_move_files: move a space or a provider's contents to another provider.storage_get_move: progress of one move, or the last 20.service_contract service=storage.platform_guide)platform_guide topic=ai)platform_guide topic=analytics)platform_guide topic=auth)platform_guide topic=feedback)platform_guide topic=mail)platform_guide topic=marketing)platform_guide topic=marketplace)platform_guide topic=newsletter)platform_guide topic=observability)platform_guide topic=payments)platform_guide topic=pilot)platform_guide topic=reporting)platform_guide topic=webhooks)