← Back to index Logout

title: Markbase Compat API version: 1.0 date: 2026-10-25 author: Core Team status: Active


MarkBase Compatibility

Compatibility layer for MarkBase API, enabling Studio to access user data folders.

GET /api/v1/markbase/folders/:username

Auth: Required Scope: user-level

List all folders for a user.

Path Parameters

Parameter Type Description
username string User name

Example

curl -s "$API/api/v1/markbase/folders/admin" -H "X-API-Key: $KEY"

Response (200)

[
  {
    "name": "Documents",
    "parent": ""
  },
  {
    "name": "Media",
    "parent": ""
  }
]

GET /api/v1/markbase/files/:username/:folder

Auth: Required Scope: user-level

List all files in a user's folder.

Path Parameters

Parameter Type Description
username string User name
folder string Folder name

Example

curl -s "$API/api/v1/markbase/files/admin/Documents" -H "X-API-Key: $KEY"

Response (200)

[
  {
    "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/:path

Auth: Required Scope: user-level

Get details or download a specific file.

Path Parameters

Parameter Type Description
username string User name
path string File path within user directory

Example

curl -s "$API/api/v1/markbase/file/admin/Documents/video1.mp4" \
  -H "X-API-Key: $KEY" \
  --output video1.mp4

Response (200)

File content with appropriate MIME type.


Directory Structure

var/studio/data/
├── {username}/
│   └── files/
│       ├── Documents/
│       │   ├── video1.mp4
│       │   └── video2.mp4
│       └── Media/
│           └── audio.mp3

Environment Variables

Variable Default Description
MOMENTRY_STUDIO_DATA_DIR {binary_dir}/var/studio/data Studio data directory

Compatibility Notes


Version History

Version Date Changes
1.0 2026-10-25 Initial documentation