---
title: "Download File"
method: GET
path: "/v1/knowledge/{kb_slug}/{filename}"
tags: ["Knowledge"]
---

# Download File

`GET /v1/knowledge/{kb_slug}/{filename}`

Download or preview a file from a knowledge base.

## Path parameters

- `kb_slug` string, required
- `filename` string, required

## Query parameters

- `download` boolean

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/chonkie/apis/chonkie-api.md) · [All operations](https://skmtc.dev/chonkie/apis/chonkie-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chonkie/apis/chonkie-api/revisions/f40f036f941c?raw)
