---
updatedAt: 2026-04-24T16:38:27.000Z
agentTools:
  projectIndex: https://developers.cloudbeds.com/llms.txt
---

# postEmailTemplate

Creates a new email template. See the full list of available language parameters <a href="https://integrations.cloudbeds.com/hc/en-us/articles/360007144993-FAQ#methods-and-parameters">here</a>. This call is only available for third-party integration partners, and not for property client IDs.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Cloudbeds API",
    "description": "<p>\n    Welcome to the documentation for <strong>Cloudbeds API Version v1.3</strong>!\n    If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data\n    for your Cloudbeds customers, then you've come to the right place.\n</p>\n\n<p>\n    In this document you will find all the API methods we provide along with explanations for parameters and response\n    examples.\n</p>\n\n<p>\n    If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our\n    <a href=\"https://integrations.cloudbeds.com/hc/en-us\">Integrations Portal</a>.\n</p>\n\n<p>\n    Be sure to <a href=\"https://go.pardot.com/l/308041/2018-07-24/qb2lg\">subscribe</a> to the monthly\n    Cloudbeds API announcement mailing list to receive information on new additions and improvements to the\n    Cloudbeds API and related developer tools.\n</p>\n\n<p>\n    <strong>Endpoint:</strong> https://api.cloudbeds.com/api/v1.3/{method}\n</p>\n\n<p>\n    <strong>HTTPS:</strong> Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.\n</p>\n\n<p>\n    <strong>Request Format:</strong> HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)\n</p>\n\n<p>\n    <strong>Response Format:</strong> JSON\n</p>\n\n<p>\n    <strong>Response Header:</strong> X-Request-ID is added to response headers in all calls to help accelerate support\n    and troubleshooting.\n</p>\n\n<p>\n    <strong>\n        <a href=\"https://integrations.cloudbeds.com/hc/en-us/articles/14104678058267-API-Documentation#postman-collection\">\n            <img src=\"https://run.pstmn.io/button.svg\" alt=\"Run in Postman\">\n        </a>\n    </strong> use this link to access our Public collection in Postman.\n</p>",
    "version": "v1.3"
  },
  "servers": [
    {
      "url": "https://api.cloudbeds.com/api/v1.3/"
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      },
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "",
            "tokenUrl": "",
            "scopes": {
              "delete:adjustment": "delete:adjustment",
              "delete:appPropertySettings": "delete:appPropertySettings",
              "delete:roomblock": "delete:roomblock",
              "read:allotmentBlock": "read:allotmentBlock",
              "read:appPropertySettings": "read:appPropertySettings",
              "read:communication": "read:communication",
              "read:currency": "read:currency",
              "read:customFields": "read:customFields",
              "read:dashboard": "read:dashboard",
              "read:group": "read:group",
              "read:guest": "read:guest",
              "read:hotel": "read:hotel",
              "read:houseAccount": "read:houseAccount",
              "read:housekeeping": "read:housekeeping",
              "read:item": "read:item",
              "read:package": "read:package",
              "read:payment": "read:payment",
              "read:rate": "read:rate",
              "read:reservation": "read:reservation",
              "read:room": "read:room",
              "read:roomblock": "read:roomblock",
              "read:taxesAndFees": "read:taxesAndFees",
              "read:user": "read:user",
              "write:adjustment": "write:adjustment",
              "write:allotmentBlock": "write:allotmentBlock",
              "write:appError": "write:appError",
              "write:appPropertySettings": "write:appPropertySettings",
              "write:communication": "write:communication",
              "write:customFields": "write:customFields",
              "write:group": "write:group",
              "write:guest": "write:guest",
              "write:hotel": "write:hotel",
              "write:houseAccount": "write:houseAccount",
              "write:housekeeping": "write:housekeeping",
              "write:item": "write:item",
              "write:payment": "write:payment",
              "write:rate": "write:rate",
              "write:reservation": "write:reservation",
              "write:room": "write:room",
              "write:roomblock": "write:roomblock"
            }
          }
        }
      }
    },
    "schemas": {
      "PostEmailTemplateRequest": {
        "type": "object",
        "properties": {
          "propertyID": {
            "description": "Property ID",
            "type": "string",
            "nullable": true
          },
          "emailType": {
            "description": "Type of the email template: Marketing or Non-Marketing. Only applicable to GDPR-compliant properties.",
            "type": "string",
            "enum": [
              "nonMarketing",
              "marketing"
            ],
            "default": "nonMarketing"
          },
          "name": {
            "description": "Template name",
            "type": "string"
          },
          "from": {
            "description": "Email address from which the email message may be sent",
            "type": "string"
          },
          "fromName": {
            "description": "from which the email message may be sent. If empty email will be used",
            "type": "string",
            "nullable": true
          },
          "subject": {
            "description": "Email message subject. The subject key should be a language code (IETF). A few examples are listed below.",
            "type": "object",
            "properties": {
              "en": {
                "description": "Email message subject in English",
                "type": "string",
                "nullable": true
              },
              "es": {
                "description": "Email message subject in Spanish",
                "type": "string",
                "nullable": true
              },
              "ru": {
                "description": "Email message subject in Russian",
                "type": "string",
                "nullable": true
              },
              "pt-br": {
                "description": "Email message subject in Portuguese",
                "type": "string",
                "nullable": true
              }
            }
          },
          "body": {
            "description": "Email message body. The body key should be a language code (IETF). A few examples are listed below.",
            "type": "object",
            "properties": {
              "en": {
                "description": "Email message body in English",
                "type": "string",
                "nullable": true
              },
              "es": {
                "description": "Email message body in Spanish",
                "type": "string",
                "nullable": true
              },
              "ru": {
                "description": "Email message body in Russian",
                "type": "string",
                "nullable": true
              },
              "pt-br": {
                "description": "Email message body in Portuguese",
                "type": "string",
                "nullable": true
              }
            }
          },
          "replyTo": {
            "description": "Email address to which the email message may be replied. If empty, the value on from parameter will be used.",
            "type": "string",
            "nullable": true
          },
          "replyToName": {
            "description": "Name to which the email message may be replied. If empty, email will be used.",
            "type": "string",
            "nullable": true
          },
          "autofillAllLanguages": {
            "description": "If set, all languages will be set with the value for the property language. If not informed and only one language is sent, it's considered true, if more than one language is sent, it'll be considered false.",
            "type": "boolean",
            "nullable": true
          },
          "cc": {
            "description": "Email address to which the email message may be sent as a Carbon Copy",
            "type": "string",
            "nullable": true
          },
          "bcc": {
            "description": "Email address to which the email message may be sent as a Blind Carbon Copy",
            "type": "string",
            "nullable": true
          }
        }
      },
      "PostEmailTemplateResponse": {
        "type": "object",
        "properties": {
          "success": {
            "description": "Returns if the request could be completed",
            "type": "boolean"
          },
          "emailTemplateID": {
            "description": "The ID of the created email template. Only present if success = true",
            "type": "string",
            "nullable": true
          },
          "message": {
            "description": "To be used in case any error occurs (if success = false). If success = true, it does not exist.",
            "type": "string",
            "nullable": true
          }
        }
      }
    }
  },
  "paths": {
    "/postEmailTemplate": {
      "post": {
        "tags": [
          "Emails"
        ],
        "summary": "postEmailTemplate",
        "description": "Creates a new email template. See the full list of available language parameters <a href=\"https://integrations.cloudbeds.com/hc/en-us/articles/360007144993-FAQ#methods-and-parameters\">here</a>. This call is only available for third-party integration partners, and not for property client IDs.",
        "responses": {
          "200": {
            "description": "200 Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostEmailTemplateResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "api_key": [
              "write:communication"
            ]
          },
          {
            "OAuth2": [
              "write:communication"
            ]
          }
        ],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/PostEmailTemplateRequest"
              }
            }
          }
        }
      }
    }
  }
}
```