cURL
curl --request GET \ --url https://apigcp.trynia.ai/v2/github/tree/{owner}/{repo} \ --header 'Authorization: Bearer <token>'
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Get the file tree of a GitHub repository or subdirectory.
API key must be provided in the Authorization header
Branch, tag, or commit SHA
Subdirectory path
Successful Response
Was this page helpful?
Suggestions
Contact support