Skip to main content
GET
/
sources
/
{source_id}
/
tree
Get Source Tree
curl --request GET \
  --url https://apigcp.trynia.ai/v2/sources/{source_id}/tree
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Path Parameters

source_id
string
required

Query Parameters

type
enum<string> | null

Source type hint

Available options:
repository,
documentation,
research_paper,
huggingface_dataset,
local_folder
branch
string | null

Repository branch

max_depth
integer
default:10
Required range: 1 <= x <= 20

Response

Successful Response