Render Contextual Email Preview

Changed on

Render an email exactly as it would be sent for the given entity, without sending. Used by the in-dialog EmailPreviewPanel on the frontend.

Read-only: never writes to DB, never sends an email.

post/api/email-preview/contextual

Request

  • Base URL: https://api.every.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.every.ai/api/email-preview/contextual
  • Auth: none declared

Query parameters

user_idstring
org_idstring

Request body

kindstring required

One of: invoice_send, invoice_test, invoice_payment_reminder, proposal_send, proposal_test, payment_confirmation

entity_idstring required

Invoice / proposal / payment ID

custom_messagestring nullable
test_emailstring nullable

Response

Successful Response

kindstring required
template_namestring required
subjectstring required
tostring[] required
ccstring[] required
from_labelstring required
reply_tostring required
htmlstring required
warningsstring[] required
recipient_digeststring nullable
recipient_detailsobject nullable

Changes