Skip to content

Test-send template

POST
/communication/template-text/template-texts/{id}/test-send
Required scope: templatetext:update

Renders the template with the current dummy data (same source as GET /rendered) and inserts a row into dbo.mailtosend for mail-service to deliver. Does not check template status; does not append a history row. The country blocks are resolved for the country of the request, for all countries that no block names if the country is OTHER, or for the default country of the locale if it has none. The subject and the sender are those of the same country (the country setting, else the language), and no cc or bcc is written. Only email templates can be test-sent: SMS and invoicetext templates throw test-send-not-supported. An e-mail with the content type text/plain is written to mailtosend as text/plain.

Request body ​

Response ​

The row was inserted; response contains the generated mail_id.