provider Message Templates POST /message_templates
@utdk/front /message_templates
Create message template
Create a new message template in the oldest active workspace that the token has access to. If you need to specify the workspace, we recommend using the [Create team message template](https://dev.frontapp.com/reference/create-team-message-template) endpoint instead. Required scope: `message_templates:write`

Try it

Authentication
Configure credentials for Core API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

createMessageTemplate
POST/message_templates
Create a new message template in the oldest active workspace that the token has access to. If you need to specify the workspace, we recommend using the [Create team message template](https://dev.frontapp.com/reference/create-team-message-template) endpoint instead. Required scope: `message_templates:write`

Input

required

Name of the message template

Subject of the message template.

required

Body of the message template. You can supply HTML with inline CSS to structure and style your template.

ID of the message template folder to place this message template in

The specific inboxes this template is available in. If unspecified or null, then it will be available in all inboxes. Array should be non-empty.

Binary data of attached files. Must use `Content-Type: multipart/form-data` if specified. See [example](https://dev.frontapp.com/docs/attachments-1). Max 25 MB.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import front from '@utdk/front';

await front.createMessageTemplate()