---
title: "Get editable document content"
method: GET
path: "/api/v1/knowledge-base/documents/{document_uuid}/content"
tags: ["main", "knowledge-base"]
---

# Get editable document content

`GET /api/v1/knowledge-base/documents/{document_uuid}/content`

## Request

- Base URL: `https://app.dograh.com`
- URL: `https://app.dograh.com/api/v1/knowledge-base/documents/{document_uuid}/content`
- Auth: none declared

Return the raw text of a .txt or .md document for editing.

Access Control:
* Users can only read documents from their organization.

## Path parameters

- `document_uuid` string, required

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Response `200`

Successful Response

- DocumentContentResponseSchema: Raw text of an editable (text or Markdown) document.
  - `document_uuid` string, required
  - `filename` string, required
  - `retrieval_mode` string, required
  - `content` string, required: The stored file's text, as uploaded
  - `file_hash` string, required: Version token; send it back as expected_file_hash when saving

## Other responses

- `404`: Not found
- `422`: Validation Error

## Changes

- **2026-11-03** `faa00cf76fcb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dograh/apis/dograh-api/changes/api/v1/knowledge-base/documents/:document_uuid/content/get.md)

---

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