---
title: "Get template HTML"
method: GET
path: "/templates/{slug}.html"
tags: ["templates"]
---

# Get template HTML

`GET /templates/{slug}.html`

Returns the raw HTML content of the template.

## Path parameters

- `slug` string, required

## Response `200`

HTML content

## Other responses

- `400` — Bad request.
- `401` — Unauthorized. Invalid auth key.
- `404` — Template not found.
- `429` — Too Many Requests. You have been rate limited.
- `500` — Internal Server Error.

---

[API](https://skmtc.dev/pdfshift/apis/pdfshift-api-documentation.md) · [All operations](https://skmtc.dev/pdfshift/apis/pdfshift-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pdfshift/pdfshift-api-documentation/revisions/0b8cbae61b89/schema)
