---
title: "List documents"
method: GET
path: "/knowledge-bases/{id}/documents"
tags: ["Knowledge Bases"]
---

# List documents

`GET /knowledge-bases/{id}/documents`

## Request

- Base URL: `https://api.telvana.com`
- URL: `https://api.telvana.com/knowledge-bases/{id}/documents`
- Auth: API key in header `x-api-key`

Retrieve all documents in a knowledge base with chunk count information

## Path parameters

- `id` string, required

## Response `200`

Documents retrieved successfully

- object
  - `data` object[]
    - `id` string
    - `knowledgeBaseId` string
    - `filename` string
    - `originalName` string
    - `fileType` 'PDF' | 'DOCX' | 'TXT' | 'MD' | 'CSV' | 'JSON'
    - `fileSize` integer: File size in bytes
    - `status` 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED'
    - `chunkCount` integer, nullable
    - `errorMessage` string, nullable
    - `createdAt` string, date-time
    - `processedAt` string, date-time, nullable
    - `_count` object
      - `chunks` integer

## Other responses

- `401`: Unauthorized
- `404`: Knowledge base not found

---

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