g2bAPI Reference
Git Hub

List repository branches

Lists branches available for a repository visible to the caller.

GET
/v1/github/repositories/{id}/branches

Lists branches available for a repository visible to the caller.

Authorization

bearerAuth
AuthorizationBearer <token>

Create an API key in g2b Settings, then send it as a Bearer token.

In: header

Path Parameters

id*integer
Range0 < value <= 9007199254740991

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/github/repositories/1/branches"
{  "branches": [    {      "name": "string"    }  ]}