---
title: "Template details (with version history)"
method: GET
path: "/templates/{templateKey}"
tags: ["templates"]
---

# Template details (with version history)

`GET /templates/{templateKey}`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/templates/{templateKey}`
- Auth: HTTP bearer

## Path parameters

- `templateKey` string, required: template stable key

## Response `200`

Template details

- object
  - `success` boolean, required
  - `template` object, required
  - `versions` object[], required

## Other responses

- `401`: Missing or invalid API key
- `404`: Template not found

---

[API](https://skmtc.dev/mailly/apis/mailly-api.md) · [All operations](https://skmtc.dev/mailly/apis/mailly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mailly/apis/mailly-api/revisions/1ceb29637301?raw)
