---
title: "Inspect a document's extracted content"
method: GET
path: "/v1/knowledgebases/{id}/documents/{docId}/content"
tags: ["Knowledge Bases"]
---

# Inspect a document's extracted content

`GET /v1/knowledgebases/{id}/documents/{docId}/content`

## Request

- Base URL: `https://api.pyai.com`
- URL: `https://api.pyai.com/v1/knowledgebases/{id}/documents/{docId}/content`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Returns the document, its source text (for pasted-text documents), and the first 200 indexed chunks, so you can verify what agents will retrieve. Requires the `kb:manage` scope.

## Path parameters

- `id` string, required
- `docId` string, required

## Response `200`

Document content and indexed chunks

## Other responses

- `404`: Resource not found (`code: not_found`)

---

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