Skip to main content

MessageApiClient

Provides methods to call the message API endpoints of the backend.

Index

Methods

sendMailMessage

  • Sends an email message. For security reasons it is not possible to specify a completely custom email. A valid email template (specified by templateId) must be used and the data is substituted into the template data. This will vary depending on the template. Templates must be configured in the backend.


    Parameters

    • mailMessage: DeepImmutableObject<MailMessage>

      Email message to send.

    Returns Promise<TypedResponse<string>>

    MessageId of email.