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

# Get template

`GET /templates/{templateId}`

Returns one email template. Transactional email IDs and slugs are also resolved for compatibility.

## Path parameters

- `templateId` string, required

## Response `200`

Template returned

- object
  - `success` boolean
  - `template` TemplateDetail
    - `id` string
    - `name` string
    - `subject` string
    - `previewText` string, nullable
    - `labels` string[] — Label names assigned to this template.
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `localizations` object[]
    - `companyId` string
    - `blocks` EmailBlock[]
      - `id` string
      - `type` 'text' | 'html' | 'heading' | 'list' | 'button' | 'spacer' | 'divider' | 'image' | 'columns' | 'conditional-group' | 'card' | 'cta' | 'social' | 'logo' | 'footer' | 'video' | 'product', required
      - `content` string — Content for text, html, and heading-like blocks.
      - `styles` object — Per-block visual styles. For compatibility, style fields such as backgroundColor, backgroundOpacity, borderColor, borderWidth, and borderRadius can also be supplied at the block top level and are normalized into this object.
        - `paddingTop` number
        - `paddingBottom` number
        - `paddingLeft` number
        - `paddingRight` number
        - `backgroundColor` string
        - `backgroundOpacity` number — Background opacity percentage from 0 to 100.
        - `textColor` string
        - `textAlign` 'left' | 'center' | 'right'
        - `borderRadius` number
        - `borderColor` string
        - `borderWidth` number
    - `fontFamily` string, nullable
    - `emailLocalizationConfig` object
  - `transactional` object, nullable

## Other responses

- `401` — Unauthorized
- `404` — Template not found

## Changes

- **2026-05-25** `402884feb64a` — 1 info
  - added the optional property `template/allOf[subschema #2]/blocks/items/styles/backgroundOpacity` to the response with the `200` status
- **2026-05-25** `e8b9a2b46341` — 1 info
  - added the optional property `template/allOf[subschema #2]/blocks/items/styles` to the response with the `200` status
- **2026-05-13** `9a89cb9ec599` — 1 info
  - added the optional property `template/allOf[#/components/schemas/TemplateSummary]/labels` to the response with the `200` status
- **2026-05-11** `ee7b7111c55b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/sequenzy/apis/sequenzy-api/changes/templates/:templateId/get.md)

---

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