Code references

List branches

GET
/api/v2/code-refs/repositories/{repo}/branches

Get a list of branches.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

repo*string

The repository name

Formatstring

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/code-refs/repositories/string/branches"
{  "_links": {    "property1": {      "href": "string",      "type": "string"    },    "property2": {      "href": "string",      "type": "string"    }  },  "items": [    {      "name": "main",      "head": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",      "updateSequenceId": 25,      "syncTime": "1636558831870",      "references": [        {          "path": "/main/index.js",          "hint": "javascript",          "hunks": [            {              "startingLineNumber": 45,              "lines": "var enableFeature = 'enable-feature';",              "projKey": "default",              "flagKey": "enable-feature",              "aliases": [                "enableFeature",                "EnableFeature"              ]            }          ]        }      ],      "_links": {        "property1": null,        "property2": null      }    }  ]}