templates

Create Template Version

post/api/templates/{template_id}/versions

Request

  • Base URL: https://app.sentientmail.com (the document declares no server; this is the origin it was published from)
  • URL: https://app.sentientmail.com/api/templates/{template_id}/versions
  • Auth: none declared

Path parameters

template_idstring uuid required

Cookies

esp_sessionstring nullable

Request body

subjectstring required
preheaderstring nullable
from_namestring
from_emailstring
html_compiledstring nullable

If document_json is provided we'll re-render it server-side; otherwise html_compiled must be set.

plain_textstring nullable
personalization_slotsstring[]
document_jsonobject nullable

Block-tree authoring document. When set, html_compiled is (re)derived from this on the server.

set_currentboolean

Make this version the template's current_version_id.

slotsobject[] nullable

Named slot / locked-region declarations: a list of {key, name, allowed_types?, max_blocks?, locked?}. Slots are validated against document_json on save.

expected_current_version_idstring nullable
force_overwriteboolean

Response

Successful Response

object required

Changes

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