Skip to main content
Question

How do you update a flow message template's content using the api

  • March 24, 2026
  • 2 replies
  • 40 views

Email Pulse
Active Contributor II
Forum|alt.badge.img+2

I’m trying to update a flow message template I initially created and added to a flow with the api of code type with the patch request but even though I can do a get to retrieve the template details I can’t seem to update it. It simply gives me an error that the Template does not exist.

Am I not doing something right here or is there a proper way to update the content of a flow email message with the api?

Looking at the api documentation overview for flows it looks like this is supposed to be a supported functionality (https://developers.klaviyo.com/en/reference/flows_api_overview): 

Particularly I’m looking at the bottom of that page at this section:

Next steps

Using your Klaviyo test account and Postman, try out the following:

  1. Create an abandoned cart flow in your Klaviyo test account and copy the flow ID.
  2. Fetch the flow actions associated with your flow using the flow ID in a call to Get Flow Flow Actions. Use ?filter=equals(action_type,"SEND_EMAIL") as a query parameter to show only Send Email flow actions.
  3. Call Get Flow Action Messages with a flow action ID from your response to get the Send Email action’s message.
  4. Call Get Flow Message Template with the flow message ID from your response.
  5. Update the template with Update Template, using the template ID from your response.

 

 

Thanks

2 replies

Kim from Cadence
Partner
Forum|alt.badge.img+13

@Email Pulse, mind sharing the exact error message + status code you’re getting back from the API? Also can you confirm whether the template you’re trying to update is an HTML template? Or is it a drag-and-drop template? Updating the former is supported by the API, while the latter is not (...yet).


Another approach you might try would be to (1) create a new template with the content you want via the Create Template API, (2) patching the send email flow action to reference that new template_id instead (https://developers.klaviyo.com/en/reference/update_flow_action).

 

Cadence / Book a demo


ArpitBanjara
Principal User II
Forum|alt.badge.img+37
  • Principal User II
  • March 25, 2026

Hey ​@Email Pulse 

I am not 100% sure about this but my hunch is that the template ID returned from Get Flow Message Template isn't a standalone template ID that the Update Template endpoint recognizes. Flow message templates built inside the flow editor seem to be embedded in the flow message itself rather than living in your Templates library, which would explain why Klaviyo throws that error when you try to PATCH api/templates/{id} directly.

If that's the case, the workaround I'd try first is updating the flow message content through the flow action itself rather than the Templates endpoint.

Alternatively, another approach worth trying is cloning the template first using Clone Template, updating the cloned version via Update Template, and then reassigning that updated template back to the flow message through the relationship endpoint.

One thing I'm fairly confident about: the docs do explicitly state that Update Template does not support drag and drop templates, only code-based ones. Since yours is code type you should be clear on that front at least.

I'm not 100% certain which of these paths will work cleanly for your specific setup, so it would really help to see the exact error response you're getting. That would narrow it down quickly.

I hope this helps and thank you for sharing your question here in the community.

Cheers,
Arpit