LogoFreestyle
API Reference/Git

List repositories

List repositories with metadata.

GET
/git/v1/repo

Query Parameters

limitinteger

Maximum number of repositories to return

Minimum: 0Format: "int64"
offsetinteger

Offset for the list of repositories

Minimum: 0Format: "int64"

Response Body

200

List of repositories

repositoriesRequiredarray<object>
totalRequiredinteger
Minimum: 0Format: "int64"
offsetRequiredinteger
Minimum: 0Format: "int64"

400

Invalid request

messageRequiredstring

500

Internal server error

messageRequiredstring
curl -X GET "https://api.freestyle.sh/git/v1/repo?limit=0&offset=0"

List of repositories

{
  "repositories": [
    {
      "branches": {
        "property1": {
          "default": true,
          "name": "string",
          "target": "string"
        },
        "property2": {
          "default": true,
          "name": "string",
          "target": "string"
        }
      },
      "tags": {
        "property1": {
          "name": "string",
          "target": "string",
          "message": "string"
        },
        "property2": {
          "name": "string",
          "target": "string",
          "message": "string"
        }
      },
      "defaultBranch": "string"
    }
  ],
  "total": 0,
  "offset": 0
}

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.