---
title: "Get the source of a document"
method: GET
path: "/api/document/{id}"
tags: ["documents"]
---

# Get the source of a document

`GET /api/document/{id}`

Get the source of a document, either as XML, text or binary.

## Path parameters

- `id` string, required

## Query parameters

- `type` string

## Response `200`

Content of the document

## Other responses

- `410` — Document deleted

## Changes

- **2020-12-17** `c744818a303c` — 1 info
  - endpoint added
- **2020-10-14** `b70359972942` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo/changes/api/document/:id/get.md)

---

[API](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo.md) · [All operations](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eeditiones/tei-publisher-documentation-and-demo/revisions/07216792837f/schema)
