LogoFreestyle
API ReferenceGit

Download a tarball of a repo

Download the contents of a repo as a tarball.

GET
/git/v1/repo/{repo}/tarball

Path Parameters

repo*string

The repository id

Formatuuid

Query Parameters

ref?string

The git reference (branch name, commit SHA, etc.). Defaults to HEAD.

Response Body

application/x-tar

curl -X GET "https://api.freestyle.sh/git/v1/repo/497f6eca-6276-4993-bfeb-53cbbbba6f08/tarball"
Empty

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.