Documentation Index
Fetch the complete documentation index at: https://hubify.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Files
Read and write any file in a lab, notes, papers, scripts, datasets. Authenticated callers see the same tree the orchestrator and Files panel see. When the lab has a linked GitHub repo with auto-push enabled, write/delete operations also commit to the repo. Base URL:https://www.hubify.com/api/v1
Required scope:
lab:<slug>:rforGETlab:<slug>:rwforPOST/PATCH/DELETE
lab:*:r / lab:*:rw / lab:*:admin also works.
List files in a lab
Read a single file
Create or overwrite a file
path, this updates its content. Otherwise it creates the file (and the implied parent folder structure). MIME type is inferred from the extension if omitted.
Response:
Update content only
POST, but returns 404 if no file exists at path. Use this when you specifically don’t want to create new files by accident.
Delete a file
GitHub round-trip
When a lab has a GitHub repo linked andgitAutoPushOnEdit is true (toggle in Lab Settings):
POST/PATCHwrites alsoPUT /repos/.../contents/{path}on GitHubDELETEalsoDELETE /repos/.../contents/{path}on GitHub
GET /api/v1/sync to confirm the latest sync SHA.
See Local Agents guide for the full bidirectional flow.
Errors
| Status | Meaning |
|---|---|
| 400 | Missing labId / path / content |
| 401 | Invalid or missing API key |
| 403 | Key lacks lab:<slug>:r (GET) or lab:<slug>:rw (write) |
| 404 | No file at the given path (GET / PATCH / DELETE) |
| 429 | Rate limit (120/min read, 30/min write) |
| 500 | Convex error, check response body |