templates

Create a template

Creates a DRAFT template. The API does not compile TSX — pass compiledHtml/compiledText if you have them, or publish will refuse the template until it's compiled. Always created as react-email format.

post/v1/templates/

Request

  • Base URL: https://api.wraps.dev
  • URL: https://api.wraps.dev/v1/templates/
  • Auth: HTTP bearer

Request body

namestring required
slugstring
subjectstring
previewTextstring
descriptionstring
sourcestring

React Email TSX source

compiledHtmlstring
compiledTextstring

Response

idstring required
namestring required
descriptionstring required
subjectstring required
previewTextstring required
emailTypestring required
channelstring required
statusstring required
slugstring required
publishedAtstring required
createdAtstring required
updatedAtstring required
sourceHashstring required
lastEditedFromstring required
sourcestring
compiledHtmlstring
compiledTextstring

Changes

No recorded changes to this operation across all 1 revision of this API.