---
title: "[Beta] Document Content"
method: GET
path: "/public/beta/documents/{document_id}/content"
tags: ["Documents"]
---

# [Beta] Document Content

`GET /public/beta/documents/{document_id}/content`

Returns the document content for the specified document. Use query parameter `format` to select the content format.

## Path parameters

- `document_id` string, required

## Query parameters

- `format` 'plaintext' | 'markdown', required — Format selector for document content (query `format` and JSON `format` on 200).

## Response `200`

Document content is available. JSON object with `format` and `content` (see schema). Includes `ETag` and `Vary: format`.

- DocumentContentResponse — Content response envelope. The `format` field echoes the `format` query parameter.
  - `format` 'plaintext' | 'markdown', required — Format selector for document content (query `format` and JSON `format` on 200).
  - `content` string, required — Document body as plain text (`format=plaintext`) or markdown (`format=markdown`).

## Other responses

- `202` — The requested content is not available yet. Retry after the indicated number of seconds. No response body is returned.
- `400` — The request is invalid. Either the `format` query parameter is missing, or its value is not one of the allowed values (plaintext, markdown).
- `401` — Authentication error
- `403` — Permission error
- `404` — The document was not found. The document_id does not correspond to any document in the system.
- `429` — Too many requests error

---

[API](https://skmtc.net/pandadoc/apis/pandadoc-public-api.md) · [All operations](https://skmtc.net/pandadoc/apis/pandadoc-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pandadoc/pandadoc-public-api/versions/0c2b70be3fb0/schema)
