Skip to main content

List the email templates.

GET/api/v1/email-templatesemail_templates:read

Lists the templates that are not deleted and are not child templates, and the deleted ones too when include_deleted is true (their deleted_at is set; restore_email_template brings one back). body_html is omitted from list items.

Scopeemail_templates:read
AsynchronousNo
MCP toollist_email_templates
Portal permissionsview_email_templates
Pagingkeyset
Default orderemail_template_id
Sort fieldsemail_template_id
Filtersinclude_deleted

Parameters​

NameInTypeRequiredDescription
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
include_deletedqueryarray of booleanOptional
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of EmailTemplateSummaryRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

EmailTemplateSummary​

FieldTypeRequiredDescription
default_use_casestring or nullRequired
deleted_atstring (date-time) or nullRequired
email_template_group_idstring or nullRequired
email_template_idstringRequired
is_defaultbooleanRequiredWhether the template holds a default use case.
settingsobject or nullRequired
subjectstring or nullRequired
template_namestring or nullRequired