Skip to main content

Overview

The Files API lets you manage the file system of a builder project. Files are stored in Hiveku’s managed file system and synced to dev containers.

Visual Editor Save

POST
/visual-editor/save
Save changes made in the visual editor back to project files.
Request Body
{
  "projectId": "project_abc123",
  "filePath": "src/app/page.tsx",
  "content": "// updated file content..."
}
Response
{
  "success": true,
  "filePath": "src/app/page.tsx"
}

Hot Reload Notify

POST
/hot-reload/notify
Notify the preview to reload after file changes.
Request Body
{
  "projectId": "project_abc123",
  "changedFiles": ["src/app/page.tsx"]
}

Proxy Image

GET
/proxy/image?url={imageUrl}
Proxy an external image through Hiveku to avoid CORS issues in the editor.
Query Parameters
ParameterTypeDescription
urlstringURL of the image to proxy