Import Files
multipart/form-data. Max 500 MB per file.
folder · zip · filesA single zip archive — required when
kind is zip.Multiple files (with
webkitRelativePath for folder structure) — required when kind is folder or files.Destination path prefix, e.g.
/my-docs/.{ path, error } for any files that failed to importImport from GitHub
https://github.com/owner/repo (.git suffix accepted). Append ?branch=develop to the URL, or use the branch field.Defaults to the repo’s default branch.
Destination path prefix.
owner/repoFor 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
| Status | Error | Applies to |
|---|---|---|
| 400 | Zip file is required / No files to import | Import |
| 413 | File "{name}" exceeds the 500 MB upload limit | Import |
| 400 | repoUrl is required / Invalid GitHub repository URL | GitHub Import |
| 502 | GitHub archive fetch failed: {status} {statusText} | GitHub Import |
| 401 | Unauthorized | Both |