---
title: "Get a Template"
method: GET
path: "/templates/{templateIdOrAlias}"
tags: ["Templates API"]
---

# Get a Template

`GET /templates/{templateIdOrAlias}`

## Path parameters

- `templateIdOrAlias` string, required

## Headers

- `X-Postmark-Server-Token` string, required

## Response `200`

OK

- TemplateDetailResponse
  - `Name` string — The display name for the template.
  - `Alias` string — The user-supplied alias for this template.
  - `TemplateID` integer — The ID associated with the template.
  - `HtmlBody` string — The content to use for the HtmlBody when this template is used to send email.
  - `TextBody` string — The content to use for the TextBody when this template is used to send email.
  - `AssociatedServerId` integer — The ID of the Server with which this template is associated.
  - `Subject` string — The content to use for the Subject when this template is used to send email.
  - `Active` boolean — Indicates that this template may be used for sending email.

## Other responses

- `422` — An error was generated due to incorrect use of the API. See the Message associated with this response for more information.
- `500` — Indicates an internal server error occurred.

---

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