| title | Core concepts |
|---|---|
| sidebarTitle | Concepts |
| description | The resources behind every DeckFlow call: spaces, folders, files, revisions, and the grants that control them. |
Every DeckFlow resource lives inside a space. Inside a space, folders form a tree, files keep a stable identity, and each change to a file's content adds a revision.
flowchart LR
Region --> Space
Space --> Folder
Folder --> File
File --> Revision
Revision --> Artifact
| Resource | What it is |
|---|---|
| Region | Where a space stores its data. You choose it when you create the space, and it cannot change afterward. |
| Space | The tenant boundary. Members, files, permissions, and search settings all belong to one space. |
| Folder | A node in the directory tree of a space. The root has no folder ID. |
| File | A stable identity with a name, a folder, an optional expiry, and a current revision. The file ID stays the same as content changes. |
| Revision | One immutable version of a file's content. Restoring an old revision creates a new one. |
| Upload session | A staging area for bytes. A session is verified before its content can become a revision. |
| Artifact | Output derived from a revision, such as an HTML package or page screenshots. |
| Access grant | A reader, editor, or manager role on a space, folder, or file. |
IDs are opaque, case-sensitive strings. Store them as you receive them. Timestamps are ISO 8601 strings.
The web app, the HTTP API, and the SDK call the same methods. Each method has a name such as file.add and an HTTP route such as POST /spaces/{spaceId}/files. The SDK uses the name, and the API reference lists both.
Permissions apply the same way on every surface. An API key inherits the live permissions of the user who created it, limited by the key's scope.
Find your spaces and their regions. Create, rename, move, and list. Add a new version or restore an old one. Roles, inheritance, and access grants.