---
title: "Get a template"
method: GET
path: "/v1/templates/{id}"
tags: ["Templates"]
---

# Get a template

`GET /v1/templates/{id}`

## Request

- Base URL: `https://api.volanea.com`
- URL: `https://api.volanea.com/v1/templates/{id}`
- Auth: HTTP bearer

One template: its current subject, body, from address, and version number.

Only the current content — earlier versions are at `GET /v1/templates/{id}/versions`.

## Path parameters

- `id` string, required

## Response `200`

The template.

- Template
  - `templateId` string, required
  - `projectId` string
  - `name` string, required
  - `type` 'transactional' | 'marketing', required
  - `subject` string, required
  - `body` string, required
  - `fromName` string, nullable
  - `fromEmail` string, email, required
  - `version` integer, required: Bumped on every content change; old versions are kept for rollback.
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `401`: Missing or invalid API key.
- `404`: Not found.
- `422`: Request validation failed (code `validation_error`, 422).

---

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