---
title: "Get Source Tree"
method: GET
path: "/sources/{source_id}/tree"
tags: ["Sources"]
---

# Get Source Tree

`GET /sources/{source_id}/tree`

## Path parameters

- `source_id` string, required

## Query parameters

- `type` 'repository' | 'documentation' | 'research_paper' | 'huggingface_dataset' | 'local_folder' | 'slack' | 'google_drive' | 'connector', nullable — Source type hint
- `branch` string, nullable — Repository branch
- `max_depth` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/trynia/apis/nia-ai-api.md) · [All operations](https://skmtc.net/trynia/apis/nia-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trynia/nia-ai-api/versions/d216ffc3efb6/schema)
