---
title: "createCustomEmailTemplate"
method: POST
path: "/core/api/v1/custom-email"
tags: ["custom-email-template-controller"]
---

# createCustomEmailTemplate

`POST /core/api/v1/custom-email`

## Request

- Base URL: `https://api.freshlearn.com`
- URL: `https://api.freshlearn.com/core/api/v1/custom-email`
- Auth: none declared

## Headers

- `Authorization` string
- `domain` string
- `api-key` string

## Request body

- CustomEmailTemplateDTO
  - `advancedBody` string
  - `body` string
  - `createdTime` integer
  - `cssCode` string
  - `defaultContent` boolean
  - `displayOrder` integer
  - `domainId` integer
  - `editorType` 'SIMPLE' | 'ADVANCED'
  - `emailTemplateType` 'WELCOME' | 'ENROLLMENT_CONFIRM' | 'CONTACT_US_FORM' | 'EMAIL_SUBSCRIPTION' | 'PAYMENT_SUCCESS' | 'PAYMENT_FAILURE' | 'COURSE_ENROLLMENT' | 'COURSE_COMPLETION' | 'LIVE_CLASS_24HR_REMINDER' | 'LIVE_CLASS_20MIN_REMINDER' | 'MASTERCLASS_ENROLLMENT' | 'MASTERCLASS_24HR_REMINDER' | 'MASTERCLASS_20MIN_REMINDER' | 'DIGITAL_DOWNLOAD_ENROLLMENT' | 'PRODUCT_BUNDLE_ENROLLMENT' | 'COMMUNITY_ENROLLMENT' | 'GROUP_ENROLLMENT' | 'COMMUNITY_POST' | 'COMMUNITY_POST_COMMENT' | 'MEMBER_FORGOT_PASSWORD' | 'DRIP_NOTIFICATION_EMAIL' | 'MEMBER_GIFT_EMAIL' | 'MEMBER_PASSWORD_UPDATE_EMAIL' | 'ASSESSMENT_SUBMISSION' | 'ASSESSMENT_REVIEW_SUBMISSION' | 'ASSIGNMENT_SUBMISSION' | 'MEMBER_MFA_VERIFICATION_CODE' | 'COACHING_ENROLLMENT' | 'COACHING_SESSION_BOOKED' | 'COACHING_SESSION_24HR_REMINDER' | 'COACHING_SESSION_20MIN_REMINDER' | 'COACHING_SESSION_CANCELLED' | 'COACHING_SESSION_RESCHEDULED' | 'COACHING_SESSION_COMPLETED'
  - `htmlCode` string
  - `id` integer
  - `mergeFields` string[]
  - `status` boolean
  - `subject` string
  - `templateName` string
  - `updatedTime` integer

## Response `200`

OK

## Other responses

- `201`: Created
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

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