Skip to main content
GET
/
github
/
tree
/
{owner}
/
{repo}
Github Tree
curl --request GET \
  --url https://apigcp.trynia.ai/v2/github/tree/{owner}/{repo} \
  --header 'Authorization: Bearer <token>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

owner
string
required
repo
string
required

Query Parameters

ref
string
default:HEAD

Branch, tag, or commit SHA

path
string | null

Subdirectory path

Response

Successful Response