Skip to main content
GET
/
v1
/
machines
/
{id}
/
git
/
branch
List branches
import requests

url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/git/branch"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "branches": [
    "<string>"
  ],
  "current": "<string>"
}

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Machine ID (e.g. mch_a1b2c3d4)

Query Parameters

path
string
required

Response

200 - application/json

Branch listing

branches
string[]
required
current
string

Current branch; omitted on detached HEAD.