Showing preview email in frontend
I found the endpoint on the Novu website, which returns the email template with variable content. Is there an API endpoint available that returns the HTML to my frontend for preview purposes?
7 Replies
@Endy_
Currently, we don't have a public api for this.
Could you please share your usecase on this?
HTML to my frontend for preview purposes
I am using React Email Editor to allow users to build their email templates. I want to show them what the email looks like before they confirm, including variables, loop, etc.
Just like the workflow email preview function in Novu.
@Endy_
react email provides preview component
https://react.email/docs/components/preview
Would you consider making the endpoint available via API-key access? I’ve tried calling it with my API key, but it currently works only with a web token. That is exactly the functionality I need, yet I’m unable to invoke it using my API key.
Yes, it is private api endpoint. I will share the feedback with team on making this public
I will reach out for any follow up question
Many thanks
@Endy_
We have an update on this:
Novu is not built for this type of usecase. In novu workflows can be defined by direcr user of our platform. But we don't support customizing the workflow by end users of our users.
Also, we are not planning to support this in near future