Skip to main content
GET
/
data-sources
/
{source_id}
/
tree
Get documentation tree structure
curl --request GET \
  --url https://apigcp.trynia.ai/v2/data-sources/{source_id}/tree \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "tree": {},
  "tree_string": "<string>",
  "base_url": "<string>",
  "page_count": 123
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

source_id
string
required

Flexible data source identifier. Can be:

  • UUID (e.g., "550e8400-e29b-41d4-a716-446655440000")
  • Display name (e.g., "Vercel AI SDK - Core")
  • URL (e.g., "https://docs.trynia.ai/")

Response

Tree structure retrieved successfully

success
boolean
tree
object

Nested tree structure of documentation pages

tree_string
string

Formatted text representation of the tree

base_url
string

Base URL of the documentation

page_count
integer

Total number of indexed pages