List, upload, download, and mutate files in a workspace
Workspace file endpoints use the storage API:Documentation Index
Fetch the complete documentation index at: https://docs.runtools.ai/llms.txt
Use this file to discover all available pages before exploring further.
/ for the workspace root.
| Method | Path | Scope | Description |
|---|---|---|---|
GET | /v1/workspaces/{id}/files | files:read | List root directory |
GET | /v1/workspaces/{id}/files/{path} | files:read | List a subdirectory |
GET | /v1/workspaces/{id}/info | files:read | Get organization storage usage for this workspace context |
GET | /v1/workspaces/{id}/info/{path} | files:read | Get size/count for a file or directory |
POST | /v1/workspaces/{id}/files | files:write | Create a file or folder in root |
POST | /v1/workspaces/{id}/files/{path} | files:write | Create a file or folder inside a directory |
POST | /v1/workspaces/{id}/upload | files:write | Upload a multipart file to root or query id |
POST | /v1/workspaces/{id}/upload/{path} | files:write | Upload a multipart file to a directory |
PUT | /v1/workspaces/{id}/files | files:write | Batch copy or move by file IDs |
PUT | /v1/workspaces/{id}/files/{path} | files:write | Rename, copy, or move files |
DELETE | /v1/workspaces/{id}/files | files:write | Delete files by ID |
GET | /v1/workspaces/{id}/direct | files:read | Stream one file inline or as a download |
files:* and * also satisfy file scopes.
file or folder.file field is required. The optional name field overrides the uploaded filename.
/src/README.md.true, return an attachment response. Otherwise, stream inline when possible.operation can be copy or move. Batch copy and move accept up to 250 IDs.
showHidden=true.