curl --request POST \
--url https://apigcp.trynia.ai/v2/github/read \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"repository": "<string>",
"path": "<string>",
"ref": "HEAD",
"start_line": 2,
"end_line": 2
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Read a file from a GitHub repository with optional line range.
curl --request POST \
--url https://apigcp.trynia.ai/v2/github/read \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"repository": "<string>",
"path": "<string>",
"ref": "HEAD",
"start_line": 2,
"end_line": 2
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.trynia.ai/llms.txt
Use this file to discover all available pages before exploring further.
API key must be provided in the Authorization header
Successful Response
Was this page helpful?