---
title: "View template details"
method: POST
path: "/template/view"
tags: ["TEMPLATES"]
---

# View template details

`POST /template/view`

Returns details of the email template with the specified ID.

## Request body

- object
  - `id` string, required — The case-sensitive ID of the email template that you wish to view

## Response `200`

Details of a template

- object
  - `request_id` string
  - `data` object
    - `html_body` string, required
    - `id` string, required
    - `subject` string, required
    - `tags` string[], required
    - `name` string, required
    - `template_variables` object, required — The pass-through values required by the template in the format `{"variable1": "value1", "variable2": "value2"}`
    - `text_body` string, required
    - `last_updated` string — A timestamp indicating when this template was last updated

## Other responses

- `400` — 400

---

[API](https://skmtc.net/smtp2go/apis/smtp2go-api-v3-0-4.md) · [All operations](https://skmtc.net/smtp2go/apis/smtp2go-api-v3-0-4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smtp2go/smtp2go-api-v3-0-4/versions/1ba6b25eebb9/schema)
