Render a template publication
Render a template publication. View request and response details for this Samva email API endpoint.
Renders one immutable publication against the data you pass, formatted in the locale and timeZone you name as a send formats them, and returns the subject, preheader, HTML and plain text a send would produce. data is validated against the publication's input schema exactly as a send validates it; invalid input returns a validation error that names each failing field. Nothing is sent or stored. Unpublished workspace edits are never rendered: only a publication id renders.
Authorization
apiKey In: header
Path Parameters
^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$^tpub_[0-9a-hjkmnp-tv-z]{16,24}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
The input to render with, validated against the publication's input schema.
length <= 64length <= 64Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/templates/string/publications/string/render" \ -H "Content-Type: application/json" \ -d '{ "data": {} }'{ "subject": "string", "preheader": "string", "html": "string", "text": "string"}Related documentation
Rename a template family
Changes a template family's name and returns the updated family. Use this endpoint to rename a template family through the Samva email API.
Render a declared template workspace fixture
Renders one of the named inputs the template declares against the current effective workspace tree.