v1

latestOpenAPI 3.1.0Proprietary2026-07-13531738.1 KB
Templates

Create a template

post/templates

Request body

namestring required
subjectstring required
htmlstring required
textstring
variablesstring[]
builder_type'html' | 'visual'

Authoring mode. visual stores the block tree in builder_blocks; PostStack compiles it to HTML on save.

builder_blocksobject[]

Block tree when builder_type is visual. Ignored otherwise.

Response

OK

successboolean

Example response

{
  "success": true
}