title: Markbase Compat API version: 1.0 date: 2026-10-25 author: Core Team status: Active
Compatibility layer for MarkBase API, enabling Studio to access user data folders.
GET /api/v1/markbase/folders/:usernameAuth: Required Scope: user-level
List all folders for a user.
| Parameter | Type | Description |
|---|---|---|
username |
string | User name |
curl -s "$API/api/v1/markbase/folders/admin" -H "X-API-Key: $KEY"
[
{
"name": "Documents",
"parent": ""
},
{
"name": "Media",
"parent": ""
}
]
GET /api/v1/markbase/files/:username/:folderAuth: Required Scope: user-level
List all files in a user's folder.
| Parameter | Type | Description |
|---|---|---|
username |
string | User name |
folder |
string | Folder name |
curl -s "$API/api/v1/markbase/files/admin/Documents" -H "X-API-Key: $KEY"
[
{
"name": "video1.mp4",
"type": "file",
"size": 1048576,
"modified": "2026-10-25T10:00:00Z",
"is_dir": false
},
{
"name": "subfolder",
"type": "directory",
"size": 0,
"modified": "2026-10-25T09:00:00Z",
"is_dir": true
}
]
GET /api/v1/markbase/file/:username/:pathAuth: Required Scope: user-level
Get details or download a specific file.
| Parameter | Type | Description |
|---|---|---|
username |
string | User name |
path |
string | File path within user directory |
curl -s "$API/api/v1/markbase/file/admin/Documents/video1.mp4" \
-H "X-API-Key: $KEY" \
--output video1.mp4
File content with appropriate MIME type.
var/studio/data/
├── {username}/
│ └── files/
│ ├── Documents/
│ │ ├── video1.mp4
│ │ └── video2.mp4
│ └── Media/
│ └── audio.mp3
| Variable | Default | Description |
|---|---|---|
MOMENTRY_STUDIO_DATA_DIR |
{binary_dir}/var/studio/data |
Studio data directory |
| Version | Date | Changes |
|---|---|---|
| 1.0 | 2026-10-25 | Initial documentation |