---
title: "Create an automated email"
method: POST
path: "/v3/automated-emails"
tags: ["AutomatedEmails"]
---

# Create an automated email

`POST /v3/automated-emails`

Creates a new automated email.

## Request body

- AutomatedEmailCreateRequestModel
  - `subject` string, required — Subject of the email template.
  - `body` string, required — Body of the email template.
  - `event` string, required — Event to trigger sending of the email.
  - `custom` boolean, required — Use custom email template.
  - `name` string, required — Name of the email template.
  - `fromName` string, required — Name of the email sender.
  - `fromEmail` string, email, required — From email address.
  - `cc` string, nullable — Cc address for the email template.
  - `bcc` string, nullable — Bcc address for the email template.
  - `replyTo` string, nullable — Reply-To address for the email template.
  - `enabled` boolean, required — Enable or disable the email template.
  - `productIds` string[], nullable — Optional list of product IDs that this email template should apply to for license events.

## Response `201`

Created

- EmailTemplateDto
  - `id` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `name` string, required
  - `fromName` string, required
  - `fromEmail` string, required
  - `cc` string, required
  - `bcc` string, required
  - `subject` string, required
  - `body` string, required
  - `replyTo` string, required
  - `event` string, required
  - `enabled` boolean, required
  - `custom` boolean, required
  - `sent` integer, required
  - `productIds` string[], required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict
- `429` — Too Many Requests
- `500` — Server Error

---

[API](https://skmtc.net/cryptlex/apis/cryptlex-web-api.md) · [All operations](https://skmtc.net/cryptlex/apis/cryptlex-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cryptlex/cryptlex-web-api/revisions/ec1259c12475/schema)
