templates

Push a template from CLI

Upserts a template compiled from React Email source. Used by wraps push.

post/v1/templates/push

Request

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

Request body

slugstring required

Template slug (filename without extension)

sourcestring required

React Email TSX source code

compiledHtmlstring required

Compiled HTML output

compiledTextstring required

Compiled plain text output

subjectstring required

Email subject line

previewTextstring

Preview/preheader text

sourceHashstring required

SHA256 hash of source file

sesTemplateNamestring required

SES template name

cliProjectPathstring

Path in project (e.g. templates/welcome.tsx)

forceboolean

Force overwrite even if edited on dashboard

Changes

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