---
title: "Get a template`s details"
method: GET
path: "/api/v2/templates/{id}"
tags: ["Templates"]
---

# Get a template`s details

`GET /api/v2/templates/{id}`

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Templates/getTemplate" target="_blank">Try in sandbox</a><br>Get a single template.

## Path parameters

- `id` integer, required

## Response `200`

Returned when successful.

- MessageTemplate
  - `id` integer, required — Template ID.
  - `name` string, required — Template name.
  - `content` string, required — Template text. May contain dynamic fields inside braces. See the [Custom fields list](https://docs.textmagic.com/#tag/Templates/Custom-fields-list-(Merge-dynamic-fields)).
  - `lastModified` string, date-time, nullable, required — Time when the template was last modified.

## Other responses

- `401` — Unauthorized request.
- `404` — Request data not found.

---

[API](https://skmtc.net/textmagic/apis/textmagic-api.md) · [All operations](https://skmtc.net/textmagic/apis/textmagic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/textmagic/textmagic-api/revisions/3e4029d19684/schema)
