LogoFreestyle
API Reference/Git

Download a zip of a repo

Download the contents of a repo as a zip.

GET
/git/v1/repo/{repo}/zip

Path Parameters

repoRequiredstring

The repository id

Format: "uuid"

Query Parameters

refstring

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

Response Body

curl -X GET "https://api.freestyle.sh/git/v1/repo/497f6eca-6276-4993-bfeb-53cbbbba6f08/zip?ref=%3Cstring%3E"

Success (byte stream)

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.