Render a letter template
Fills a template's placeholders with one real record's values and returns the finished text. Nothing is sent and nothing is stored — this is the preview a property manager sees before pressing send.
Authorization
AuthorizationstringrequiredPath parameters
idstringrequiredThe letter template to render. A 64-bit number sent as a string.
Body
application/json
channelenum<string>requiredWhich kind of record entityId is. It must be one the template lists in its own communicationChannels. The three remaining channels — rentalApplication, propertyManager and company — cannot be rendered here and come back as a 400.
entityIdstringrequiredThe record to read the values from, and it must match channel: a tenant id for tenant, a lease id for lease, a work order id for workOrder, and so on. A 64-bit number sent as a string.
messageTypeenum<string>requiredWhich of the template's two bodies to render. email renders emailBody and also returns the subject; chat renders chatContent and returns no subject.
Response
200 · The rendered message.
subjectstringThe rendered email subject. Absent when messageType was chat, and absent when the template has no subject.
bodystringrequiredThe rendered body — HTML for email, plain text for chat.