Render a proposed email
The document a proposal for a template or an email proposes, as a recipient would get it in one locale, like `templates.render` and `emails.render` (an email’s subject and preview text filled in; a template’s are empty), with what sending it would be refused for there. Proposals for other kinds are a 422 (`not_renderable`).
The document a proposal for a template or an email proposes, as a recipient would get it in one locale, like templates.render and emails.render (an email’s subject and preview text filled in; a template’s are empty), with what sending it would be refused for there. Proposals for other kinds are a 422 (not_renderable).
apiKey readAuthorizationBearer <token>A workspace API key (pf_…), created under Developers → API keys.
Scope: read
id*stringuuididempotency-key?stringRun this write once: a retry with the same key gets the first answer (24 hours).
1 <= length <= 255application/json- body
locale*stringprofileId?stringuuideventId?stringuuidOK
application/json- response
locale*stringhtml*stringtext*stringsizeBytes*integerissues*array<>context*warnings*array<>subject*stringpreheader*stringcurl -X POST 'https://api.postforge.dev/v1/change-proposals/497f6eca-6276-4993-bfeb-53cbbbba6f08/render' \ -H 'Content-Type: application/json' \ -d '{ "locale": "string"}'{ "locale": "string", "html": "string", "text": "string", "sizeBytes": 0, "issues": [ { "path": "string", "message": "string" } ], "context": { "profile": { "property1": null, "property2": null }, "store": { "property1": null, "property2": null }, "event": { "property1": null, "property2": null } }, "warnings": [ { "code": "near_gmail_clipping", "message": "string" } ], "subject": "string", "preheader": "string"}