---
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

---

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