Skip to content
View as Markdown

Render a polished, on-brand HTML + plain-text email from a spec against the shared email vocabulary (templates: notic...

POST/v1/abilities/email.render

Render 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.

Required
Yes
Content type
  • application/json
  • inputEmailRenderInputrequired
    Show 2 properties
    • specobjectrequired
      Show 3 properties
      • templatestringrequired
        Allowed values: notice, invoice, receipt
      • subjectstringrequired
      • propsobjectrequired
    • themeobjectoptional
  • contextCallContextoptional

    Optional call context. The tenant always comes from the credential: tenantId is honoured only by a credential allowed to address sub-tenants, and then nests under the credential’s own tenant.

    Show 3 properties
    • tenantIdstringoptional

      Sub-tenant to act for (sub-tenant credentials only).

    • runIdstringoptional

      The trust run (from trust.preflight) this call executes under.

    • verticalIdstringoptional

      Vertical to attribute created records to.

Schema shown for 200 · application/json

  • result

    The ability’s return value. Its shape depends on the ability.