---
title: "Fetch full text or PDF for a document"
method: GET
path: "/fulltext/{doc_id}"
tags: ["Corpus"]
---

# Fetch full text or PDF for a document

`GET /fulltext/{doc_id}`

Serves document content from the corpus directory. If a corresponding PDF exists, it may serve the PDF; otherwise serves a `.txt` if available. Content type varies.

## Path parameters

- `doc_id` string, required

## Response `200`

Document file (txt/pdf)

---

[API](https://skmtc.dev/inpho/apis/topic-explorer-server-api.md) · [All operations](https://skmtc.dev/inpho/apis/topic-explorer-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inpho/topic-explorer-server-api/revisions/04253424f5bb/schema)
