Skip to main content
POST
Render a template

Authorizations

x-api-key
string
header
required

Body

application/json

Render the one authored text — inline content OR a stored id, plus its render kwargs — on demand.

text
TemplatedText · object
required

A renderable text: its source plus the parameters its render takes.

EXACTLY ONE source is set — content (the text inline) or id (the id of a stored resource holding the text); neither and both are refused at construction. kwargs are the render parameters for the TEXT and apply either way, so moving a text from inline to stored (or back) leaves its parameters untouched.

Response

Success.

data
RenderedTemplate · object
required

A rendered template.