Skip to main content

Import Files

Content type: multipart/form-data. Max 500 MB per file.
string
default:"folder"
folder · zip · files
File
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 import
string[]

Import from GitHub

Downloads a repository (as a zip) directly from GitHub and imports it into the workspace tree — no local download required.
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/repo
string
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.

Errors