---
title: "Get template"
method: GET
path: "/resources/mail/v1/configs/templates"
tags: ["Email templates"]
---

# Get template

`GET /resources/mail/v1/configs/templates`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/mail/v1/configs/templates`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/mail/v1/configs/templates/get.ts> (a function with typed inputs; its response is checked against the schema)

This route gets all the vendor’s email templates. In order to get a specific template, pass its type as a query param. A vendor token is required for this route, it can be obtained from the vendor authentication route.

## Query parameters

- `type` 'ResetPassword' | 'ActivateUser' | 'InviteToTenant' | 'PwnedPassword' | 'MagicLink' | 'OTC' | 'ConnectNewDevice' | 'UserUsedInvitation' | 'ResetPhoneNumber' | 'BulkInvitesToTenant' | 'MFAEnroll' | 'MFAUnenroll' | 'NewMFAMethod' | 'MFARecoveryCode' | 'RemoveMFAMethod' | 'EmailVerification' | 'BruteForceProtection' | 'SuspiciousIP' | 'MFAOTC' | 'ImpossibleTravel' | 'BotDetection' | 'SmsAuthenticationEnabled' | 'UnlockUser' | 'UnlockUserSuccess' | 'ActivateUserWithCode' | 'InviteToTenantWithCode'

## Response `200`

- GetTemplateResponseDto[]
  - `htmlTemplate` string, required
  - `senderEmail` string, required
  - `redirectURL` string, required
  - `successRedirectUrl` string, required
  - `subject` string, required
  - `fromName` string, required
  - `active` boolean, required
  - `type` object, required
  - `redirectURLPattern` string
  - `successRedirectUrlPattern` string

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
