---
title: "get knowledge document"
method: GET
path: "/v1/knowledge/documents/{id}"
tags: ["Knowledge"]
---

# get knowledge document

`GET /v1/knowledge/documents/{id}`

Get a single document by ID

## Path parameters

- `id` string, required

## Response `200`

Successfully retrieved document

- KnowledgeDocument — A single file uploaded into a knowledge group. Retrieved chunks reference it by ID.
  - `id` string, uuid — Unique identifier for the document.
  - `knowledgeFolderId` string, uuid — ID of the knowledge group this document belongs to.
  - `filename` string — Original filename as uploaded.
  - `fileType` string — MIME type or extension-derived file type.
  - `fileSize` integer — Size of the file in bytes.
  - `fileUrl` string, uri — Internal URL at which the file is stored.
  - `status` 'UPLOADED' | 'PROCESSING' | 'READY' | 'FAILED' — Current processing state. Only `READY` documents are searchable.
  - `errorMessage` string, nullable — Failure reason when `status` is `FAILED`, otherwise `null`.
  - `createdAt` string, date-time — Timestamp when the document was uploaded.
  - `updatedAt` string, date-time, nullable — Timestamp when the document record was last updated.

## Other responses

- `401` — Unauthorized - Invalid or missing API key
- `403` — Forbidden - API key lacks the required permission
- `404` — Document not found
- `500` — Server error

---

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