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

# Get Source Content

`GET /sources/{source_id}/content`

## Path parameters

- `source_id` string, required

## Query parameters

- `type` 'repository' | 'documentation' | 'research_paper' | 'huggingface_dataset' | 'local_folder' | 'slack' | 'google_drive', nullable — Source type hint
- `path` string, nullable — Path or virtual path
- `url` string, nullable — Direct URL (documentation)
- `branch` string, nullable — Repository branch
- `page` integer, nullable — PDF page number
- `tree_node_id` string, nullable — PDF tree node identifier
- `line_start` integer, nullable — Starting line number
- `line_end` integer, nullable — Ending line number
- `max_length` integer, nullable — Maximum content length

## Response `200`

Successful Response

- SourceContentResponse — Response for source content retrieval.
  - `success` boolean, required — Whether retrieval succeeded
  - `content` string — Source content
  - `metadata` object — Content metadata
  - `error` string, nullable — Error message if failed

## Other responses

- `422` — Validation Error

---

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