Messages content retrieval

Hey Novu team! I'm evaluating Novu for migration from our in-house notification system and have a critical question about the Messages API. My Question: Does Novu store and provide access to the final rendered HTML of sent emails through the API? Our use case: We show sent email content in our support admin panel to help agents see exactly what was sent to users. This is critical for our support workflow. The Issue: When fetching sent messages via GET /v1/messages, the response doesn't include the rendered HTML content of the email. I only get metadata like subject, payload, templateIdentifier, but no data.content field with the actual HTML that was sent. Is there any conditions/preferences for it to be presented? If this isn't supported, are there any plans to add it? Or is there a different approach you'd recommend? Thanks!
9 Replies
Pawan Jain
Pawan Jain3w ago
@evgsolntsev Thanks for sharing the usecase. data.content field is populated only for in-app channel notification messages. Currently, we don't support this for email. Could you please share if you are using Block Editor or Code Editor
evgsolntsev
evgsolntsevOP3w ago
@Pawan Jain Thanks for the response! I'm still in the evaluation phase before implementation, so the exact usage isn't finalized yet. We'd prefer to use the Block Editor since we plan to allow non-technical team members to edit templates. Displaying sent emails/SMS/push notifications in our support admin portal is quite important for us. Are there any alternative ways to achieve this without using data.content?
Pawan Jain
Pawan Jain3w ago
@evgsolntsev Unfortunately, currently it is not possible. I have shared the feature request with usecase with team Could you please share how early you need this feature
evgsolntsev
evgsolntsevOP3w ago
@Pawan Jain Our expected timeline is to migrate to a new notification managment system in 1-2 months.
Pawan Jain
Pawan Jain3w ago
Thanks. I will keep you posted in this thread
evgsolntsev
evgsolntsevOP2w ago
For those who come after: the community version has a dedicated STORE_NOTIFICATION_CONTENT env variable.
Pawan Jain
Pawan Jain2w ago
Thanks for sharing the env variable. Enabling this variable will enable the string of content for in-app messages only
evgsolntsev
evgsolntsevOP2w ago
That's not true. I experimented a bit and it enables the content for emails and SMS too
Novu_Bot
Novu_Bot2w ago
@evgsolntsev, you just advanced to level 1!

Did you find this page helpful?