---
title: "Retrieve the HTML template used for displaying a document"
method: GET
path: "/{docid}"
tags: ["view"]
---

# Retrieve the HTML template used for displaying a document

`GET /{docid}`

Get the HTML template associated with the given document. This is called whenever the users tries to view a document. The actual content of the document will then be loaded by the template.

## Path parameters

- `docid` string, required

## Query parameters

- `template` string
- `view` 'page' | 'div' | 'single'
- `odd` string
- `action` string

## Response `200`

HTML view for the document

## Other responses

- `404` — The document was not found
- `500` — An error occurred

---

[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/versions/07216792837f/schema)
