LogoFreestyle
API ReferenceGit

List repositories

List repositories with metadata.

GET
/git/v1/repo

Query Parameters

limit?integer

Maximum number of repositories to return

Formatint64
Range0 <= value
offset?integer

Offset for the list of repositories

Formatint64
Range0 <= value

Response Body

application/json

application/json

curl -X GET "https://api.freestyle.sh/git/v1/repo"
{
  "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
}
{
  "error": "string",
  "message": "string"
}

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.