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>"
}
]
}API key must be provided in the Authorization header
Successful Response
Was this page helpful?