Render a template
The template as a recipient would get it, in one locale: its HTML and plain text, with the published brand kit and components, and what an email sending it would be refused for there. A version (the latest when absent), and a profile to fill it in for, strictly (a variable it doesn’t have is a 422); without one, empty values show their fallbacks.
The template as a recipient would get it, in one locale: its HTML and plain text, with the published brand kit and components, and what an email sending it would be refused for there. A version (the latest when absent), and a profile to fill it in for, strictly (a variable it doesn’t have is a 422); without one, empty values show their fallbacks.
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
versionId?stringuuidlocale*stringprofileId?stringuuidOK
application/json- response
versionId*stringuuidlocale*stringhtml*stringtext*stringsizeBytes*integerissues*array<>warnings*array<>curl -X POST 'https://api.postforge.dev/v1/templates/497f6eca-6276-4993-bfeb-53cbbbba6f08/render' \ -H 'Content-Type: application/json' \ -d '{ "locale": "string"}'{ "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7", "locale": "string", "html": "string", "text": "string", "sizeBytes": 0, "issues": [ { "path": "string", "message": "string" } ], "warnings": [ { "code": "near_gmail_clipping", "message": "string" } ]}