---
title: "Get an email template"
method: GET
path: "/v1/email-templates/{template_id}"
tags: ["Email Templates"]
---

# Get an email template

`GET /v1/email-templates/{template_id}`

## Request

- Base URL: `https://api.mailrith.com`
- URL: `https://api.mailrith.com/v1/email-templates/{template_id}`
- Auth: HTTP bearer

Returns a reusable email template linked to the authenticated workspace.

## Path parameters

- `template_id` string, required

## Response `200`

Successful response

- object
  - `data` EmailTemplate, required
    - `self` string, required: Stable relative Public API path for retrieving this resource.
    - `id` string, required
    - `name` string, required
    - `body` string, required
    - `body_document` BroadcastEmailDocument, required
      - `type` 'doc' | 'paragraph' | 'heading' | 'text' | 'hardBreak' | 'bulletList' | 'orderedList' | 'listItem' | 'blockquote' | 'emailSection' | 'emailSectionColumn' | 'emailButton' | 'image' | 'horizontalRule', required
      - `attrs` object
        - `id` string
        - `level` 1 | 2 | 3
        - `textAlign` 'left' | 'center' | 'right' | 'justify'
        - `columns` 1 | 2 | 3
        - `width` 'default' | 'large' | 'full' | 'fit'
        - `backgroundColor` string
        - `blockquoteBorderColor` string
        - `linkColor` string
        - `layoutAlignment` 'left' | 'center'
        - `backgroundImageUrl` string
        - `margin` 'none' | 'normal' | 'large'
        - `padding` 'none' | 'normal' | 'large'
        - `borderColor` string
        - `borderWidth` 'none' | 'normal' | 'large'
        - `borderRadius` 'none' | 'normal' | 'small' | 'large' | 'full'
        - `verticalAlign` 'top' | 'middle' | 'bottom'
        - `href` string
        - `textColor` string
        - `size` 'small' | 'medium' | 'large'
        - `align` 'left' | 'center' | 'right'
        - `label` string
        - `src` string
        - `alt` string
        - `title` string
        - `caption` string
        - `source` 'unsplash'
        - `unsplash` object
          - `photoId` string
          - `photographerName` string, required
          - `photographerUsername` string
          - `photographerUrl` string
          - `unsplashUrl` string
        - `widthPercent` number
        - `crop` 'none' | 'square' | 'circle'
        - `fillColumn` boolean
      - `content` BroadcastEmailNode[]
        - `type` 'doc' | 'paragraph' | 'heading' | 'text' | 'hardBreak' | 'bulletList' | 'orderedList' | 'listItem' | 'blockquote' | 'emailSection' | 'emailSectionColumn' | 'emailButton' | 'image' | 'horizontalRule', required
        - `attrs` object
          - `id` string
          - `level` 1 | 2 | 3
          - `textAlign` 'left' | 'center' | 'right' | 'justify'
          - `columns` 1 | 2 | 3
          - `width` 'default' | 'large' | 'full' | 'fit'
          - `backgroundColor` string
          - `blockquoteBorderColor` string
          - `linkColor` string
          - `layoutAlignment` 'left' | 'center'
          - `backgroundImageUrl` string
          - `margin` 'none' | 'normal' | 'large'
          - `padding` 'none' | 'normal' | 'large'
          - `borderColor` string
          - `borderWidth` 'none' | 'normal' | 'large'
          - `borderRadius` 'none' | 'normal' | 'small' | 'large' | 'full'
          - `verticalAlign` 'top' | 'middle' | 'bottom'
          - `href` string
          - `textColor` string
          - `size` 'small' | 'medium' | 'large'
          - `align` 'left' | 'center' | 'right'
          - `label` string
          - `src` string
          - `alt` string
          - `title` string
          - `caption` string
          - `source` 'unsplash'
          - `unsplash` object
            - `photoId` string
            - `photographerName` string, required
            - `photographerUsername` string
            - `photographerUrl` string
            - `unsplashUrl` string
          - `widthPercent` number
          - `crop` 'none' | 'square' | 'circle'
          - `fillColumn` boolean
        - `content` BroadcastEmailNode[]
        - `text` string
        - `marks` BroadcastEmailMark[]
          - `type` 'bold' | 'italic' | 'strike' | 'underline' | 'link' | 'textStyle' | 'highlight', required
          - `attrs` object
            - `href` string
            - `color` string
            - `fontSize` string
      - `text` string
      - `marks` BroadcastEmailMark[]
        - `type` 'bold' | 'italic' | 'strike' | 'underline' | 'link' | 'textStyle' | 'highlight', required
        - `attrs` object
          - `href` string
          - `color` string
          - `fontSize` string
    - `enabled` boolean, required
    - `workspaces` WorkspaceReference[], required
      - `id` string, required
      - `name` string, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `404`: Not found

---

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