Render a polished, on-brand HTML + plain-text email from a spec against the shared email vocabulary (templates: notic...
/v1/abilities/email.renderRender a polished, on-brand HTML + plain-text email from a spec against the shared email vocabulary (templates: notice, invoice, receipt). Deterministic — no LLM, no send. Pass a per-tenant theme (brand colours, logo URL, firmName, tagline, siteUrl) so output is on-brand for any vertical. An agent composes the spec; compose with message.send to deliver.
Request body
Section titled “Request body”inputEmailRenderInputrequiredShow 2 properties
specobjectrequiredShow 3 properties
templatestringrequiredAllowed values:notice,invoice,receiptsubjectstringrequiredpropsobjectrequired
themeobjectoptional
contextCallContextoptionalOptional call context. The tenant always comes from the credential:
tenantIdis honoured only by a credential allowed to address sub-tenants, and then nests under the credential’s own tenant.Show 3 properties
tenantIdstringoptionalSub-tenant to act for (sub-tenant credentials only).
runIdstringoptionalThe trust run (from trust.preflight) this call executes under.
verticalIdstringoptionalVertical to attribute created records to.
Returns
Section titled “Returns”Schema shown for 200 · application/json
resultThe ability’s return value. Its shape depends on the ability.