> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve Template

> Retrieve template metadata and content.

Fetches template details by ID or slug via the Mailofly API.

### Path Parameters

**id** `string` *required*

Template ID or slug

### Response

**id** `string`

Template ID

**name** `string`

Name

**subject** `string`

Subject

**html** `string`

HTML content

**variable\_names** `string[]`

Read-only list of unique placeholder names. Use `GET /templates/{id}/variables` to retrieve only the ID and these names without content.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.