Basic

Create a new email template in your HubSpot account. This endpoint allows you to define the template's name, subject, body, and optionally assign it to a folder. The request must include the template's body and name. Please note: the scopes for these endpoints require user-level access and will not work for existing apps with portal-level access.

post/automation/email-templates/2026-09

Request

  • Base URL: https://api.hubapi.com
  • URL: https://api.hubapi.com/automation/email-templates/2026-09
  • Auth: none required

Request body

bodystring required

The main content of the email template. This is a required field and must be a string.

folderIdstring

The identifier of the folder in which the template is stored. This is an optional field and must be a string if provided.

namestring required

The name of the email template. This is a required field and must be a string.

subjectstring

The subject line of the email template. This is an optional field and must be a string if provided.

Response

successful operation

bodystring

The content of the email template, represented as a string.

createdAtinteger

The timestamp indicating when the email template was created, represented as an integer in int64 format.

folderIdstring

The identifier of the folder where the email template is stored, represented as a string.

idstring required

The unique identifier for the email template, represented as a string.

namestring

The name of the email template, represented as a string.

ownerIdstring

The identifier of the owner of the email template, represented as a string.

subjectstring

The subject line of the email template, represented as a string.

updatedAtinteger

The timestamp indicating when the email template was last updated, represented as an integer in int64 format.

Changes