---
title: "Add Template"
method: POST
path: "/Optimail/AddTemplate"
tags: ["Optimail"]
---

# Add Template

`POST /Optimail/AddTemplate`

Creates a new Optimail template.

## Request body

- OptimoveAPIModelsOptimailContent
  - `TemplateId` integer, nullable
  - `TemplateName` string, nullable
  - `Subject` string, nullable
  - `Html` string, nullable
  - `PlainText` string, nullable
  - `FromName` string, nullable
  - `ReplyToAddressId` integer, nullable
  - `FromEmailAddressId` integer, nullable
  - `BrandId` integer, nullable
  - `FolderId` integer, nullable
  - `PreferenceGroupId` integer, nullable
  - `PersonalizationStrategy` string, nullable
  - `FixHtml` boolean, nullable

## Response `200`

Success

---

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