Skip to content

HubSpot: Email templates schemas

8 HubSpot schemas with complete fields and constraints.

← Email templates operations · All schemas

Create — email Templates create Email Template — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
bodystringRequired within parentThe main content of the email template. This is a required field and must be a string.
folderIdstringOptionalThe identifier of the folder in which the template is stored. This is an optional field and must be a string if provided.
namestringRequired within parentThe name of the email template. This is a required field and must be a string.
subjectstringOptionalThe subject line of the email template. This is an optional field and must be a string if provided.

List folders — response body

FieldTypePresenceDescription and constraints
$objectRoot
pagingModelOptionalExpand List folders — response body — paging
resultsarrayRequired within parentAn array of PublicFolder objects, each representing a folder containing email templates.
results[]ModelEach itemExpand List folders — response body — results item

Referenced models: List folders — response body — paging, List folders — response body — results item

List folders — response body — paging

FieldTypePresenceDescription and constraints
$objectRootPaging information for forward-only pagination. Contains the next page reference when more results are available; omitted or empty on the last page.
nextModelOptionalExpand List folders — response body — paging next

Referenced models: List folders — response body — paging next

List folders — response body — paging next

FieldTypePresenceDescription and constraints
$objectRootSpecifies the paging information needed to retrieve the next set of results in a paginated API response
afterstringRequired within parentA string that serves as the paging cursor token, indicating the position after the last successfully read resource.
linkstringOptionalA string representing the URL link to the next page of results.

List folders — response body — results item

FieldTypePresenceDescription and constraints
$objectRoot
createdAtJSONOptional
createdAt (anyOf 1)integerAlternativeThe timestamp indicating when the folder was created, represented as an integer in int64 format.
Format: int64
createdAt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
idstringRequired within parentThe unique identifier for the folder, represented as a string.
namestringOptionalThe name of the folder, represented as a string.
updatedAtJSONOptional
updatedAt (anyOf 1)integerAlternativeThe timestamp indicating when the folder was last updated, represented as an integer in int64 format.
Format: int64
updatedAt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

List templates — response body

FieldTypePresenceDescription and constraints
$objectRoot
pagingModelOptionalExpand List folders — response body — paging
resultsarrayRequired within parentAn array of public templates. Each item in the array is an object representing a template with properties such as id, name, subject, body, folderId, ownerId, createdAt, and updatedAt.
results[]ModelEach itemExpand Update template — response body

Referenced models: List folders — response body — paging, Update template — response body

Update template — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
bodyobjectRequired within parentAn object representing the body content of the email template.
folderIdobjectRequired within parentAn object representing the identifier of the folder where the email template is stored.
nameobjectRequired within parentAn object representing the name of the email template.
subjectobjectRequired within parentAn object representing the subject line of the email template.

Update template — response body

FieldTypePresenceDescription and constraints
$objectRoot
bodystringOptionalThe content of the email template, represented as a string.
createdAtJSONOptional
createdAt (anyOf 1)integerAlternativeThe timestamp indicating when the email template was created, represented as an integer in int64 format.
Format: int64
createdAt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
folderIdstringOptionalThe identifier of the folder where the email template is stored, represented as a string.
idstringRequired within parentThe unique identifier for the email template, represented as a string.
namestringOptionalThe name of the email template, represented as a string.
ownerIdstringOptionalThe identifier of the owner of the email template, represented as a string.
subjectstringOptionalThe subject line of the email template, represented as a string.
updatedAtJSONOptional
updatedAt (anyOf 1)integerAlternativeThe timestamp indicating when the email template was last updated, represented as an integer in int64 format.
Format: int64
updatedAt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.