tar.gz archive.
Request Body
Branch name, tag, or commit SHA to archive. Defaults to the repository’s default branch.
Glob patterns for files to include in the archive.
Glob patterns for files to exclude from the archive.
Maximum blob size in bytes. When provided, files larger than this limit are excluded from the archive.
Prefix to add to each entry in the tar archive (e.g.,
repo/).JWT Requirements
- The JWT must include the repository in the
repoclaim - Requires
git:readscope
Response
Returns a streamingtar.gz body.
Typical headers:
Content-Type: application/gzipContent-Disposition: attachment; filename="<repo>-<rev>.tar.gz"Cache-Control: no-store
Notes
- If
refis omitted or empty, the server uses the repository’s default branch (orHEADif no default is set). - If
max_blob_sizeis provided, files with blob size larger than this value are filtered out. archive.prefixmust be a relative path without backslashes, leading slashes, or./..path segments. A trailing/is added automatically if missing.- If
include_globsare provided but none match, the response is an emptytar.gzwith status200.
Error Responses
Invalid JSON, invalid prefix, invalid
max_blob_size, or failed to resolve refMissing or invalid JWT
Missing
git:read scopeRef does not exist
Archive generation failed
Failed to contact storage
Storage selection failed