Templates

Templates

Author react.email templates, translate + restyle them, and publish versions.

email_create_template

WRITE — Create a template (react.email TSX, imports limited to react + @react-email/components, one default export) with a draft v1.

email_update_template

WRITE — Create a NEW draft version of a template (published versions are immutable).

email_update_template_meta

WRITE — The 'just fix the subject' path — no new TSX.

email_restyle_template

WRITE — Re-skin a template to the company's CURRENT brand kit as a new draft version — colors, fonts, logo, sign-off, and footer all refresh at once.

email_add_translation

WRITE — Add a locale translation of a template as a new draft version.

email_list_templates

READ — List the company's templates with publish state.

email_get_template

READ — Full TSX source + subject + variables of a template version (default: latest).

email_render_template

WRITE — Compile + render a template version with example (or given) props.

email_send_template_test

WRITE — Render a template version (draft or published) and send it to a real inbox with example (or given) props.

email_publish_template_version

WRITE — Promote a version to live: what the API and automations resolve for this template.

email_unpublish_template

WRITE — Take a published template back out of service: clears its live version and returns it to draft, so every send refuses with template_not_published until it is published again.

email_list_template_versions

READ — Version history of a template (status, variant, author, created).

email_delete_template

WRITE — Archive a template (soft delete; message history keeps pointing at it).