Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
version: 8.20.0
title: Flux Decentralized Cloud Volume Browser API
termsOfService: https://cdn.runonflux.io/Flux_Terms_of_Service.pdf
contact:
name: InFlux Technologies USA LLC — Flux Development Team
email: development@runonflux.com
url: https://docs.runonflux.com
license:
name: GNU AGPLv3
url: https://www.gnu.org/licenses/agpl-3.0.en.html
description: '# Flux API Documentation
Welcome to the comprehensive API reference for **Flux**, the world''s leading decentralized Web3 cloud computing platform. This documentation covers all available API endpoints for interacting with the Flux network, nodes, and decentralized applications. ## About Flux
**Flux** is a decentralized Web3 cloud infrastructure powered by globally distributed, user-operated nodes. Built for scalability and censorship resistance, Flux eliminates single points of failure while providing enterprise-grade computing resources for deploying and managing applications. ### Key Features
- **🌐 Decentralized Infrastructure**: ~6,400 confirmed FluxNodes worldwide providing 52,000+ CPU cores, 170TB+ RAM and 3PB+ SSD storage across three tiers (Cumulus, Nimbus, Stratus)
- **⚡ High Performance**: Enterprise-grade computing with automatic placement, fault-domain spreading and high availability
- **🔐 Secure by Design**: Multiple authentication methods, enterprise app encryption and runtime tampering detection
- **💰 Cost Effective**: Competitive pricing compared to traditional cloud providers
- **🚀 Developer Friendly**: Docker-based deployments with comprehensive API support
- **🛡️ ArcaneOS**: Hardened, attested node operating system with hardware-backed key custody
*Network figures are a live snapshot; query `GET /daemon/getfluxnodecount` or
stats.runonflux.io for current totals.*
## API Architecture
The Flux API uses a **seven-level permission model** to ensure secure and controlled access. Every endpoint in this document ends its description with the level it requires:
| Permission Level | Description | Authentication Required |
|------------------|-------------|-------------------------|
| **Public** | Open access endpoints | ❌ No |
| **User** (`user`) | Any FluxID with a valid signature and a live session | ✅ Yes |
| **FluxTeam** (`fluxteam`) | Flux Team and Flux Support identities | ✅ Yes |
| **Admin** (`admin`) | The operator of *this* node (`initial.zelid` in its config) | ✅ Yes |
| **AdminAndFluxTeam** (`adminandfluxteam`) | Node operator **or** Flux Team | ✅ Yes |
| **AppOwner** (`appowner`) | The FluxID that registered the application | ✅ Yes |
| **AppOwnerAbove** (`appownerorfluxteam`) | Application owner **or** Flux Team | ✅ Yes |
Every privilege is a set of identities and asks whether the caller is one of
them — the compounds read **OR**, never AND. `admin` is a hardware role: the
node operator administers the machine and is *not* a party to a customer''s
application, so app verbs (`appstart`, `appremove`, `appkill`, `redeploy`, …)
require **AppOwnerAbove** rather than Admin.'
servers:
- url: https://api.runonflux.io
description: Production API Gateway - global load-balanced endpoint. Requests are served by whichever confirmed FluxNode the gateway routes to, so node-scoped endpoints (anything that reports or changes the state of one machine) should be called against a specific node instead.
- url: https://{nodeip}:16127
description: Direct Flux Node Connection - Connect directly to specific node
variables:
nodeip:
description: Flux node IP address or hostname
default: localhost
- url: http://localhost:16127
description: Local Development Node - For local testing
- url: https://explorer.runonflux.io
description: Explorer API - Blockchain data and statistics
- url: https://stats.runonflux.io
description: Network Statistics API - Real-time network metrics
tags:
- name: Volume Browser
description: '**Persistent Storage Management**
Advanced volume and persistent storage management endpoints for containerized applications. These APIs provide comprehensive file system operations, storage allocation, and data management capabilities for applications requiring persistent data storage across the distributed Flux network.
**Storage Management:** - Volume provisioning and management - File system operations - Storage quota enforcement - Data migration and replication - Performance optimization'
paths:
/apps/getfolderinfo:
get:
tags:
- Volume Browser
summary: Get a list of files with their details for all files
description: Get a list of files with their details for all files. Syncthing control files, `lost+found` and file-operation staging at the volume root are not listed, and asking for one by path is refused. **AppOwnerAbove**
operationId: fluxGetfolderinfo
security:
- FluxID: []
parameters:
- in: query
name: appname
required: true
schema:
type: string
example: FoldingAtRunOnFlux11
- in: query
name: component
required: true
schema:
type: string
example: FoldingAtHome
- in: query
name: folder
schema:
type: string
example: ddd
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
status:
$ref: '#/components/schemas/status'
data:
type: array
items:
type: object
example:
status: success
data:
- name: fluxredis_ethercalc (2).tar.gz
size: 138008536
isDirectory: false
isFile: true
isSymbolicLink: false
createdAt: '2024-03-12T08:57:40.817Z'
modifiedAt: '2024-03-12T08:58:19.263Z'
/apps/createfolder:
get:
tags:
- Volume Browser
summary: Create folder
description: Create folder inside app volume. **AppOwnerAbove**
operationId: fluxCreatefolder
security:
- FluxID: []
parameters:
- in: query
name: appname
required: true
schema:
type: string
example: FoldingAtRunOnFlux11
- in: query
name: component
required: true
schema:
type: string
example: FoldingAtHome
- in: query
name: folder
required: true
schema:
type: string
example: ddd
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
status:
$ref: '#/components/schemas/status'
data:
type: string
example:
status: success
data:
message: Folder Created
'503':
description: 'Refused before any work starts: another file operation is running for this application, the node is at its concurrent-operation limit, the file-operation image is still being fetched, or the node is still reconciling its applications after boot. `Retry-After` says when to retry; `data.operation` (jobId, kind, statusUrl) names the operation being waited behind, when there is one.'
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceUnavailableError'
/apps/renameobject:
get:
tags:
- Volume Browser
summary: Rename file/folder
description: Rename file/folder. **AppOwnerAbove**
operationId: fluxRenameobject
security:
- FluxID: []
parameters:
- in: query
name: appname
required: true
schema:
type: string
example: FoldingAtRunOnFlux11
- in: query
name: component
required: true
schema:
type: string
example: FoldingAtHome
- in: query
name: oldpath
required: true
schema:
type: string
example: ddd
description: old path name inside volume with file/folder name
- in: query
name: newname
required: true
description: New name only (no `/`); the entry is renamed within its current folder. An existing name is refused — use POST /apps/moveobject to move or overwrite.
schema:
type: string
example: ccc
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
status:
$ref: '#/components/schemas/status'
data:
type: string
example:
status: success
data:
message: Rename successful
'503':
description: 'Refused before any work starts: another file operation is running for this application, the node is at its concurrent-operation limit, the file-operation image is still being fetched, or the node is still reconciling its applications after boot. `Retry-After` says when to retry; `data.operation` (jobId, kind, statusUrl) names the operation being waited behind, when there is one.'
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceUnavailableError'
/apps/removeobject:
get:
tags:
- Volume Browser
summary: Remove file/folder
description: Remove file/folder. Answers 200 with the completed operation when the delete finishes within 10 seconds, otherwise `202 Accepted` with a `jobId` to poll at `GET /apps/operations/{jobId}`. Deleting a path that does not exist succeeds. **AppOwnerAbove**
operationId: fluxRemoveobject
security:
- FluxID: []
parameters:
- in: query
name: appname
required: true
schema:
type: string
example: FoldingAtRunOnFlux11
- in: query
name: component
required: true
schema:
type: string
example: FoldingAtHome
- in: query
name: object
required: true
schema:
type: string
example: ddd
description: path name inside volume with file/folder name
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
status:
$ref: '#/components/schemas/status'
data:
type: object
properties:
jobId:
type: string
statusUrl:
type: string
status:
type: string
description: The operation's terminal status
example:
status: success
data:
jobId: op_2f8f1a1c-1a2b-4c3d-9e8f-0a1b2c3d4e5f
statusUrl: /apps/operations/op_2f8f1a1c-1a2b-4c3d-9e8f-0a1b2c3d4e5f
status: Succeeded
'202':
$ref: '#/components/responses/OperationAccepted'
'503':
description: 'Refused before any work starts: another file operation is running for this application, the node is at its concurrent-operation limit, the file-operation image is still being fetched, or the node is still reconciling its applications after boot. `Retry-After` says when to retry; `data.operation` (jobId, kind, statusUrl) names the operation being waited behind, when there is one.'
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceUnavailableError'
/apps/downloadfile:
get:
tags:
- Volume Browser
summary: Download file
description: Download file. A path that reaches Syncthing control files, `lost+found` or file-operation staging at the volume root is refused. **AppOwnerAbove**
operationId: fluxDownloadFile
security:
- FluxID: []
parameters:
- in: query
name: appname
required: true
schema:
type: string
example: FoldingAtRunOnFlux11
- in: query
name: component
required: true
schema:
type: string
example: FoldingAtHome
- in: query
name: file
required: true
schema:
type: string
example: notes.txt
description: full path inside volume to file
responses:
'200':
description: OK
content:
application/octet-stream:
schema:
type: string
format: binary
/apps/downloadfolder:
get:
tags:
- Volume Browser
summary: Download folder as a zip archive
description: Download folder as a zip archive, streamed as it is built (no Content-Length). At the volume root, Syncthing control files, `lost+found` and file-operation staging are left out, and a path that reaches one is refused. **AppOwnerAbove**
operationId: fluxDownloadFolder
security:
- FluxID: []
parameters:
- in: query
name: appname
required: true
schema:
type: string
example: FoldingAtRunOnFlux11
- in: query
name: component
required: true
schema:
type: string
example: FoldingAtHome
- in: query
name: folder
required: true
schema:
type: string
example: ddd
description: full path inside volume to folder
responses:
'200':
description: OK
content:
application/zip:
schema:
type: string
format: binary
/apps/moveobject:
post:
tags:
- Volume Browser
summary: Move a file or folder within an app volume
description: 'Moves `source` to `destination` inside the application''s persistent volume. Both operands are resolved relative to the volume root; a path that escapes it is refused.
Answers `202 Accepted` with a `jobId` — poll `GET /apps/operations/{jobId}`. A move is registered as a job like the other three because paste is one gesture in a file browser: cut-paste returning a result while copy-paste returned a job would put two response shapes inside a single user action. **AppOwnerAbove**'
operationId: moveAppsObject
security:
- FluxID: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/volumeObjectOperation'
example:
appname: myapp
component: mycomponent
source: data/report.csv
destination: archive/report.csv
overwrite: false
responses:
'202':
$ref: '#/components/responses/OperationAccepted'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
description: 'Refused before any work starts: another file operation is running for this application, the node is at its concurrent-operation limit, the file-operation image is still being fetched, or the node is still reconciling its applications after boot. `Retry-After` says when to retry; `data.operation` (jobId, kind, statusUrl) names the operation being waited behind, when there is one.'
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceUnavailableError'
/apps/copyobject:
post:
tags:
- Volume Browser
summary: Copy a file or folder within an app volume
description: 'Copies `source` to `destination` inside the application''s persistent volume, preserving ownership, timestamps and symlinks. The volume''s free space is checked against the measured size of the source before the copy starts, and the ceiling is enforced against what actually lands.
A directory copied onto an existing directory overlays it rather than replacing it wholesale; a file over a file is replaced, and a file over a directory is refused. Answers `202 Accepted` with a `jobId` — poll `GET /apps/operations/{jobId}`. **AppOwnerAbove**'
operationId: copyAppsObject
security:
- FluxID: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/volumeObjectOperation'
example:
appname: myapp
component: mycomponent
source: data
destination: backup/data
overwrite: false
responses:
'202':
$ref: '#/components/responses/OperationAccepted'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
description: 'Refused before any work starts: another file operation is running for this application, the node is at its concurrent-operation limit, the file-operation image is still being fetched, or the node is still reconciling its applications after boot. `Retry-After` says when to retry; `data.operation` (jobId, kind, statusUrl) names the operation being waited behind, when there is one.'
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceUnavailableError'
/apps/compressobject:
post:
tags:
- Volume Browser
summary: Compress a file or folder into an archive
description: 'Creates an archive of `source` at `destination` inside the application''s persistent volume. The destination extension chooses the format and must be one of `.zip`, `.tar.gz` or `.tgz`; anything else is refused.
`source` is one path or a list of paths. One path: a directory''s *contents* are archived at the top level (a file goes in under its own name), so extracting the archive to a destination reproduces the source under that name. A list (at most 1000 entries; an entry may not be listed twice or sit inside another listed entry): each entry is archived by its path relative to the deepest folder holding all of them, and a directory arrives as that directory — what a file browser sends for a selection, even of one item. The archive''s size is bounded as it is written (the volume''s free space), not measured up front. Answers `202 Accepted` with a `jobId` — poll `GET /apps/operations/{jobId}`. **AppOwnerAbove**'
operationId: compressAppsObject
security:
- FluxID: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/volumeObjectOperation'
examples:
folder:
summary: One folder, its contents at the archive's top level
value:
appname: myapp
component: mycomponent
source: data
destination: backup/data.tar.gz
overwrite: false
selection:
summary: A selection, each entry by its path from the deepest common folder
value:
appname: myapp
component: mycomponent
source:
- logs/a.txt
- notes.txt
destination: backup/selection.zip
overwrite: false
responses:
'202':
$ref: '#/components/responses/OperationAccepted'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
description: 'Refused before any work starts: another file operation is running for this application, the node is at its concurrent-operation limit, the file-operation image is still being fetched, or the node is still reconciling its applications after boot. `Retry-After` says when to retry; `data.operation` (jobId, kind, statusUrl) names the operation being waited behind, when there is one.'
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceUnavailableError'
/apps/extractobject:
post:
tags:
- Volume Browser
summary: Extract an archive within an app volume
description: 'Extracts the archive at `source` to `destination` inside the application''s persistent volume. The source is accepted by extension rather than by sniffing its content — `.zip`, `.tar.gz` or `.tgz` — so a caller who names what they uploaded cannot have it interpreted as something else.
How much an extraction will write cannot be measured up front, so the volume''s remaining capacity is the only bound: on a full volume the request is refused outright rather than expressed as a limit nothing enforces. Answers `202 Accepted` with a `jobId` — poll `GET /apps/operations/{jobId}`. **AppOwnerAbove**'
operationId: extractAppsObject
security:
- FluxID: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/volumeObjectOperation'
example:
appname: myapp
component: mycomponent
source: backup/data.tar.gz
destination: data
overwrite: true
responses:
'202':
$ref: '#/components/responses/OperationAccepted'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
description: 'Refused before any work starts: another file operation is running for this application, the node is at its concurrent-operation limit, the file-operation image is still being fetched, or the node is still reconciling its applications after boot. `Retry-After` says when to retry; `data.operation` (jobId, kind, statusUrl) names the operation being waited behind, when there is one.'
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceUnavailableError'
/apps/fileoperationimage/{imageid}:
get:
tags:
- Volume Browser
summary: Serve a container image to a peer node
description: Node-to-node transfer of the file-operation image (the image volume file operations run in) to a peer node that cannot pull it from the registry. The caller is identified by its remote address rather than by a forwarded header, and the requested `imageid` is *compared* against the images this node expects to hold — never used to look one up — so there is no "send me image X" here. A caller that is not a confirmed node, or an id this node does not hold, gets `403`/`404` respectively; a node already serving the image to its maximum number of peers answers `503`. **Public** (peer nodes only)
operationId: serveImageToPeer
security: []
parameters:
- in: path
name: imageid
required: true
schema:
type: string
description: The image id as the *calling* node's daemon files it, which need not be what this node's daemon calls it
example: sha256:6a1f8b3c9d2e4f5a6b7c8d9e0f1a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c
responses:
'200':
description: Image stream
content:
application/x-tar:
schema:
type: string
format: binary
'400':
description: Remote address could not be determined
'403':
description: Caller is not a node entitled to this image
'404':
description: This node does not hold the requested image
'503':
description: This node is already serving the image to its maximum number of peers; retry after `Retry-After`
headers:
Retry-After:
schema:
type: integer
components:
schemas:
status:
type: string
description: Explanation of status
enum:
- success
- error
volumeObjectOperation:
type: object
description: Operands for a file operation inside an application's persistent volume. Each field may also be sent as a query parameter.
required:
- appname
- component
- source
- destination
properties:
appname:
type: string
description: Application name
component:
type: string
description: Component name; `null` for a pre-v4 (single-component) application
source:
oneOf:
- type: string
- type: array
minItems: 1
maxItems: 1000
items:
type: string
description: Path relative to the volume root. `POST /apps/compressobject` also accepts a list of up to 1000 paths; the other operations take one.
destination:
type: string
description: Path relative to the volume root
overwrite:
type: boolean
description: Replace an existing destination. `false` by default, in which case an occupied destination is refused.
default: false
InternalServerError:
type: object
description: Internal server error
properties:
status:
type: string
enum:
- error
data:
type: object
properties:
name:
type: string
example: InternalError
message:
type: string
example: Internal server error occurred
code:
type: string
example: INTERNAL_ERROR
ServiceUnavailableError:
type: object
description: Service temporarily unavailable
properties:
status:
type: string
enum:
- error
data:
type: object
properties:
name:
type: string
example: ServiceUnavailable
message:
type: string
example: Service is temporarily unavailable
code:
type: string
example: SERVICE_UNAVAILABLE
responses:
InternalServerError:
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerError'
OperationAccepted:
description: The work was accepted and is running. Poll the `statusUrl` — completion is read from the operation's `status` field, never from this response.
headers:
Location:
description: The operation's status URL
schema:
type: string
Operation-Id:
description: The operation id
schema:
type: string
Retry-After:
description: Seconds to wait before the first poll
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
status:
$ref: '#/components/schemas/status'
data:
type: object
properties:
jobId:
type: string
statusUrl:
type: string
status:
type: string
example:
status: success
data:
jobId: op_2f8f1a1c-1a2b-4c3d-9e8f-0a1b2c3d4e5f
statusUrl: /apps/operations/op_2f8f1a1c-1a2b-4c3d-9e8f-0a1b2c3d4e5f
status: Running
securitySchemes:
FluxID:
description: 'FluxID (formerly ZelID) is an authentication system based on Bitcoin message signing and Ethereum personal sign. The header keeps its original name, `zelidauth`: a query string of zelid, signature and loginPhrase (see Authentication Workflows for how to obtain one). An example of a header is `zelid=1CbErtneaX2QVyUfwU7JGB7VzvPgrgc3uC&signature=%2BZB3oSrsw6XkBxxlbwk33LEBJYvqtbMIm2kL9JzuoXMC6pSZd0lBHdnhJYzMTXv81zZQ7G%2FpkK1NvYN7cNF0GE%3D&loginPhrase=1574991374806spbcvsuwerl52tppx9dw5khuz8rew13mkq86gg8r2c`'
type: apiKey
in: header
name: zelidauth
externalDocs:
description: Flux Documentation & Resources Hub
url: https://docs.runonflux.com
x-tagGroups:
- name: Getting Started
tags:
- Authentication
- ID
- name: Applications
tags:
- Apps
- Volume Browser
- IOUtils
- name: Node Operations
tags:
- Flux
- Benchmark
- ArcaneOS
- name: Blockchain
tags:
- Daemon
- Explorer
- name: Storage & Sync
tags:
- Syncthing
- Fluxshare
- Backup/Restore
- name: Commerce
tags:
- Payments