Endy_
Endy_
NNovu
Created by Endy_ on 4/24/2025 in #💬│support
Cannot update the email layout through API
Oops. I found the issue. It shouldn’t be _layoutId, it should be layoutId. Sorry for the confusion.
5 replies
NNovu
Created by Endy_ on 4/24/2025 in #💬│support
Cannot update the email layout through API
Yes. I’m using the MongoDB layout _id from the
/v1/layouts
/v1/layouts
data._id
data._id
but it still isn’t working For example, the current email layout is set to “A.” I’m passing the template layout ID for “B,” but it still falls back to the default layout.
workflow = {
"name": template_name,
"steps": [
{
"template": {
"type": "email",
"subject": subject,
"preheader": display_header,
"content": html,
"contentType": "customHtml",
"_layoutId": layout_id,
},
}
],
}

response = requests.put(
url=f"{NOVU_WORKFLOW_URL}/{workflow_id}",
json=workflow,
headers=headers,
)
workflow = {
"name": template_name,
"steps": [
{
"template": {
"type": "email",
"subject": subject,
"preheader": display_header,
"content": html,
"contentType": "customHtml",
"_layoutId": layout_id,
},
}
],
}

response = requests.put(
url=f"{NOVU_WORKFLOW_URL}/{workflow_id}",
json=workflow,
headers=headers,
)
5 replies
NNovu
Created by Endy_ on 4/23/2025 in #💬│support
Some v2 API endpoints don't work on self-hosted Novu
got it, thanks🙏
16 replies
NNovu
Created by Endy_ on 4/23/2025 in #💬│support
Showing preview email in frontend
Many thanks
9 replies
NNovu
Created by Endy_ on 4/23/2025 in #💬│support
Showing preview email in frontend
Would you consider making the
v1/content-templates/preview/email
v1/content-templates/preview/email
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.
9 replies
NNovu
Created by Endy_ on 4/23/2025 in #💬│support
Showing preview email in frontend
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.
9 replies