LogoFreestyle
API Reference/Git

Download a tarball of a repo.

Download the contents of a repo as a tarball.

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

Path Parameters

repoRequiredstring

The repository id

Format: "uuid"

Query Parameters

refstring

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

Response Body

400

Bad Request

messageRequiredstring

401

Unauthorized

messageRequiredstring

403

Forbidden

messageRequiredstring

404

Not Found

messageRequiredstring

500

Internal Server Error

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

Success (byte stream)