Skip to content

ESPRMAdminMessageTemplate

Defined in: src/ESPRMAdminMessageTemplate.ts:11

Shell class for admin message template operations. Methods are added via prototype augmentation in methods/ESPRMAdminMessageTemplate/*.

new ESPRMAdminMessageTemplate(): ESPRMAdminMessageTemplate

ESPRMAdminMessageTemplate

createMessageTemplate(params): Promise<ESPAPISuccessResponse>

Defined in: src/methods/ESPRMAdminMessageTemplate/CreateMessageTemplate.ts:22

Creates a new deployment message template.

CreateMessageTemplateRequest

Message-template payload (template_type, locale, subject, body).

Promise<ESPAPISuccessResponse>

A success response confirming template creation.


deleteMessageTemplate(params): Promise<ESPAPISuccessResponse>

Defined in: src/methods/ESPRMAdminMessageTemplate/DeleteMessageTemplate.ts:22

Deletes an email message template from the deployment.

DeleteMessageTemplateParams

Parameters identifying the template to delete.

Promise<ESPAPISuccessResponse>

A success response confirming the deletion.


getMessageTemplates(params?): Promise<GetMessageTemplatesResponse>

Defined in: src/methods/ESPRMAdminMessageTemplate/GetMessageTemplates.ts:22

Retrieves deployment message templates.

GetMessageTemplatesParams

Optional filter params (for example template_type).

Promise<GetMessageTemplatesResponse>

The list of message templates.


getVerifiedEmails(): Promise<GetVerifiedEmailsResponse>

Defined in: src/methods/ESPRMAdminMessageTemplate/GetVerifiedEmails.ts:20

Retrieves the list of SES-verified email addresses for the deployment.

Promise<GetVerifiedEmailsResponse>

The verified email addresses.


updateMessageTemplate(params): Promise<ESPAPISuccessResponse>

Defined in: src/methods/ESPRMAdminMessageTemplate/UpdateMessageTemplate.ts:22

Updates an existing deployment message template.

UpdateMessageTemplateRequest

Message-template payload (template_type, locale, subject, body).

Promise<ESPAPISuccessResponse>

A success response confirming the update.