---
title: "Get Email Template"
method: GET
path: "/mailagents/{mailagent-alias}/templates/{template-key}"
tags: ["email templates"]
---

# Get Email Template

`GET /mailagents/{mailagent-alias}/templates/{template-key}`

## Request

- Base URL: `https://cpaas.zoho.com/v1.1`
- URL: `https://cpaas.zoho.com/v1.1/mailagents/{mailagent-alias}/templates/{template-key}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://accounts.zoho.com/oauth/v2/auth`
    - Token URL: `https://accounts.zoho.com/oauth/v2/token` scopes: `Zeptomail.MailTemplates.READ`
  - OAuth 2
    - Authorization code: `https://accounts.zoho.com/oauth/v2/auth`
    - Token URL: `https://accounts.zoho.com/oauth/v2/token` scopes: `Zeptomail.MailTemplates.ALL`

Fetch details of a specific email template using its template key or alias.

## Path parameters

- `mailagent-alias` string, required
- `template-key` string, required

## Response `200`

Email template details.

- object
  - `data` object
    - `htmlbody` string
    - `template_key` string
    - `template_name` string
    - `subject` string
    - `template_alias` string
  - `status` string

## Other responses

- `404`: Template not found

---

[API](https://skmtc.dev/zoho/apis/zoho-cpaas.md) - [All operations](https://skmtc.dev/zoho/apis/zoho-cpaas/llms.txt) - [OpenAPI document](https://skmtc.dev/zoho/apis/zoho-cpaas/revisions/f0858a38e8b0?raw)
