Import Files
multipart/form-data. Max 500 MB per file.
string
default:"folder"
folder · zip · filesFile
A single zip archive — required when
kind is zip.File[]
Multiple files (with
webkitRelativePath for folder structure) — required when kind is folder or files.string
Destination path prefix, e.g.
/my-docs/.number
number
object[]
{ path, error } for any files that failed to importstring[]
Import from GitHub
string
required
https://github.com/owner/repo (.git suffix accepted). Append ?branch=develop to the URL, or use the branch field.string
Defaults to the repo’s default branch.
string
Destination path prefix.
number
number
object[]
string[]
string
owner/repostring
For private repositories, configure a GitHub token on the workspace (
GITHUB_TOKEN / GITHUB_IMPORT_TOKEN) — reach out if you need this enabled for your workspace.